| |||||
| |||||
![]() |
|||||
|
CAPABILITIES
7
2008-11-27
Linux
Linux Programmer's Manual
No standards govern capabilities, but the Linux capability implementation is based on the withdrawn POSIX.1e draft standard; see http://wt.xpilot.org/publications/posix.1e/ .
The /proc/PID/task/TID/status file can be used to view the capability sets of a thread. The /proc/PID/status file shows the capability sets of a process's main thread. The libcap package provides a suite of routines for setting and getting capabilities that is more comfortable and less likely to change than the interface provided by capset(2) and capget(2) . This package also provides the setcap(8) and getcap(8) programs. It can be found at http://www.kernel.org/pub/linux/libs/security/linux-privs . Before kernel 2.6.24, and since kernel 2.6.24 if file capabilities are not enabled, a thread with the CAP_SETPCAP capability can manipulate the capabilities of threads other than itself. However, this is only theoretically possible, since no thread ever has CAP_SETPCAP in either of these cases:
include/linux/capability.h in the kernel source
| |||||
|
| |||||