Skip to content

Commit

Permalink
Merge pull request #37 from mikedep333/9272_systemd_type_notify
Browse files Browse the repository at this point in the history
Update for systemd type=notify, /etc/apache/ access, and release 1.2.5
  • Loading branch information
mikedep333 authored Aug 24, 2021
2 parents f8fecca + 8ea290e commit e223c8e
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
18 changes: 17 additions & 1 deletion pulpcore.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
policy_module(pulpcore, 1.2.4)
policy_module(pulpcore, 1.2.5)

require {
type httpd_config_t;
class dir search;
}

########################################
#
Expand Down Expand Up @@ -98,6 +103,10 @@ fs_tmpfs_filetrans(pulpcore_t, pulpcore_server_tmpfs_t, file )
allow pulpcore_t pulpcore_server_tmpfs_t:file map;

# interface calls

# Needed for systemd Type=notify support
kernel_dgram_send(pulpcore_server_t)

kernel_read_all_proc(pulpcore_t)
kernel_read_all_proc(pulpcore_server_t)

Expand Down Expand Up @@ -129,11 +138,18 @@ libs_exec_ldconfig(pulpcore_server_t)

# Needed for systemd Type=notify support
init_write_pid_socket(pulpcore_server_t)
allow pulpcore_server_t init_var_run_t:unix_dgram_socket { connect create };
allow pulpcore_server_t self:unix_dgram_socket { connect create };
allow kernel_t init_var_run_t:unix_dgram_socket sendto;

miscfiles_read_generic_certs(pulpcore_t)

sysnet_read_config(pulpcore_t)

# Attempts to read the non-existent /etc/httpd/mime.types with Katello on EL7
# Occurs whenever mailcap isn't installed, which would provide /etc/mime.types
dontaudit pulpcore_server_t httpd_config_t:dir search;

optional_policy(`
gpg_exec(pulpcore_t)
')
Expand Down
2 changes: 1 addition & 1 deletion pulpcore_port.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(pulpcore_port, 1.2.4)
policy_module(pulpcore_port, 1.2.5)

gen_require(`
attribute port_type;
Expand Down
2 changes: 1 addition & 1 deletion pulpcore_rhsmcertd.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(pulpcore_rhsmcertd, 1.2.4)
policy_module(pulpcore_rhsmcertd, 1.2.5)

gen_require(`
type pulpcore_server_t, rhsmcertd_config_t;
Expand Down

0 comments on commit e223c8e

Please sign in to comment.