Skip to content

Commit

Permalink
files context : few fixes for merged-usr distro_gentoo
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas PARLANT <[email protected]>
  • Loading branch information
PPN-SD committed Oct 18, 2024
1 parent 7c0f511 commit c3a7268
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions policy/modules/services/apache.fc
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ HOME_DIR/((www)|(web)|(public_html))(/.*)?/logs(/.*)? gen_context(system_u:obje
/usr/bin/httpd(\.worker)? -- gen_context(system_u:object_r:httpd_exec_t,s0)
/usr/bin/lighttpd -- gen_context(system_u:object_r:httpd_exec_t,s0)
/usr/bin/mongrel_rails -- gen_context(system_u:object_r:httpd_exec_t,s0)

ifdef(`distro_gentoo',`
/usr/bin/nginx -- gen_context(system_u:object_r:httpd_exec_t,s0)
/usr/bin/php.*-fpm -- gen_context(system_u:object_r:httpd_exec_t,s0)
/usr/bin/php-fpm[^/]+ -- gen_context(system_u:object_r:httpd_exec_t,s0)
')

/usr/bin/rotatelogs -- gen_context(system_u:object_r:httpd_rotatelogs_exec_t,s0)
/usr/bin/ssi-cgi -- gen_context(system_u:object_r:httpd_exec_t,s0)
/usr/bin/suexec -- gen_context(system_u:object_r:httpd_suexec_exec_t,s0)
Expand Down
4 changes: 4 additions & 0 deletions policy/modules/services/rpc.fc
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,7 @@
/run/rpc\.statd(/.*)? gen_context(system_u:object_r:rpcd_runtime_t,s0)
/run/rpc\.statd\.pid -- gen_context(system_u:object_r:rpcd_runtime_t,s0)
/run/sm-notify\.pid -- gen_context(system_u:object_r:rpcd_runtime_t,s0)

ifdef(`distro_gentoo',`
/usr/bin/blkmapd -- gen_context(system_u:object_r:blkmapd_exec_t,s0)
')

0 comments on commit c3a7268

Please sign in to comment.