mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
Use git_content_t for distgit
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
@@ -56,8 +56,8 @@
|
||||
- selinux
|
||||
|
||||
- name: set the SELinux policy for the repo list
|
||||
command: semanage fcontext -a -t git_user_content_t "/srv/git/pkgs-git-repos-list"
|
||||
when: gitlistcontext.stdout.find('git_user_content_t') == -1
|
||||
command: semanage fcontext -a -t git_content_t "/srv/git/pkgs-git-repos-list"
|
||||
when: gitlistcontext.stdout.find('git_content_t') == -1
|
||||
tags:
|
||||
- config
|
||||
- cgit
|
||||
|
||||
@@ -54,8 +54,8 @@
|
||||
- selinux
|
||||
|
||||
- name: set the SELinux policy for the distgit root directory
|
||||
command: semanage fcontext -a -t git_user_content_t "/srv/git(/.*)?"
|
||||
when: distgitcontext.stdout.find('git_user_content_t') == -1
|
||||
command: semanage fcontext -a -t git_content_t "/srv/git(/.*)?"
|
||||
when: distgitcontext.stdout.find('git_content_t') == -1
|
||||
tags:
|
||||
- config
|
||||
- distgit
|
||||
|
||||
Reference in New Issue
Block a user