KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
In Linux system, an unprivileged user launches a program. The process created has the capabilities CAP_NET_RAW,CAP_NET_ADMIN with mode as effective,permitted,inheritable . This process then creates a 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 though before setting the capabilities I have called prctl(PR_SET_KEEPCAPS, 1) . Any suggestion on what to do to inherit unprivileged parent process' capabilities upon fork followed by execve ?
Tags (comma-separated)
Save Edits
Cancel