aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYi Zhao <yi.zhao@windriver.com>2024-09-10 15:45:32 +0800
committerJason Zaman <perfinion@gentoo.org>2024-09-21 15:28:30 -0700
commitc5e085ed54717b4824cb7274be5fe4d416884e84 (patch)
treecec88a164a4b86f5a92a8de31451c7ce000dc772
parentsystemd: fix policy for systemd-ssh-generator (diff)
downloadhardened-refpolicy-c5e085ed54717b4824cb7274be5fe4d416884e84.tar.gz
hardened-refpolicy-c5e085ed54717b4824cb7274be5fe4d416884e84.tar.bz2
hardened-refpolicy-c5e085ed54717b4824cb7274be5fe4d416884e84.zip
systemd: allow systemd-hostnamed to read vsock device
Fixes: avc: denied { read } for pid=463 comm="systemd-hostnam" name="vsock" dev="devtmpfs" ino=170 scontext=system_u:system_r:systemd_hostnamed_t:s0-s15:c0.c1023 tcontext=system_u:object_r:vsock_device_t:s0 tclass=chr_file permissive=0 Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Jason Zaman <perfinion@gentoo.org>
-rw-r--r--policy/modules/system/systemd.te1
1 files changed, 1 insertions, 0 deletions
diff --git a/policy/modules/system/systemd.te b/policy/modules/system/systemd.te
index f0c7a4347..dcae59ebd 100644
--- a/policy/modules/system/systemd.te
+++ b/policy/modules/system/systemd.te
@@ -786,6 +786,7 @@ kernel_read_kernel_sysctls(systemd_hostnamed_t)
kernel_dontaudit_getattr_proc(systemd_hostnamed_t)
dev_read_sysfs(systemd_hostnamed_t)
+dev_read_vsock(systemd_hostnamed_t)
files_read_etc_files(systemd_hostnamed_t)
files_read_etc_runtime_files(systemd_hostnamed_t)