Skip to contentSkip to conversation

Update file contexts for xfce4 helper applications

PATCH New Sven Vermeulen 2 participants 2 messages Aug 23, 2011 – Aug 24, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Update file contexts for xfce4 helper applications

Many XFCE4 helper applications are located in /usr/lib locations. This patch marks those helpers as bin_t.

Recursively marking the directories bin_t does not work properly as these locations also contain actual libraries.

---
 policy/modules/kernel/corecommands.fc |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
policy/modules/kernel/corecommands.fc +9 -0
index 3fae11a..54caebe 100644
@@ -226,6 +226,15 @@ ifdef(`distro_gentoo',`
 /usr/lib(64)?/rpm/rpmv		-- 	gen_context(system_u:object_r:bin_t,s0)
 /usr/lib(64)?/sftp-server	--	gen_context(system_u:object_r:bin_t,s0)
 /usr/lib(64)?/vte/gnome-pty-helper --	gen_context(system_u:object_r:bin_t,s0)
+/usr/lib(64)?/xfce4/session/xfsm-shutdown-helper	--	gen_context(system_u:object_r:bin_t,s0)
+/usr/lib(64)?/xfce4/session/balou-export-theme	--	gen_context(system_u:object_r:bin_t,s0)
+/usr/lib(64)?/xfce4/session/balou-install-theme	--	gen_context(system_u:object_r:bin_t,s0)
+/usr/lib(64)?/xfce4/xfwm4/helper-dialog		--	gen_context(system_u:object_r:bin_t,s0)
+/usr/lib(64)?/xfce4/xfconf/xfconfd	--	gen_context(system_u:object_r:bin_t,s0)
+/usr/lib(64)?/xfce4/panel/wrapper	--	gen_context(system_u:object_r:bin_t,s0)
+/usr/lib(64)?/xfce4/panel/migrate	--	gen_context(system_u:object_r:bin_t,s0)
+/usr/lib(64)?/xfce4/exo-1/exo-helper-1	--	gen_context(system_u:object_r:bin_t,s0)
+/usr/lib(64)?/xfce4/exo-1/exo-compose-mail-1	--	gen_context(system_u:object_r:bin_t,s0
 
 /usr/lib(64)?/debug/bin(/.*)?	--	gen_context(system_u:object_r:bin_t,s0)
 /usr/lib(64)?/debug/sbin(/.*)? --	gen_context(system_u:object_r:bin_t,s0)
Signature · 1 line
1.7.3.4
#1 lore raw

PATCH 1/1 Update file contexts for xfce4 helper applications

Quoted 21 lines · Sven Vermeulen

Many XFCE4 helper applications are located in /usr/lib locations. This patch marks those helpers as bin_t.

Recursively marking the directories bin_t does not work properly as these locations also contain actual libraries.

---
 policy/modules/kernel/corecommands.fc |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
policy/modules/kernel/corecommands.fc +2 -0
index 3fae11a..54caebe 100644
@@ -226,6 +226,15 @@ ifdef(`distro_gentoo',`
 /usr/lib(64)?/rpm/rpmv		-- 	gen_context(system_u:object_r:bin_t,s0)
 /usr/lib(64)?/sftp-server	--	gen_context(system_u:object_r:bin_t,s0)
 /usr/lib(64)?/vte/gnome-pty-helper --	gen_context(system_u:object_r:bin_t,s0)
+/usr/lib(64)?/xfce4/session/xfsm-shutdown-helper	--	gen_context(system_u:object_r:bin_t,s0)
+/usr/lib(64)?/xfce4/session/balou-export-theme	--	gen_context(system_u:object_r:bin_t,s0)

policy/modules/kernel/corecommands.fc ifdef(`distro_gentoo',` · line 240

Quoted 10 lines
policy/modules/kernel/corecommands.fc +7 -0
+/usr/lib(64)?/xfce4/session/balou-install-theme	--	gen_context(system_u:object_r:bin_t,s0)
+/usr/lib(64)?/xfce4/xfwm4/helper-dialog		--	gen_context(system_u:object_r:bin_t,s0)
+/usr/lib(64)?/xfce4/xfconf/xfconfd	--	gen_context(system_u:object_r:bin_t,s0)
+/usr/lib(64)?/xfce4/panel/wrapper	--	gen_context(system_u:object_r:bin_t,s0)
+/usr/lib(64)?/xfce4/panel/migrate	--	gen_context(system_u:object_r:bin_t,s0)
+/usr/lib(64)?/xfce4/exo-1/exo-helper-1	--	gen_context(system_u:object_r:bin_t,s0)
+/usr/lib(64)?/xfce4/exo-1/exo-compose-mail-1	--	gen_context(system_u:object_r:bin_t,s0
 
 /usr/lib(64)?/debug/bin(/.*)?	--	gen_context(system_u:object_r:bin_t,s0)
 /usr/lib(64)?/debug/sbin(/.*)? --	gen_context(system_u:object_r:bin_t,s0)

Merged. I rearraged the lines and fixed the last context as its missing a ")".

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