Skip to contentSkip to conversation

Label fatsort as fsadm_exec_t.

PATCH New Luis Ressel 2 participants 2 messages Feb 15, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Label fatsort as fsadm_exec_t.

FATsort is an utility to sort directory entries on FAT partitions, see
http://fatsort.sourceforge.net/ . It requires direct access to the block devices.

---
 policy/modules/system/fstools.fc | 1 +
 policy/modules/system/fstools.te | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
policy/modules/system/fstools.fc +1 -0
index 4b5327f..f27eb42 100644
@@ -49,6 +49,7 @@
 /usr/bin/syslinux	--	gen_context(system_u:object_r:fsadm_exec_t,s0)
 
 /usr/sbin/clubufflush	--	gen_context(system_u:object_r:fsadm_exec_t,s0)
+/usr/sbin/fatsort	--	gen_context(system_u:object_r:fsadm_exec_t,s0)
 /usr/sbin/parted	--	gen_context(system_u:object_r:fsadm_exec_t,s0)
 /usr/sbin/smartctl	--	gen_context(system_u:object_r:fsadm_exec_t,s0)
 
policy/modules/system/fstools.te +1 -1
index 5aff100..653d0b9 100644
@@ -1,4 +1,4 @@
-policy_module(fstools, 1.16.5)
+policy_module(fstools, 1.16.6)
 
 ########################################
 #
Signature · 1 line
1.8.5.4
#1 lore raw

PATCH 1/1 Label fatsort as fsadm_exec_t.

Quoted 13 lines · Luis Ressel

FATsort is an utility to sort directory entries on FAT partitions, see
http://fatsort.sourceforge.net/ . It requires direct access to the block devices.

---
 policy/modules/system/fstools.fc | 1 +
 policy/modules/system/fstools.te | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
policy/modules/system/fstools.fc +0 -0
index 4b5327f..f27eb42 100644

policy/modules/system/fstools.fc line 54

Quoted 6 lines
policy/modules/system/fstools.fc +1 -0
@@ -49,6 +49,7 @@
 /usr/bin/syslinux	--	gen_context(system_u:object_r:fsadm_exec_t,s0)
 
 /usr/sbin/clubufflush	--	gen_context(system_u:object_r:fsadm_exec_t,s0)
+/usr/sbin/fatsort	--	gen_context(system_u:object_r:fsadm_exec_t,s0)
 /usr/sbin/parted	--	gen_context(system_u:object_r:fsadm_exec_t,s0)
 /usr/sbin/smartctl	--	gen_context(system_u:object_r:fsadm_exec_t,s0)

Merged.

Quoted 11 lines
policy/modules/system/fstools.te +1 -1
index 5aff100..653d0b9 100644
@@ -1,4 +1,4 @@
-policy_module(fstools, 1.16.5)
+policy_module(fstools, 1.16.6)
 
 ########################################
 #
Signature · 3 lines
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com