Skip to content

Commit

Permalink
SELinux: Allow cf-serverd to set its own limits
Browse files Browse the repository at this point in the history
In order to honor some settings like def.control_server_maxconnections we must allow self:capability sys_resource.

Ticket: ENT-12446
Changelog: title
  • Loading branch information
craigcomstock committed Dec 6, 2024
1 parent 74d100b commit c05f25b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions misc/selinux/cfengine-enterprise.te.all
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,9 @@ allow cfengine_serverd_t unreserved_port_t:tcp_socket name_connect;
allow cfengine_serverd_t cfengine_var_lib_t:sock_file { getattr write };
allow cfengine_serverd_t cfengine_hub_t:unix_stream_socket connectto;

# allow cf-serverd to set its own limits, e.g. def.control_server_maxconnections
allow cfengine_serverd_t self:capability sys_resource;

# TODO: this should not be needed
allow cfengine_serverd_t ssh_port_t:tcp_socket name_connect;
allow cfengine_serverd_t proc_xen_t:dir search;
Expand Down

0 comments on commit c05f25b

Please sign in to comment.