Skip to content

Commit

Permalink
systemd-homework: move optional policy to end of block
Browse files Browse the repository at this point in the history
Signed-off-by: Rahul Sandhu <[email protected]>
  • Loading branch information
WavyEbuilder committed Dec 10, 2024
1 parent be6f0a5 commit a4485e5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions policy/modules/system/systemd.te
Original file line number Diff line number Diff line change
Expand Up @@ -750,12 +750,6 @@ files_home_filetrans(systemd_homework_t, systemd_homed_storage_t, file)

allow systemd_homework_t systemd_homed_tmpfs_t:file rw_inherited_file_perms;

# setup luks backed home directories in /run/cryptsetup
optional_policy(`
lvm_manage_runtime_files(systemd_homework_t)
lvm_manage_runtime_dirs(systemd_homework_t)
')

dev_rw_loop_control(systemd_homework_t)
dev_read_rand(systemd_homework_t)
dev_read_urand(systemd_homework_t)
Expand Down Expand Up @@ -792,6 +786,12 @@ systemd_log_parse_environment(systemd_homework_t)

udev_read_runtime_files(systemd_homework_t)

# setup luks backed home directories in /run/cryptsetup
optional_policy(`
lvm_manage_runtime_files(systemd_homework_t)
lvm_manage_runtime_dirs(systemd_homework_t)
')

#######################################
#
# Hostnamed policy
Expand Down

0 comments on commit a4485e5

Please sign in to comment.