Skip to content

Commit

Permalink
Add httpd_graceful_shutdown boolean to allow httpd to connect to port 80
Browse files Browse the repository at this point in the history
  • Loading branch information
rhatdan committed May 1, 2012
1 parent 281ad15 commit 18934f1
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion policy/modules/services/apache.te
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,13 @@ gen_tunable(httpd_can_network_connect, false)
## </desc>
gen_tunable(httpd_can_network_connect_cobbler, false)

## <desc>
## <p>
## Allow HTTPD to connect to http port
## </p>
## </desc>
gen_tunable(httpd_graceful_shutdown, false)

## <desc>
## <p>
## Allow HTTPD scripts and modules to connect to databases over the network.
Expand Down Expand Up @@ -538,7 +545,9 @@ corenet_tcp_bind_jboss_messaging_port(httpd_t)
corenet_sendrecv_http_server_packets(httpd_t)
corenet_tcp_bind_puppet_port(httpd_t)
# Signal self for shutdown
#corenet_tcp_connect_http_port(httpd_t)
tunable_policy(`httpd_graceful_shutdown',`
corenet_tcp_connect_http_port(httpd_t)
')

dev_read_sysfs(httpd_t)
dev_read_rand(httpd_t)
Expand Down

0 comments on commit 18934f1

Please sign in to comment.