diff options
author | Yi Zhao <yi.zhao@windriver.com> | 2021-09-29 11:08:49 +0800 |
---|---|---|
committer | Jason Zaman <perfinion@gentoo.org> | 2024-09-21 15:28:29 -0700 |
commit | e8ba4ae84e56f50067fc0436cc16e56b2eb3808e (patch) | |
tree | 44f735e4ab1c60cc2763c4dc9a4c49694a517935 | |
parent | sshd: label sshd-session as sshd_exec_t (diff) | |
download | hardened-refpolicy-e8ba4ae84e56f50067fc0436cc16e56b2eb3808e.tar.gz hardened-refpolicy-e8ba4ae84e56f50067fc0436cc16e56b2eb3808e.tar.bz2 hardened-refpolicy-e8ba4ae84e56f50067fc0436cc16e56b2eb3808e.zip |
systemd: make xdg optional
Make xdg optional to avoid a potential build error.
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Jason Zaman <perfinion@gentoo.org>
-rw-r--r-- | policy/modules/system/systemd.te | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/policy/modules/system/systemd.te b/policy/modules/system/systemd.te index 1a2d0bcf..ff47e69f 100644 --- a/policy/modules/system/systemd.te +++ b/policy/modules/system/systemd.te @@ -317,10 +317,16 @@ init_unit_file(systemd_user_manager_unit_t) type systemd_conf_home_t; init_unit_file(systemd_conf_home_t) -xdg_config_content(systemd_conf_home_t) + +optional_policy(` + xdg_config_content(systemd_conf_home_t) +') type systemd_data_home_t; -xdg_data_content(systemd_data_home_t) +userdom_user_home_content(systemd_data_home_t) +optional_policy(` + xdg_data_content(systemd_data_home_t) +') type systemd_user_runtime_notify_t; userdom_user_runtime_content(systemd_user_runtime_notify_t) |