Add /srv/planet selinux context
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
parent
9b52b0e1b0
commit
2f1b31f4db
1 changed files with 16 additions and 0 deletions
|
@ -113,6 +113,22 @@
|
||||||
- config
|
- config
|
||||||
- selinux
|
- selinux
|
||||||
|
|
||||||
|
- name: check the selinux context of the planet dir
|
||||||
|
command: matchpathcon "/srv/planet(/.*)?"
|
||||||
|
register: gitcontext
|
||||||
|
always_run: yes
|
||||||
|
changed_when: false
|
||||||
|
tags:
|
||||||
|
- config
|
||||||
|
- selinux
|
||||||
|
|
||||||
|
- name: set the SELinux policy for the planet dir
|
||||||
|
command: semanage fcontext -a -t httpd_sys_content_t "/srv/planet(/.*)?"
|
||||||
|
when: gitcontext.stdout.find('httpd_sys_content_t') == -1
|
||||||
|
tags:
|
||||||
|
- config
|
||||||
|
- selinux
|
||||||
|
|
||||||
#
|
#
|
||||||
# This sets the default, it's safe to always run.
|
# This sets the default, it's safe to always run.
|
||||||
# Default quota for users is 2gb
|
# Default quota for users is 2gb
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue