Results 1 to 1 of 1
Hi,
In linux system, non-root simple user create program/process. This process has the capbilites "CAP_NET_RAW", "CAP_NET_ADMIN" with mode as "effective,permitted,inheritable".This process it creates child process by calling fork and execv ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 05-27-2011 #1Just Joined!
- Join Date
- May 2011
- Posts
- 5
fork and execve to inherit [non root]parent process's capabilities
Hi,
In linux system, non-root simple user create program/process. This process has the capbilites "CAP_NET_RAW", "CAP_NET_ADMIN" with mode as "effective,permitted,inheritable".This process it creates child process by calling fork and execv to invoke another program 'udhcpc'. But the child process does not inherit the capabilities "CAP_NET_RAW", "CAP_NET_ADMIN" as expected. Even before setting the capablities, i called "prctl(PR_SET_KEEPCAPS, 1)".
Any suggestion for fork and execve to inherit non-root parent process's capabilities.
Thanks
Eswar


Reply With Quote
