Skip to content

Commit 00ee9cf

Browse files
committed
Add new interface apache_read_state()
1 parent 89235da commit 00ee9cf

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

apache.if

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,25 @@ interface(`apache_sigchld',`
485485
allow $1 httpd_t:process sigchld;
486486
')
487487

488+
########################################
489+
## <summary>
490+
## Allow the domain to read apache state files in /proc.
491+
## </summary>
492+
## <param name="domain">
493+
## <summary>
494+
## Domain allowed access.
495+
## </summary>
496+
## </param>
497+
#
498+
interface(`apache_read_state',`
499+
gen_require(`
500+
type httpd_t;
501+
')
502+
503+
kernel_search_proc($1)
504+
ps_process_pattern($1, httpd_t)
505+
')
506+
488507
########################################
489508
## <summary>
490509
## Inherit and use file descriptors from Apache.

0 commit comments

Comments
 (0)