diff options
author | Nicolas Iooss <nicolas.iooss@m4x.org> | 2019-01-05 22:45:46 +0100 |
---|---|---|
committer | Jason Zaman <jason@perfinion.com> | 2019-02-10 12:11:25 +0800 |
commit | 775ef06d3f1442815731371e317785ecd5764a5f (patch) | |
tree | c23f20381420b12da31af452f2bfec182670d8b7 /policy/modules/system/logging.te | |
parent | kernel, jabber, ntp, init, logging, systemd: Module version bump. (diff) | |
download | hardened-refpolicy-775ef06d3f1442815731371e317785ecd5764a5f.tar.gz hardened-refpolicy-775ef06d3f1442815731371e317785ecd5764a5f.tar.bz2 hardened-refpolicy-775ef06d3f1442815731371e317785ecd5764a5f.zip |
Allow systemd-journald to read systemd unit symlinks
type=AVC msg=audit(1546723651.696:2091): avc: denied { read } for
pid=240 comm="systemd-journal" name="invocation:user@1000.service"
dev="tmpfs" ino=17614 scontext=system_u:system_r:syslogd_t
tcontext=system_u:object_r:init_var_run_t tclass=lnk_file
permissive=0
type=AVC msg=audit(1546723651.799:2092): avc: denied { read } for
pid=240 comm="systemd-journal" name="invocation:dbus.service"
dev="tmpfs" ino=12542 scontext=system_u:system_r:syslogd_t
tcontext=system_u:object_r:init_var_run_t tclass=lnk_file
permissive=0
"ls -lZ" on these files gives:
lrwxrwxrwx. 1 root root system_u:object_r:init_var_run_t 32
/run/systemd/units/invocation:user@1000.service -> a12344e990e641d9a43065b2d1e115a7
lrwxrwxrwx. 1 root root system_u:object_r:init_var_run_t 32
/run/systemd/units/invocation:dbus.service -> 70bd8da4e0c14bf8b7fcadcd71d22214
Signed-off-by: Jason Zaman <jason@perfinion.com>
Diffstat (limited to 'policy/modules/system/logging.te')
-rw-r--r-- | policy/modules/system/logging.te | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/policy/modules/system/logging.te b/policy/modules/system/logging.te index 5bf3f1a29..be022b7e5 100644 --- a/policy/modules/system/logging.te +++ b/policy/modules/system/logging.te @@ -551,6 +551,7 @@ ifdef(`init_systemd',` init_delete_pid_files(syslogd_t) init_dgram_send(syslogd_t) init_read_pid_pipes(syslogd_t) + init_read_runtime_symlinks(syslogd_t) init_read_state(syslogd_t) systemd_manage_journal_files(syslogd_t) |