mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 06:16:03 +00:00
several additions for the syslog-ng profiles
The latest syslog-ng version needs some more permissions: - abstractions/openssl (for reading openssl.conf) - reading /etc/syslog-ng/conf.d/ - reading the journal - reading /etc/machine-id (it's unclear why this is needed, therefore I don't want abstractions/dbus-session-strict for now) - write access to /run/syslog-ng.ctl References: https://bugzilla.opensuse.org/show_bug.cgi?id=948584 https://bugzilla.opensuse.org/show_bug.cgi?id=948753 Acked-By: Seth Arnold <seth.arnold@canonical.com> for trunk and 2.9
This commit is contained in:
@@ -20,6 +20,7 @@ profile syslog-ng /{usr/,}sbin/syslog-ng {
|
|||||||
#include <abstractions/consoles>
|
#include <abstractions/consoles>
|
||||||
#include <abstractions/nameservice>
|
#include <abstractions/nameservice>
|
||||||
#include <abstractions/mysql>
|
#include <abstractions/mysql>
|
||||||
|
#include <abstractions/openssl>
|
||||||
|
|
||||||
capability chown,
|
capability chown,
|
||||||
capability dac_override,
|
capability dac_override,
|
||||||
@@ -37,7 +38,10 @@ profile syslog-ng /{usr/,}sbin/syslog-ng {
|
|||||||
/dev/syslog w,
|
/dev/syslog w,
|
||||||
/dev/tty10 rw,
|
/dev/tty10 rw,
|
||||||
/dev/xconsole rw,
|
/dev/xconsole rw,
|
||||||
|
/etc/machine-id r,
|
||||||
/etc/syslog-ng/* r,
|
/etc/syslog-ng/* r,
|
||||||
|
/etc/syslog-ng/conf.d/ r,
|
||||||
|
/etc/syslog-ng/conf.d/* r,
|
||||||
@{PROC}/kmsg r,
|
@{PROC}/kmsg r,
|
||||||
/etc/hosts.deny r,
|
/etc/hosts.deny r,
|
||||||
/etc/hosts.allow r,
|
/etc/hosts.allow r,
|
||||||
@@ -50,6 +54,10 @@ profile syslog-ng /{usr/,}sbin/syslog-ng {
|
|||||||
@{CHROOT_BASE}/var/log/** w,
|
@{CHROOT_BASE}/var/log/** w,
|
||||||
@{CHROOT_BASE}/{,var/}run/syslog-ng.pid krw,
|
@{CHROOT_BASE}/{,var/}run/syslog-ng.pid krw,
|
||||||
@{CHROOT_BASE}/{,var/}run/syslog-ng.ctl rw,
|
@{CHROOT_BASE}/{,var/}run/syslog-ng.ctl rw,
|
||||||
|
/var/log/journal/ r,
|
||||||
|
/var/log/journal/*/ r,
|
||||||
|
/var/log/journal/*/*.journal r,
|
||||||
|
/{var/,}run/syslog-ng.ctl a,
|
||||||
/{var/,}run/syslog-ng/additional-log-sockets.conf r,
|
/{var/,}run/syslog-ng/additional-log-sockets.conf r,
|
||||||
|
|
||||||
# Site-specific additions and overrides. See local/README for details.
|
# Site-specific additions and overrides. See local/README for details.
|
||||||
|
Reference in New Issue
Block a user