Skip to contentSkip to conversation

mkfs.cramfs

PATCH Russell Coker 2 participants 3 messages Jun 22, 2005 SELinux security module

lore
Share & tools
lore
#0 lore raw

I've attached a patch for fsadm.fc to make mkfs.cramfs not have fsadm_exec_t. It doesn't access block devices and is more like an archive utility than a regular mkfs program.

Signature · 4 lines
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/    Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page
fsadm.fc renamed from fsadm.fc.orig +1 -0
@@ -1,6 +1,7 @@
 # fs admin utilities
 /sbin/fsck.*		--	system_u:object_r:fsadm_exec_t
 /sbin/mkfs.*		--	system_u:object_r:fsadm_exec_t
+/sbin/mkfs\.cramfs	--	system_u:object_r:sbin_t
 /sbin/e2fsck		--	system_u:object_r:fsadm_exec_t
 /sbin/mkdosfs		--	system_u:object_r:fsadm_exec_t
 /sbin/dosfsck		--	system_u:object_r:fsadm_exec_t
#1 lore raw

mksquashfs isn't in there is it?

[mksquashfs goes in /usr/bin on debian]

Quoted 20 lines · Russell Coker

I've attached a patch for fsadm.fc to make mkfs.cramfs not have fsadm_exec_t. It doesn't access block devices and is more like an archive utility than a regular mkfs program.

Signature · 4 lines
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/    Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page
fsadm.fc renamed from fsadm.fc.orig +1 -0
@@ -1,6 +1,7 @@
 # fs admin utilities
 /sbin/fsck.*		--	system_u:object_r:fsadm_exec_t
 /sbin/mkfs.*		--	system_u:object_r:fsadm_exec_t
+/sbin/mkfs\.cramfs	--	system_u:object_r:sbin_t
 /sbin/e2fsck		--	system_u:object_r:fsadm_exec_t
 /sbin/mkdosfs		--	system_u:object_r:fsadm_exec_t
 /sbin/dosfsck		--	system_u:object_r:fsadm_exec_t
Signature · 8 lines
--
<a href="http://lkcl.net">http://lkcl.net</a>
--

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#2 lore raw
Quoted 3 lines · Luke Kenneth Casson Leighton

mksquashfs isn't in there is it?

[mksquashfs goes in /usr/bin on debian]

mksquashfs won't get caught by the regex "/sbin/mkfs.*". If squashfs works in the same was as cramfs and romfs, and if there is a mkfs.squashfs program then it would need a line in the .fc file.

The point of the entry for mkfs.cramfs is to prevent any special labeling of it.

Quoted 21 lines · Russell Coker
Quoted 20 lines

I've attached a patch for fsadm.fc to make mkfs.cramfs not have fsadm_exec_t. It doesn't access block devices and is more like an archive utility than a regular mkfs program.

--
http://www.coker.com.au/selinux/ My NSA Security Enhanced Linux
packages http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/ Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/ My home page

fsadm.fc renamed from fsadm.fc.orig +1 -0
@@ -1,6 +1,7 @@
 # fs admin utilities
 /sbin/fsck.*		--	system_u:object_r:fsadm_exec_t
 /sbin/mkfs.*		--	system_u:object_r:fsadm_exec_t
+/sbin/mkfs\.cramfs	--	system_u:object_r:sbin_t
 /sbin/e2fsck		--	system_u:object_r:fsadm_exec_t
 /sbin/mkdosfs		--	system_u:object_r:fsadm_exec_t
 /sbin/dosfsck		--	system_u:object_r:fsadm_exec_t
Signature · 9 lines
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/    Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.