Skip to content

Commit

Permalink
systemd: make xdg optional
Browse files Browse the repository at this point in the history
Make xdg optional to avoid a potential build error.

Signed-off-by: Yi Zhao <[email protected]>
  • Loading branch information
yizhao1 committed Jul 12, 2024
1 parent 6cacc48 commit 75492f9
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions policy/modules/system/systemd.te
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 75492f9

Please sign in to comment.