Skip to contentSkip to conversation

xdm/gpg policy patch

PATCH Russell Coker 1 participant 1 message May 9, 2005 SELinux security module

lore
Share & tools
lore
#0 lore raw

The attached patch makes the policy compile when xdm.te is not used.

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/gpg_agent_macros.te renamed from program/gpg_agent_macros.te.orig +1 -2
@@ -22,7 +22,6 @@
 role $1_r types $1_gpg_agent_t;
 
 allow $1_gpg_agent_t privfd:fd use;
-allow $1_gpg_agent_t xdm_t:fd use;
 
 # Write to the user domain tty.
 access_terminal($1_gpg_agent_t, $1)
@@ -86,7 +85,7 @@
 allow $1_gpg_pinentry_t xdm_xserver_tmp_t:dir search;
 allow $1_gpg_pinentry_t xdm_xserver_tmp_t:sock_file { read write };
 can_unix_connect($1_gpg_pinentry_t, xdm_xserver_t)
-allow $1_gpg_pinentry_t xdm_t:fd use;
+allow { $1_gpg_agent_t $1_gpg_pinentry_t } xdm_t:fd use;
 ')dnl end ig xdm.te
 
 r_dir_file($1_gpg_pinentry_t, fonts_t)