Blob Blame History Raw
From ae6f0f8121cc3551bb0b0d415b91010b9ba6848f Mon Sep 17 00:00:00 2001
From: Petr Lautrbach <plautrba@redhat.com>
Date: Thu, 9 Jul 2015 15:46:32 +0200
Subject: [PATCH] Allow to define sock file in /etc directory

Resolves: rhbz#1188360
---
 sepolicy/sepolicy/templates/etc_rw.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/sepolicy/sepolicy/templates/etc_rw.py b/sepolicy/sepolicy/templates/etc_rw.py
index dcf445e..b0ee119 100644
--- a/sepolicy/sepolicy/templates/etc_rw.py
+++ b/sepolicy/sepolicy/templates/etc_rw.py
@@ -137,3 +137,7 @@ FILENAME		--	gen_context(system_u:object_r:TEMPLATETYPE_etc_rw_t,s0)
 fc_dir="""\
 FILENAME(/.*)?		gen_context(system_u:object_r:TEMPLATETYPE_etc_rw_t,s0)
 """
+
+fc_sock_file="""\
+FILENAME        -s  gen_context(system_u:object_r:TEMPLATETYPE_etc_rw_t,s0)
+"""
-- 
2.4.3