From 75492f95f77bfa2d3331f7c3b2e5da091049bf58 Mon Sep 17 00:00:00 2001 From: Yi Zhao Date: Wed, 29 Sep 2021 11:08:49 +0800 Subject: [PATCH] systemd: make xdg optional Make xdg optional to avoid a potential build error. Signed-off-by: Yi Zhao --- 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 89d7a4ec8..0c5cbc4d8 100644 --- a/policy/modules/system/systemd.te +++ b/policy/modules/system/systemd.te @@ -313,10 +313,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)