A custom selinux module for fedmsg.

This commit is contained in:
Ralph Bean 2014-01-28 19:51:26 +00:00
parent e05439c3c6
commit 091a117c4f
4 changed files with 23 additions and 0 deletions

Binary file not shown.

Binary file not shown.

View file

@ -0,0 +1,11 @@
module fedmsg 1.0;
require {
type anon_inodefs_t;
type httpd_t;
class file write;
}
#============= httpd_t ==============
allow httpd_t anon_inodefs_t:file write;

View file

@ -70,3 +70,15 @@
when: fedmsg_certs != []
tags:
- config
# Three tasks for handling our custom selinux module
- name: ensure a directory exists for our custom selinux module
file: dest=/usr/local/share/fedmsg state=directory
- name: copy over our custom selinux module
copy: src=selinux/fedmsg.pp dest=/usr/local/share/fedmsg/fedmsg.pp
register: selinux_module
- name: install our custom selinux module
command: semanage -i /usr/local/share/fedmsg/fedmsg.pp
when: selinux_module|changed