conf: define missing capabilities

parent 24b77f47
...@@ -210,28 +210,16 @@ static struct caps_opt caps_opt[] = { ...@@ -210,28 +210,16 @@ 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 },
#ifdef CAP_AUDIT_READ
{ "audit_read", CAP_AUDIT_READ }, { "audit_read", CAP_AUDIT_READ },
#endif
#ifdef CAP_AUDIT_WRITE
{ "audit_write", CAP_AUDIT_WRITE }, { "audit_write", CAP_AUDIT_WRITE },
#endif
#ifdef CAP_AUDIT_CONTROL
{ "audit_control", CAP_AUDIT_CONTROL }, { "audit_control", CAP_AUDIT_CONTROL },
#endif
{ "setfcap", CAP_SETFCAP }, { "setfcap", CAP_SETFCAP },
{ "mac_override", CAP_MAC_OVERRIDE }, { "mac_override", CAP_MAC_OVERRIDE },
{ "mac_admin", CAP_MAC_ADMIN }, { "mac_admin", CAP_MAC_ADMIN },
#ifdef CAP_SYSLOG
{ "syslog", CAP_SYSLOG }, { "syslog", CAP_SYSLOG },
#endif
#ifdef CAP_WAKE_ALARM
{ "wake_alarm", CAP_WAKE_ALARM }, { "wake_alarm", CAP_WAKE_ALARM },
#endif
#ifdef CAP_BLOCK_SUSPEND
{ "block_suspend", CAP_BLOCK_SUSPEND }, { "block_suspend", CAP_BLOCK_SUSPEND },
#endif #endif
#endif
}; };
static struct limit_opt limit_opt[] = { static struct limit_opt limit_opt[] = {
......
...@@ -49,6 +49,14 @@ ...@@ -49,6 +49,14 @@
#define CAP_SYS_ADMIN 21 #define CAP_SYS_ADMIN 21
#endif #endif
#ifndef CAP_AUDIT_WRITE
#define CAP_AUDIT_WRITE 29
#endif
#ifndef CAP_AUDIT_CONTROL
#define CAP_AUDIT_CONTROL 30
#endif
#ifndef CAP_SETFCAP #ifndef CAP_SETFCAP
#define CAP_SETFCAP 31 #define CAP_SETFCAP 31
#endif #endif
...@@ -61,6 +69,22 @@ ...@@ -61,6 +69,22 @@
#define CAP_MAC_ADMIN 33 #define CAP_MAC_ADMIN 33
#endif #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 */ /* 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