Penguin
Annotated edit history of capset(2) version 2, including all changes. View license author blame.
Rev Author # Line
1 perry 1 CAPGET
2 !!!CAPGET
3 ----
4 !!NAME
5
6
2 PerryLorier 7 capset - set/get process capabilities
1 perry 8 !!SYNOPSIS
9
10
2 PerryLorier 11 __#undef _POSIX_SOURCE__
12 #include <sys/capability.h>
1 perry 13
2 PerryLorier 14 __int capset(cap_user_header_t__ ''header''__, const cap_user_data_t__ ''data''__);__
1 perry 15 !!DESCRIPTION
16
2 PerryLorier 17 As of Linux 2.2, the power of the superuser (root) has been partitioned into a set of discrete capabilities. Every process has a set of effective capabilities identifying which capabilities (if any) it may currently exercise. Every process also has a set of inheritable capabilities that may be passed through an execve(2) and a set of permitted capabilites that it can make effective or inheritable.
1 perry 18
2 PerryLorier 19 These two functions are the raw kernel interface for getting and setting capabilities. Not only are these system calls specific to Linux, but 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.
1 perry 20
2 PerryLorier 21 The portable interfaces are ''cap_set_proc''(3) and ''cap_get_proc''(3); if possible you should use those interfaces in applications. If you wish to use the Linux extensions in applications, you should use the easier-to-use interfaces capsetp(3) and capgetp(3).
1 perry 22 !!RETURN VALUE
2 PerryLorier 23 On success, zero is returned. On error, -1 is returned, and ''errno'' is set appropriately.
1 perry 24
25 !!ERRORS
26
2 PerryLorier 27 ;[EINVAL]: One of the arguments was invalid.
28 ;[EPERM]: An attempt was made to add a capability to the Permitted set, or to set a capability in the Effective or Inheritable sets that is not in the Permitted set.
1 perry 29
30 !!FURTHER INFORMATION
31
2 PerryLorier 32 The portable interface to the capability querying and setting functions is provided by the __libcap__ library and is available from here: ftp://linux.kernel.org/pub/linux/libs/security/linux-privs
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.

PHP Warning

lib/blame.php:177: Warning: Invalid argument supplied for foreach() (...repeated 3 times)