copr-dist-git: give map permission on git_user_content_t to cgit
This commit is contained in:
parent
54ca4ea95c
commit
c0631fed5d
3 changed files with 21 additions and 0 deletions
BIN
roles/copr/dist_git/files/git_script_t.pp
Normal file
BIN
roles/copr/dist_git/files/git_script_t.pp
Normal file
Binary file not shown.
9
roles/copr/dist_git/files/git_script_t.te
Normal file
9
roles/copr/dist_git/files/git_script_t.te
Normal file
|
@ -0,0 +1,9 @@
|
|||
module git_script_t 1.0.1;
|
||||
|
||||
require {
|
||||
type git_script_t;
|
||||
type git_user_content_t;
|
||||
class file { map };
|
||||
}
|
||||
|
||||
allow git_script_t git_user_content_t:file map;
|
|
@ -95,5 +95,17 @@
|
|||
- "dist-git.socket"
|
||||
- "copr-dist-git"
|
||||
|
||||
- name: copy over our custom selinux policy for cgit
|
||||
copy: src=git_script_t.pp dest=/usr/local/share/selinux/git_script_t.pp
|
||||
register: cgit_selinux_module
|
||||
tags:
|
||||
- selinux
|
||||
|
||||
- name: install our custom selinux policy for cgit
|
||||
command: semodule -i /usr/local/share/selinux/git_script_t.pp
|
||||
when: cgit_selinux_module|changed
|
||||
tags:
|
||||
- selinux
|
||||
|
||||
- name: Create /var/cache/cgit/repo-list.rc if does not exists (it last 30 minutes to generate)
|
||||
command: /etc/cron.hourly/copr-dist-git creates=/var/cache/cgit/repo-list.rc
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue