systemd: allow systemd-hostnamed to read machine-id and localization files
Fixes: avc: denied { read } for pid=533 comm="systemd-hostnam" name="machine-id" dev="sdb2" ino=196 scontext=system_u:system_r:systemd_hostnamed_t:s0-s15:c0.c1023 tcontext=system_u:object_r:etc_runtime_t:s0 tclass=file permissive=1 avc: denied { open } for pid=533 comm="systemd-hostnam" path="/etc/machine-id" dev="sdb2" ino=196 scontext=system_u:system_r:systemd_hostnamed_t:s0-s15:c0.c1023 tcontext=system_u:object_r:etc_runtime_t:s0 tclass=file permissive=1 avc: denied { search } for pid=533 comm="systemd-hostnam" name="zoneinfo" dev="sdb2" ino=22345 scontext=system_u:system_r:systemd_hostnamed_t:s0-s15:c0.c1023 tcontext=system_u:object_r:locale_t:s0 tclass=dir permissive=1 avc: denied { read } for pid=533 comm="systemd-hostnam" name="Universal" dev="sdb2" ino=22959 scontext=system_u:system_r:systemd_hostnamed_t:s0-s15:c0.c1023 tcontext=system_u:object_r:locale_t:s0 tclass=file permissive=1 avc: denied { open } for pid=533 comm="systemd-hostnam" path="/usr/share/zoneinfo/Universal" dev="sdb2" ino=22959 scontext=system_u:system_r:systemd_hostnamed_t:s0-s15:c0.c1023 tcontext=system_u:object_r:locale_t:s0 tclass=file permissive=1 avc: denied { getattr } for pid=533 comm="systemd-hostnam" path="/usr/share/zoneinfo/Universal" dev="sdb2" ino=22959 scontext=system_u:system_r:systemd_hostnamed_t:s0-s15:c0.c1023 tcontext=system_u:object_r:locale_t:s0 tclass=file permissive=1 Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
This commit is contained in:
parent
504feb7a98
commit
ecc6e3ccde
@ -719,6 +719,7 @@ kernel_dontaudit_getattr_proc(systemd_hostnamed_t)
|
||||
dev_read_sysfs(systemd_hostnamed_t)
|
||||
|
||||
files_read_etc_files(systemd_hostnamed_t)
|
||||
files_read_etc_runtime_files(systemd_hostnamed_t)
|
||||
|
||||
fs_getattr_all_fs(systemd_hostnamed_t)
|
||||
|
||||
@ -726,6 +727,8 @@ init_delete_runtime_files(systemd_hostnamed_t)
|
||||
init_read_runtime_files(systemd_hostnamed_t)
|
||||
init_write_runtime_files(systemd_hostnamed_t)
|
||||
|
||||
miscfiles_read_localization(systemd_hostnamed_t)
|
||||
|
||||
selinux_use_status_page(systemd_hostnamed_t)
|
||||
|
||||
seutil_read_config(systemd_hostnamed_t)
|
||||
|
Loading…
Reference in New Issue
Block a user