Unix/Linux Go Back    

RedHat 9 (Linux i386) - man page for capset (redhat section 2)

Linux & Unix Commands - Search Man Pages
Man Page or Keyword Search:   man
Select Man Page Set:       apropos Keyword Search (sections above)

CAPGET(2)			    Linux Programmer's Manual				CAPGET(2)

       capget, capset - set/get process capabilities

       #undef _POSIX_SOURCE
       #include <sys/capability.h>

       int capget(cap_user_header_t header, cap_user_data_t data);

       int capset(cap_user_header_t header, const cap_user_data_t data);

       These  two  functions  are  the raw kernel interface for getting and setting capabilities.
       The kernel API is likely to change and use of these functions (in particular the format of
       the cap_user_*_t types) is subject to change with each kernel revision.

       These system calls are specific to Linux.  The portable interfaces are cap_set_proc(3) and

       On success, zero is returned.  On error, -1 is returned, and errno is set appropriately.

       EINVAL One of the arguments was invalid.

       EPERM  An attempt was made to add a capability to the Permitted set, or to set a  capabil-
	      ity in the Effective or Inheritable sets that is not in the Permitted set.

Linux 2.1				  17th May 1998 				CAPGET(2)
Unix & Linux Commands & Man Pages : ©2000 - 2018 Unix and Linux Forums

All times are GMT -4. The time now is 10:03 AM.