libcap: introduce CAP_SYSLOG
PATCH 1/1 libcap: introduce CAP_SYSLOG
Since commit 38ef4c2e437d11b5922723504b62824e96761459 syslog operations require CAP_SYSLOG capability (intoriduced by commit ce6ada35bdf710d16582cc4869c26722547e6f11), not CAP_SYS_ADMIN.
Patch introduces CAP_SYSLOG capability.
Signed-off-by Sergey Senozhatsky <[email protected]>
---
libcap/include/linux/capability.h | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-)
libcap/include/linux/capability.h +6 -1
@@ -355,7 +355,12 @@ struct cpu_vfs_cap_data {#define CAP_MAC_ADMIN 33 -#define CAP_LAST_CAP CAP_MAC_ADMIN + +/* Privileged syslog operations currently require CAP_SYSLOG. +CAP_SYS_ADMIN is not acceptable anymore. */ +#define CAP_SYSLOG 34 + +#define CAP_LAST_CAP CAP_SYSLOG#define cap_valid (x) ((x) >= 0 && (x) <= CAP_LAST_CAP)