VSF Documented
capability.h
Go to the documentation of this file.
1#ifndef __VSF_LINUX_CAPABILITY_H__
2#define __VSF_LINUX_CAPABILITY_H__
3
4#include "./types.h"
5
6#ifdef __cplusplus
7extern "C" {
8#endif
9
10#define _LINUX_CAPABILITY_VERSION_1 0x19980330
11#define _LINUX_CAPABILITY_U32S_1 1
12
13#define _LINUX_CAPABILITY_VERSION_2 0x20071026
14#define _LINUX_CAPABILITY_U32S_2 2
15
16#define _LINUX_CAPABILITY_VERSION_3 0x20080522
17#define _LINUX_CAPABILITY_U32S_3 2
18
21 int pid;
23
24typedef struct __user_cap_data_struct {
29
30#define CAP_CHOWN 0
31#define CAP_DAC_OVERRIDE 1
32#define CAP_DAC_READ_SEARCH 2
33#define CAP_FOWNER 3
34#define CAP_FSETID 4
35#define CAP_KILL 5
36#define CAP_SETGID 6
37#define CAP_SETUID 7
38#define CAP_SETPCAP 8
39#define CAP_LINUX_IMMUTABLE 9
40#define CAP_NET_BIND_SERVICE 10
41#define CAP_NET_BROADCAST 11
42#define CAP_NET_ADMIN 12
43#define CAP_NET_RAW 13
44#define CAP_IPC_LOCK 14
45#define CAP_IPC_OWNER 15
46#define CAP_SYS_MODULE 16
47#define CAP_SYS_RAWIO 17
48#define CAP_SYS_CHROOT 18
49#define CAP_SYS_PTRACE 19
50#define CAP_SYS_PACCT 20
51#define CAP_SYS_ADMIN 21
52#define CAP_SYS_BOOT 22
53#define CAP_SYS_NICE 23
54#define CAP_SYS_RESOURCE 24
55#define CAP_SYS_TIME 25
56#define CAP_SYS_TTY_CONFIG 26
57#define CAP_MKNOD 27
58#define CAP_LEASE 28
59#define CAP_AUDIT_WRITE 29
60#define CAP_AUDIT_CONTROL 30
61#define CAP_SETFCAP 31
62#define CAP_MAC_OVERRIDE 32
63#define CAP_MAC_ADMIN 33
64#define CAP_SYSLOG 34
65#define CAP_WAKE_ALARM 35
66#define CAP_BLOCK_SUSPEND 36
67#define CAP_AUDIT_READ 37
68#define CAP_PERFMON 38
69#define CAP_BPF 39
70#define CAP_CHECKPOINT_RESTORE 40
71#define CAP_LAST_CAP CAP_CHECKPOINT_RESTORE
72#define cap_valid(x) ((x) >= 0 && (x) <= CAP_LAST_CAP)
73
74#ifdef __cplusplus
75}
76#endif
77
78#endif
struct __user_cap_data_struct * cap_user_data_t
struct __user_cap_header_struct * cap_user_header_t
uint32_t __u32
Definition types.h:55
#define __user
Definition types.h:27
Definition capability.h:24
__u32 inheritable
Definition capability.h:27
__u32 effective
Definition capability.h:25
__u32 permitted
Definition capability.h:26
Definition capability.h:19
__u32 version
Definition capability.h:20
int pid
Definition capability.h:21