Add mirrorlist container selinux policy
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
parent
d3ea8120ee
commit
f46144bd78
3 changed files with 24 additions and 0 deletions
BIN
roles/nagios_client/files/selinux/mirrormanager_container.pp
Normal file
BIN
roles/nagios_client/files/selinux/mirrormanager_container.pp
Normal file
Binary file not shown.
15
roles/nagios_client/files/selinux/mirrormanager_container.te
Normal file
15
roles/nagios_client/files/selinux/mirrormanager_container.te
Normal file
|
@ -0,0 +1,15 @@
|
|||
module mirrormanager_container 1.0;
|
||||
|
||||
require {
|
||||
type container_t;
|
||||
type container_file_t;
|
||||
type mirrormanager_log_t;
|
||||
type nrpe_t;
|
||||
class file { append getattr };
|
||||
}
|
||||
|
||||
# Allow mirrorlist to append to its log
|
||||
allow container_t mirrormanager_log_t:file append;
|
||||
# Allow nrpe to check file age of mirrorlist pkl files
|
||||
allow nrpe_t container_file_t:file getattr;
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue