Skip to content

Commit 86a45e0

Browse files
Merge pull request #6099 from aleksandrychev/ENT-14018_3.27.x
ENT-14018: Added missing RHEL9 SELinux rules (3.27.x)
2 parents d7ddfcd + 8ad1efe commit 86a45e0

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

misc/selinux/cfengine-enterprise.te.all

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ require {
1515
attribute exec_type;
1616
attribute non_security_file_type;
1717
attribute non_auth_file_type;
18+
type autofs_t;
1819
type bin_t;
1920
type cert_t;
2021
type devlog_t;
@@ -393,6 +394,9 @@ allow cfengine_hub_t sssd_var_lib_t:sock_file write;
393394
allow cfengine_hub_t sysctl_net_t:dir search;
394395
allow cfengine_hub_t sysfs_t:dir read;
395396
allow cfengine_hub_t sysfs_t:file { getattr open read };
397+
allow cfengine_hub_t sysfs_t:lnk_file read;
398+
allow cfengine_hub_t autofs_t:dir getattr;
399+
allow cfengine_hub_t cfengine_httpd_exec_t:file getattr;
396400
allow cfengine_hub_t syslogd_var_run_t:dir search;
397401
allow cfengine_hub_t systemd_systemctl_exec_t:file getattr;
398402
allow cfengine_hub_t tmp_t:sock_file write;
@@ -575,7 +579,7 @@ allow cfengine_httpd_t smtp_port_t:tcp_socket name_connect;
575579
allow cfengine_httpd_t ldap_port_t:tcp_socket name_connect;
576580

577581
# allow PHP-FPM to use hugepages for opcache
578-
allow cfengine_httpd_t hugetlbfs_t:file map;
582+
allow cfengine_httpd_t hugetlbfs_t:file { map read write };
579583

580584
# allow PHP-FPM to lock opcache files in tmpfs
581585
allow cfengine_httpd_t tmpfs_t:file lock;
@@ -744,6 +748,7 @@ allow cfengine_reactor_t postfix_spool_t:dir { add_name remove_name search write
744748
allow cfengine_reactor_t postfix_spool_t:file { create getattr open read rename setattr write };
745749
allow cfengine_reactor_t sendmail_exec_t:file map;
746750
allow cfengine_reactor_t sendmail_exec_t:file { execute execute_no_trans open read };
751+
allow cfengine_reactor_t smtp_port_t:tcp_socket name_connect;
747752

748753

749754
#============= cfengine_action_script_t ==============

misc/selinux/cfengine-enterprise.te.el10

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,12 @@ allow cfengine_apachectl_t user_devpts_t:chr_file getattr;
1919
allow cfengine_execd_t http_port_t:tcp_socket name_connect;
2020

2121
#============= cfengine_httpd_t ==============
22-
allow cfengine_httpd_t hugetlbfs_t:file { read write };
2322
allow cfengine_httpd_t systemd_userdbd_runtime_t:dir { open read getattr search };
2423
allow cfengine_httpd_t systemd_userdbd_runtime_t:lnk_file read;
2524
allow cfengine_httpd_t systemd_userdbd_runtime_t:sock_file write;
2625
allow cfengine_httpd_t systemd_userdbd_t:unix_stream_socket connectto;
2726
allow cfengine_httpd_t kernel_t:unix_stream_socket connectto;
2827

29-
#============= cfengine_hub_t ==============
30-
allow cfengine_hub_t cfengine_httpd_exec_t:file getattr;
31-
allow cfengine_hub_t sysfs_t:lnk_file read;
32-
3328
#============= cfengine_postgres_t ==============
3429
allow cfengine_postgres_t systemd_userdbd_runtime_t:dir { open read getattr search };
3530
allow cfengine_postgres_t systemd_userdbd_runtime_t:lnk_file read;

0 commit comments

Comments
 (0)