Query: capng_lock
OS: debian
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
CAPNG_LOCK(3) Libcap-ng API CAPNG_LOCK(3)NAMEcapng_lock - lock the current process capabilities settingsSYNOPSIS#include <cap-ng.h> int capng_lock(void);DESCRIPTIONcapng_lock will take steps to prevent children of the current process to regain full privileges if the uid is 0. This should be called while possessing the CAP_SETPCAP capability in the kernel. This function will do the following if permitted by the kernel: Set the NOROOT option on for PR_SET_SECUREBITS, set the NOROOT_LOCKED option to on for PR_SET_SECUREBITS, set the PR_NO_SETUID_FIXUP option on for PR_SET_SECUREBITS, and set the PR_NO_SETUID_FIXUP_LOCKED option on for PR_SET_SECUREBITS.RETURN VALUEThis returns 0 on success and a negative number on failure. -1 means a failure setting any of the PR_SET_SECUREBITS options.SEE ALSOcapng_apply(3), prctl(2), capabilities(7)AUTHORSteve Grubb Red Hat June 2009 CAPNG_LOCK(3)
Related Man Pages |
---|
captest(8) - centos |
capng_change_id(3) - debian |
captest(8) - freebsd |
captest(8) - php |
captest(8) - minix |
Similar Topics in the Unix Linux Community |
---|
Installing Dash Shell on OS X Lion |
How can I do this in VI editor? |
One instance of comparing grep and awk |
Weird 'find' results |
My first PERL incarnation... Audio Oscillograph |