mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-09-02 07:15:18 +00:00
openSUSE patch klog-needs-CAP_SYSLOG
This patch adds the syslog capability to parser/parser_misc.c and to the sbin.klogd profile.
This commit is contained in:
@@ -129,6 +129,9 @@ static int get_table_token(const char *name __unused, struct keyword_table *tabl
|
|||||||
static struct keyword_table capability_table[] = {
|
static struct keyword_table capability_table[] = {
|
||||||
/* capabilities */
|
/* capabilities */
|
||||||
#include "cap_names.h"
|
#include "cap_names.h"
|
||||||
|
#ifndef CAP_SYSLOG
|
||||||
|
{"syslog", 34},
|
||||||
|
#endif
|
||||||
/* terminate */
|
/* terminate */
|
||||||
{NULL, 0}
|
{NULL, 0}
|
||||||
};
|
};
|
||||||
@@ -866,6 +869,7 @@ static const char *capnames[] = {
|
|||||||
"audit_control",
|
"audit_control",
|
||||||
"setfcap",
|
"setfcap",
|
||||||
"mac_override"
|
"mac_override"
|
||||||
|
"syslog",
|
||||||
};
|
};
|
||||||
|
|
||||||
const char *capability_to_name(unsigned int cap)
|
const char *capability_to_name(unsigned int cap)
|
||||||
|
@@ -15,6 +15,7 @@
|
|||||||
#include <abstractions/base>
|
#include <abstractions/base>
|
||||||
|
|
||||||
capability sys_admin,
|
capability sys_admin,
|
||||||
|
capability syslog,
|
||||||
|
|
||||||
network inet stream,
|
network inet stream,
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user