Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
1865b640
Unverified
Commit
1865b640
authored
Jan 04, 2021
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macro: define all capabilities
Fixes: #3612 Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
ee79a696
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
119 additions
and
15 deletions
+119
-15
macro.h
src/lxc/macro.h
+119
-15
No files found.
src/lxc/macro.h
View file @
1865b640
...
@@ -37,64 +37,168 @@
...
@@ -37,64 +37,168 @@
#endif
#endif
/* capabilities */
/* capabilities */
#ifndef CAP_CHOWN
#define CAP_CHOWN 0
#endif
#ifndef CAP_DAC_OVERRIDE
#define CAP_DAC_OVERRIDE 1
#endif
#ifndef CAP_DAC_READ_SEARCH
#define CAP_DAC_READ_SEARCH 2
#endif
#ifndef CAP_FOWNER
#define CAP_FOWNER 3
#endif
#ifndef CAP_FSETID
#define CAP_FSETID 4
#endif
#ifndef CAP_KILL
#define CAP_KILL 5
#endif
#ifndef CAP_SETGID
#ifndef CAP_SETGID
#define CAP_SETGID 6
#define CAP_SETGID
6
#endif
#endif
#ifndef CAP_SETUID
#ifndef CAP_SETUID
#define CAP_SETUID 7
#define CAP_SETUID 7
#endif
#ifndef CAP_SETPCAP
#define CAP_SETPCAP 8
#endif
#ifndef CAP_LINUX_IMMUTABLE
#define CAP_LINUX_IMMUTABLE 9
#endif
#ifndef CAP_NET_BIND_SERVICE
#define CAP_NET_BIND_SERVICE 10
#endif
#ifndef CAP_NET_BROADCAST
#define CAP_NET_BROADCAST 11
#endif
#ifndef CAP_NET_ADMIN
#define CAP_NET_ADMIN 12
#endif
#ifndef CAP_NET_RAW
#define CAP_NET_RAW 13
#endif
#ifndef CAP_IPC_LOCK
#define CAP_IPC_LOCK 14
#endif
#ifndef CAP_IPC_OWNER
#define CAP_IPC_OWNER 15
#endif
#ifndef CAP_SYS_MODULE
#define CAP_SYS_MODULE 16
#endif
#ifndef CAP_SYS_RAWIO
#define CAP_SYS_RAWIO 17
#endif
#ifndef CAP_SYS_CHROOT
#define CAP_SYS_CHROOT 18
#endif
#ifndef CAP_SYS_PTRACE
#define CAP_SYS_PTRACE 19
#endif
#ifndef CAP_SYS_PACCT
#define CAP_SYS_PACCT 20
#endif
#endif
#ifndef CAP_SYS_ADMIN
#ifndef CAP_SYS_ADMIN
#define CAP_SYS_ADMIN 21
#define CAP_SYS_ADMIN 21
#endif
#ifndef CAP_SYS_BOOT
#define CAP_SYS_BOOT 22
#endif
#ifndef CAP_SYS_NICE
#define CAP_SYS_NICE 23
#endif
#ifndef CAP_SYS_RESOURCE
#define CAP_SYS_RESOURCE 24
#endif
#ifndef CAP_SYS_TIME
#define CAP_SYS_TIME 25
#endif
#ifndef CAP_SYS_TTY_CONFIG
#define CAP_SYS_TTY_CONFIG 26
#endif
#ifndef CAP_MKNOD
#define CAP_MKNOD 27
#endif
#ifndef CAP_LEASE
#define CAP_LEASE 28
#endif
#endif
#ifndef CAP_AUDIT_WRITE
#ifndef CAP_AUDIT_WRITE
#define CAP_AUDIT_WRITE 29
#define CAP_AUDIT_WRITE
29
#endif
#endif
#ifndef CAP_AUDIT_CONTROL
#ifndef CAP_AUDIT_CONTROL
#define CAP_AUDIT_CONTROL 30
#define CAP_AUDIT_CONTROL
30
#endif
#endif
#ifndef CAP_SETFCAP
#ifndef CAP_SETFCAP
#define CAP_SETFCAP
31
#define CAP_SETFCAP
31
#endif
#endif
#ifndef CAP_MAC_OVERRIDE
#ifndef CAP_MAC_OVERRIDE
#define CAP_MAC_OVERRIDE 32
#define CAP_MAC_OVERRIDE
32
#endif
#endif
#ifndef CAP_MAC_ADMIN
#ifndef CAP_MAC_ADMIN
#define CAP_MAC_ADMIN 33
#define CAP_MAC_ADMIN
33
#endif
#endif
#ifndef CAP_SYSLOG
#ifndef CAP_SYSLOG
#define CAP_SYSLOG 34
#define CAP_SYSLOG
34
#endif
#endif
#ifndef CAP_WAKE_ALARM
#ifndef CAP_WAKE_ALARM
#define CAP_WAKE_ALARM 35
#define CAP_WAKE_ALARM
35
#endif
#endif
#ifndef CAP_BLOCK_SUSPEND
#ifndef CAP_BLOCK_SUSPEND
#define CAP_BLOCK_SUSPEND 36
#define CAP_BLOCK_SUSPEND
36
#endif
#endif
#ifndef CAP_AUDIT_READ
#ifndef CAP_AUDIT_READ
#define CAP_AUDIT_READ
37
#define CAP_AUDIT_READ
37
#endif
#endif
#ifndef CAP_PERFMON
#ifndef CAP_PERFMON
#define CAP_PERFMON
38
#define CAP_PERFMON
38
#endif
#endif
#ifndef CAP_BPF
#ifndef CAP_BPF
#define CAP_BPF
39
#define CAP_BPF
39
#endif
#endif
#ifndef CAP_CHECKPOINT_RESTORE
#ifndef CAP_CHECKPOINT_RESTORE
#define CAP_CHECKPOINT_RESTORE
40
#define CAP_CHECKPOINT_RESTORE
40
#endif
#endif
/* prctl */
/* prctl */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment