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.