Skip to content

Commit 1695ad5

Browse files
Merge pull request #6006 from aleksandrychev/ENT-13634
ENT-13634: Added missing SELinux permissions for PHP opcache operations
2 parents 9d6ea6b + 8ae4661 commit 1695ad5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

misc/selinux/cfengine-enterprise.te.all

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -574,6 +574,12 @@ allow cfengine_httpd_t smtp_port_t:tcp_socket name_connect;
574574
# httpd/PHP needs to be able to contact LDAP servers
575575
allow cfengine_httpd_t ldap_port_t:tcp_socket name_connect;
576576

577+
# allow PHP-FPM to use hugepages for opcache
578+
allow cfengine_httpd_t hugetlbfs_t:file map;
579+
580+
# allow PHP-FPM to lock opcache files in tmpfs
581+
allow cfengine_httpd_t tmpfs_t:file lock;
582+
577583
# Bidirectional DBus communication between httpd and systemd
578584
allow cfengine_httpd_t system_dbusd_t:dbus send_msg;
579585
allow cfengine_httpd_t system_dbusd_t:unix_stream_socket connectto;

0 commit comments

Comments
 (0)