[BackupPC] fix selinux contexts for /var/run socket

Bernard Johnson bjohnson at fedoraproject.org
Tue Jul 12 03:23:35 UTC 2011


commit 5b92a362647876fe7ea4d14efe519f5a7bc79614
Author: Bernard Johnson <bjohnson at symetrix.com>
Date:   Mon Jul 11 21:23:00 2011 -0600

    fix selinux contexts for /var/run socket

 BackupPC.spec |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/BackupPC.spec b/BackupPC.spec
index 0c63fd5..15398a2 100644
--- a/BackupPC.spec
+++ b/BackupPC.spec
@@ -106,21 +106,21 @@ require {
         type ping_exec_t;
         type sendmail_exec_t;
         class file getattr;
-        type httpd_sys_content_t;
+        type var_run_t;
         class sock_file getattr;
 }
 
-allow httpd_t httpd_sys_content_t:sock_file write;
+allow httpd_t var_run_t:sock_file write;
 allow httpd_t initrc_t:unix_stream_socket connectto;
 allow httpd_t ping_exec_t:file getattr;
 allow httpd_t sendmail_exec_t:file getattr;
 allow httpd_t ssh_exec_t:file getattr;
-allow httpd_t httpd_sys_content_t:sock_file getattr;
+allow httpd_t var_run_t:sock_file getattr;
 EOF
 
 cat >%{name}.fc <<EOF
 %{_sysconfdir}/%{name}(/.*)?            gen_context(system_u:object_r:httpd_sys_script_rw_t,s0)
-%{_localstatedir}/log/%{name}(/.*)?     gen_context(system_u:object_r:httpd_sys_content_t,s0)
+%{_localstatedir}/run/%{name}(/.*)?     gen_context(system_u:object_r:var_run_t,s0)
 EOF
 popd
 %endif


More information about the scm-commits mailing list