Skip to content

Commit

Permalink
Add user_home_t to SELinux tunable (#4142)
Browse files Browse the repository at this point in the history
On RHEL 9, some files in the home directory are labeled with user_home_t rather than user_home_dir_t
https://danwalsh.livejournal.com/63586.html appears to suggest that this is expected behaviour
  • Loading branch information
hsmallbone authored Feb 12, 2025
1 parent c9a3b77 commit cc4dae7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packaging/rpm/ondemand-selinux.te
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ require {
type shell_exec_t;
type rsync_exec_t;
type ptmx_t;
type user_home_t;
type user_home_dir_t;
type proc_t;
type vmblock_t;
Expand Down Expand Up @@ -105,6 +106,8 @@ read_lnk_files_pattern(httpd_t, ood_apps_public_t, ood_apps_public_t)
gen_tunable(ondemand_manage_user_home_dir, false)

tunable_policy(`ondemand_manage_user_home_dir',`
manage_dirs_pattern(ood_pun_t, user_home_t, user_home_t)
manage_files_pattern(ood_pun_t, user_home_t, user_home_t)
manage_dirs_pattern(ood_pun_t, user_home_dir_t, user_home_dir_t)
manage_files_pattern(ood_pun_t, user_home_dir_t, user_home_dir_t)
')
Expand Down

0 comments on commit cc4dae7

Please sign in to comment.