Skip to contentSkip to conversation

postgrey policy

PATCH Russell Coker 1 participant 1 message Apr 18, 2005 SELinux security module

lore
Share & tools
lore
#0 lore raw

The attached patch allows the latest version of postgrey to do what it wants. It can work without getattr access to { bin_t sbin_t }:dir but there seems no harm in granting it.

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
postgrey.te renamed from postgrey.te.old +1 -1
@@ -10,7 +10,7 @@
 allow postgrey_t urandom_device_t:chr_file { getattr read };
 
 # for perl
-allow postgrey_t sbin_t:dir search;
+allow postgrey_t { bin_t sbin_t }:dir { getattr search };
 allow postgrey_t usr_t:{ file lnk_file } { getattr read };
 dontaudit postgrey_t usr_t:file ioctl;