diff --git a/policy/modules/system/systemd.if b/policy/modules/system/systemd.if index 34459831e..768b184c8 100644 --- a/policy/modules/system/systemd.if +++ b/policy/modules/system/systemd.if @@ -1410,6 +1410,24 @@ interface(`systemd_manage_userdb_runtime_dirs', ` manage_dirs_pattern($1, systemd_userdbd_runtime_t, systemd_userdbd_runtime_t) ') +######################################## +## +## Read systemd userdb runtime files. +## +## +## +## Domain allowed access. +## +## +# +interface(`systemd_read_userdb_runtime_files', ` + gen_require(` + type systemd_userdbd_runtime_t; + ') + + read_files_pattern($1, systemd_userdbd_runtime_t, systemd_userdbd_runtime_t) +') + ######################################## ## ## Manage socket files under /run/systemd/userdb .