Networking Forums

Networking Forums > Computer Networking > Linux Networking > fork and execve to inherit [non root]parent process's capabilities

Reply
Thread Tools Display Modes

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

 
 
Junior Member
Join Date: May 2011
Posts: 3

 
      05-27-2011, 03:26 PM
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.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fork and Closing Open Sockets Beagle Linux Networking 3 11-18-2008 04:29 AM
Wireless Networking - Multiple Access Points - Inherit Settings ? Robert Stokes Network Routers 3 08-30-2006 11:35 PM
WG311T wireless card is showing c.root-server.net and other root-server.net in netstat. Robert Home Networking 1 05-06-2005 08:13 PM
Postfix config - cron messages for root going to root@ISP. Doug Laidlaw Linux Networking 5 02-27-2005 03:21 PM
XBOX capabilities on network... Marcus Fox Home Networking 3 08-14-2003 08:58 PM



1 2 3 4 5 6 7 8 9 10 11