From 0079d06eeaf896e0d65b4c37f5b1f5820d4870ac Mon Sep 17 00:00:00 2001 From: Michal Konecny Date: Thu, 28 Mar 2024 16:23:19 +0100 Subject: [PATCH] [mailman3] Add missing SELinux policies Signed-off-by: Michal Konecny --- roles/mailman3/tasks/main.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/roles/mailman3/tasks/main.yml b/roles/mailman3/tasks/main.yml index c7eee857b9..8a12e2d487 100644 --- a/roles/mailman3/tasks/main.yml +++ b/roles/mailman3/tasks/main.yml @@ -416,6 +416,24 @@ - mailman - selinux +- name: Set the SELinux policy for the static files directory + community.general.sefcontext: + target: "{{ mailman_webui_basedir }}/static(/.*)?" + setype: httpd_sys_content_t + state: present + tags: + - mailman + - selinux + +- name: Set the SELinux policy for the templates override directory + community.general.sefcontext: + target: "{{ mailman_webui_basedir }}/templates(/.*)?" + setype: httpd_sys_content_t + state: present + tags: + - mailman + - selinux + # Start services - name: Start services ansible.builtin.systemd: