Skip to content

Commit

Permalink
Added sys_ptrace access for apachectl to run ps in CFEngine SELinux e…
Browse files Browse the repository at this point in the history
…nterprise policy

Ticket: ENT-12466
Changelog: title
  • Loading branch information
craigcomstock committed Dec 2, 2024
1 parent 1857f5f commit b2e7a85
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions misc/selinux/cfengine-enterprise.te.all
Original file line number Diff line number Diff line change
Expand Up @@ -699,6 +699,8 @@ allow cfengine_apachectl_t proc_t:file { open read };
# this is a macro invocation, the file has to be processed with
# make -f /usr/share/selinux/devel/Makefile
ps_process_pattern(cfengine_apachectl_t, domain)
# ps_process_pattern() above doesn't include needed sys_ptrace capability for apachectl to run 'ps'
allow cfengine_apachectl_t self:cap_userns sys_ptrace;

#============= cfengine_reactor_t ==============
type cfengine_reactor_t;
Expand Down

0 comments on commit b2e7a85

Please sign in to comment.