Skip to contentSkip to conversation

Label /etc/locale.alias as locale_t on Debian

PATCH New Laurent Bigonville 2 participants 2 messages Apr 13, 2014 – Apr 21, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Label /etc/locale.alias as locale_t on Debian

From: Laurent Bigonville <[email protected]>

On Debian, /usr/share/locale/locale.alias is a symlink to /etc/locale.alias, properly label this file.

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=707246

---
 policy/modules/system/miscfiles.fc | 4 ++++
 1 file changed, 4 insertions(+)
policy/modules/system/miscfiles.fc +4 -0
index e917c2e..fb7e7b2 100644
@@ -15,6 +15,10 @@ ifdef(`distro_gentoo',`
 /etc/ssl(/.*)?			gen_context(system_u:object_r:cert_t,s0)
 /etc/timezone		--	gen_context(system_u:object_r:locale_t,s0)
 
+ifdef(`distro_debian',`
+/etc/locale.alias	--	gen_context(system_u:object_r:locale_t,s0)
+')
+
 ifdef(`distro_redhat',`
 /etc/sysconfig/clock	--	gen_context(system_u:object_r:locale_t,s0)
 ')
Signature · 1 line
1.9.2
#1 lore raw

PATCH 1/1 Label /etc/locale.alias as locale_t on Debian

Quoted 15 lines · Laurent Bigonville

From: Laurent Bigonville <[email protected]>

On Debian, /usr/share/locale/locale.alias is a symlink to /etc/locale.alias, properly label this file.

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=707246

---
 policy/modules/system/miscfiles.fc | 4 ++++
 1 file changed, 4 insertions(+)
policy/modules/system/miscfiles.fc +0 -0
index e917c2e..fb7e7b2 100644

policy/modules/system/miscfiles.fc ifdef(`distro_gentoo',` · line 24

Quoted 10 lines
policy/modules/system/miscfiles.fc +4 -0
@@ -15,6 +15,10 @@ ifdef(`distro_gentoo',`
 /etc/ssl(/.*)?			gen_context(system_u:object_r:cert_t,s0)
 /etc/timezone		--	gen_context(system_u:object_r:locale_t,s0)
 
+ifdef(`distro_debian',`
+/etc/locale.alias	--	gen_context(system_u:object_r:locale_t,s0)
+')
+
 ifdef(`distro_redhat',`
 /etc/sysconfig/clock	--	gen_context(system_u:object_r:locale_t,s0)
 ')

Merged.

Signature · 3 lines
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com