Skip to content

Commit acb3c37

Browse files
committed
Added http_port and getattr selinux permissions as needed for selinux policy on rhel-8 and rhel-9
http_port is needed in el9, selinux-policy version 38.1.45, for inventory policy common bundles. getattr for fsadm_exec_t is needed in el9 and getattr for lvm_exec_t is needed in both el8 and el9. Ticket: ENT-12954 Changelog: title
1 parent 20fcd8b commit acb3c37

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

misc/selinux/cfengine-enterprise.te.all

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,9 @@ allow init_t cfengine_hub_t:process siginh;
401401
allow cfengine_hub_t cfengine_hub_exec_t:file entrypoint;
402402
allow cfengine_hub_t cfengine_hub_exec_t:file { ioctl read getattr lock map execute open };
403403

404+
# the following file permissions for cf-hub are not needed if masterfiles includes fixes from ENT-12954 making inventory and paths stadnard library bundles agent instead of common.
405+
allow cfengine_hub_t lvm_exec_t:file getattr;
406+
404407
# allow cf-hub to use/execute libpromises.so
405408
allow cfengine_hub_t cfengine_var_lib_t:file map;
406409
allow cfengine_hub_t cfengine_var_lib_t:file execute;

misc/selinux/cfengine-enterprise.te.el9

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,11 @@ allow cfengine_httpd_t systemd_userdbd_runtime_t:sock_file write;
88
allow cfengine_httpd_t kernel_t:unix_stream_socket connectto;
99
allow cfengine_reactor_t systemd_userdbd_runtime_t:dir { getattr open read search };
1010
allow cfengine_reactor_t systemd_userdbd_runtime_t:sock_file write;
11+
12+
# selinux-policy 38.1.45 requires the following http_port permissions whereas 3.14.3 does not.
13+
# these permissions are not be needed if changes from ENT-12954 to masterfiles policy move inventory from common to an agent bundle are in place.
14+
allow cfengine_serverd_t http_port_t:tcp_socket name_connect;
15+
allow cfengine_execd_t http_port_t:tcp_socket name_connect;
16+
17+
# the following file permissions for cf-hub are not needed if masterfiles includes fixes from ENT-12954 making inventory and paths stadnard library bundles agent instead of common.
18+
allow cfengine_hub_t fsadm_exec_t:file getattr;

0 commit comments

Comments
 (0)