From e8ba4ae84e56f50067fc0436cc16e56b2eb3808e Mon Sep 17 00:00:00 2001 From: Yi Zhao Date: Wed, 29 Sep 2021 11:08:49 +0800 Subject: systemd: make xdg optional Make xdg optional to avoid a potential build error. Signed-off-by: Yi Zhao Signed-off-by: Jason Zaman --- policy/modules/system/systemd.te | 10 ++++++++-- 1 file 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) -- cgit v1.2.3-65-gdbad