Skip to content

Commit

Permalink
Fix selinux policy
Browse files Browse the repository at this point in the history
  • Loading branch information
treydock committed Nov 15, 2019
1 parent 05cd1de commit bd6826f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packaging/ondemand-selinux.te
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ require {
type sshd_key_t;
type chkpwd_t;
type initrc_var_run_t;
type user_home_dir_t;
class chr_file { ioctl open read write };
class fifo_file { create getattr ioctl open read setattr unlink write };
class netlink_audit_socket { nlmsg_relay create write };
Expand All @@ -23,10 +24,10 @@ require {
#============= httpd_t ==============

# Allow management of home directories when they are local
manage_dirs_pattern(httpd_t, user_home_dir_t, user_home_dir_t)
manage_files_pattern(httpd_t, user_home_dir_t, user_home_dir_t)
manage_dirs_pattern(httpd_sys_script_t, user_home_dir_t, user_home_dir_t)
manage_files_pattern(httpd_sys_script_t, user_home_dir_t, user_home_dir_t)
manage_dirs_pattern(httpd_t, user_home_dir_t, user_home_dir_t);
manage_files_pattern(httpd_t, user_home_dir_t, user_home_dir_t);
manage_dirs_pattern(httpd_sys_script_t, user_home_dir_t, user_home_dir_t);
manage_files_pattern(httpd_sys_script_t, user_home_dir_t, user_home_dir_t);

# PUN startup
allow httpd_t chkpwd_t:process { noatsecure rlimitinh siginh };
Expand Down

0 comments on commit bd6826f

Please sign in to comment.