From 9a540a7e5f3382a77cc7a006124e3d8bd509a1f4 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Fri, 7 Mar 2014 21:44:23 +0000 Subject: [PATCH] Set the right selinux context on the bodhi bz cookie file --- roles/bodhi/base/tasks/main.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/roles/bodhi/base/tasks/main.yml b/roles/bodhi/base/tasks/main.yml index 0d2d7a5abc..ed47f87cf9 100644 --- a/roles/bodhi/base/tasks/main.yml +++ b/roles/bodhi/base/tasks/main.yml @@ -82,6 +82,13 @@ tags: - config +- name: Make sure bodhi-bz.cookie is httpd_tmp_t for selinux. + file: > + setype=httpd_tmp_t + dest=/var/tmp/bodhi-bz.cookie + tags: + - config + - name: enable httpd_tmp_exec SELinux boolean seboolean: name=httpd_tmp_exec state=yes persistent=yes tags: