Skip to content

Commit

Permalink
dracut.te: Use libs_run_ldconfig() instead of exec.
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan Davies <[email protected]>
  • Loading branch information
jpds committed Jun 14, 2021
1 parent 8348287 commit 1c05d33
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion policy/modules/contrib/dracut.te
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ logging_log_file(dracut_var_log_t)
type dracut_tmp_t;
files_tmp_file(dracut_tmp_t)

attribute_role dracut_roles;
role dracut_roles types dracut_t;

########################################
#
# Local policy
Expand Down Expand Up @@ -65,7 +68,7 @@ files_unconfined(dracut_t)

fs_getattr_xattr_fs(dracut_t)

libs_exec_ldconfig(dracut_t)
libs_run_ldconfig(dracut_t, dracut_roles)
libs_exec_ld_so(dracut_t)
libs_exec_lib_files(dracut_t)

Expand Down

0 comments on commit 1c05d33

Please sign in to comment.