fork and execve to inherit [non root]parent process's capabilities

Discussion in 'General Networking Discussion' started by hieswarmcaquest, May 27, 2011.

  1. hieswarmcaquest


    May 3, 2011
    Likes Received:
    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.
    hieswarmcaquest, May 27, 2011
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.