Skip to contentSkip to conversation

cdrecord policy patch

PATCH Russell Coker 1 participant 1 message Sep 17, 2005 SELinux security module

lore
Share & tools
lore
#0 lore raw

The attached patch is needed to allow cdrecord to work on a nfs home directory.

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
program/cdrecord_macros.te renamed from program/cdrecord_macros.te.orig +4 -0
@@ -45,5 +45,9 @@
 allow $1_cdrecord_t $1_home_t:dir search;
 allow $1_cdrecord_t $1_home_dir_t:dir r_dir_perms;
 allow $1_cdrecord_t $1_home_t:file r_file_perms;
+if (use_nfs_home_dirs) {
+allow $1_cdrecord_t mnt_t:dir search;
+r_dir_file($1_cdrecord_t, nfs_t)
+}
 ')