conf: add new capabilities CAP_{BLOCK_SUSPEND,PERFMON,BPF,CAP_CHECKPOINT_RESTORE}

parent f2da98c0
...@@ -210,7 +210,6 @@ static struct caps_opt caps_opt[] = { ...@@ -210,7 +210,6 @@ static struct caps_opt caps_opt[] = {
{ "sys_tty_config", CAP_SYS_TTY_CONFIG }, { "sys_tty_config", CAP_SYS_TTY_CONFIG },
{ "mknod", CAP_MKNOD }, { "mknod", CAP_MKNOD },
{ "lease", CAP_LEASE }, { "lease", CAP_LEASE },
{ "audit_read", CAP_AUDIT_READ },
{ "audit_write", CAP_AUDIT_WRITE }, { "audit_write", CAP_AUDIT_WRITE },
{ "audit_control", CAP_AUDIT_CONTROL }, { "audit_control", CAP_AUDIT_CONTROL },
{ "setfcap", CAP_SETFCAP }, { "setfcap", CAP_SETFCAP },
...@@ -219,6 +218,10 @@ static struct caps_opt caps_opt[] = { ...@@ -219,6 +218,10 @@ static struct caps_opt caps_opt[] = {
{ "syslog", CAP_SYSLOG }, { "syslog", CAP_SYSLOG },
{ "wake_alarm", CAP_WAKE_ALARM }, { "wake_alarm", CAP_WAKE_ALARM },
{ "block_suspend", CAP_BLOCK_SUSPEND }, { "block_suspend", CAP_BLOCK_SUSPEND },
{ "audit_read", CAP_AUDIT_READ },
{ "perfmon", CAP_PERFMON },
{ "bpf", CAP_BPF },
{ "checkpoint_restore", CAP_CHECKPOINT_RESTORE },
#endif #endif
}; };
......
...@@ -85,6 +85,18 @@ ...@@ -85,6 +85,18 @@
#define CAP_AUDIT_READ 37 #define CAP_AUDIT_READ 37
#endif #endif
#ifndef CAP_PERFMON
#define CAP_PERFMON 38
#endif
#ifndef CAP_BPF
#define CAP_BPF 39
#endif
#ifndef CAP_CHECKPOINT_RESTORE
#define CAP_CHECKPOINT_RESTORE 40
#endif
/* prctl */ /* prctl */
#ifndef PR_CAPBSET_READ #ifndef PR_CAPBSET_READ
#define PR_CAPBSET_READ 23 #define PR_CAPBSET_READ 23
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment