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
f2da98c0
Unverified
Commit
f2da98c0
authored
Jan 04, 2021
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
conf: define missing capabilities
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
24b77f47
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
12 deletions
+24
-12
conf.c
src/lxc/conf.c
+0
-12
macro.h
src/lxc/macro.h
+24
-0
No files found.
src/lxc/conf.c
View file @
f2da98c0
...
...
@@ -210,28 +210,16 @@ static struct caps_opt caps_opt[] = {
{
"sys_tty_config"
,
CAP_SYS_TTY_CONFIG
},
{
"mknod"
,
CAP_MKNOD
},
{
"lease"
,
CAP_LEASE
},
#ifdef CAP_AUDIT_READ
{
"audit_read"
,
CAP_AUDIT_READ
},
#endif
#ifdef CAP_AUDIT_WRITE
{
"audit_write"
,
CAP_AUDIT_WRITE
},
#endif
#ifdef CAP_AUDIT_CONTROL
{
"audit_control"
,
CAP_AUDIT_CONTROL
},
#endif
{
"setfcap"
,
CAP_SETFCAP
},
{
"mac_override"
,
CAP_MAC_OVERRIDE
},
{
"mac_admin"
,
CAP_MAC_ADMIN
},
#ifdef CAP_SYSLOG
{
"syslog"
,
CAP_SYSLOG
},
#endif
#ifdef CAP_WAKE_ALARM
{
"wake_alarm"
,
CAP_WAKE_ALARM
},
#endif
#ifdef CAP_BLOCK_SUSPEND
{
"block_suspend"
,
CAP_BLOCK_SUSPEND
},
#endif
#endif
};
static
struct
limit_opt
limit_opt
[]
=
{
...
...
src/lxc/macro.h
View file @
f2da98c0
...
...
@@ -49,6 +49,14 @@
#define CAP_SYS_ADMIN 21
#endif
#ifndef CAP_AUDIT_WRITE
#define CAP_AUDIT_WRITE 29
#endif
#ifndef CAP_AUDIT_CONTROL
#define CAP_AUDIT_CONTROL 30
#endif
#ifndef CAP_SETFCAP
#define CAP_SETFCAP 31
#endif
...
...
@@ -61,6 +69,22 @@
#define CAP_MAC_ADMIN 33
#endif
#ifndef CAP_SYSLOG
#define CAP_SYSLOG 34
#endif
#ifndef CAP_WAKE_ALARM
#define CAP_WAKE_ALARM 35
#endif
#ifndef CAP_BLOCK_SUSPEND
#define CAP_BLOCK_SUSPEND 36
#endif
#ifndef CAP_AUDIT_READ
#define CAP_AUDIT_READ 37
#endif
/* prctl */
#ifndef PR_CAPBSET_READ
#define PR_CAPBSET_READ 23
...
...
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