Skip to contentSkip to conversation

courier policy

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

lore
Share & tools
lore
#0 lore raw

The attached patch is needed to allow courier to read random data for SSL. Recent versions want to stat the random device, and it seems that different versions require either urandom or random.

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/unused/courier.te renamed from program/unused/courier.te.orig +1 -1
@@ -92,7 +92,7 @@
 allow courier_tcpd_t sbin_t:dir search;
 allow courier_tcpd_t var_lib_t:dir search;
 # for TLS
-allow courier_tcpd_t urandom_device_t:chr_file read;
+allow courier_tcpd_t { random_device_t urandom_device_t }:chr_file { getattr read };
 read_locale(courier_tcpd_t)
 can_exec(courier_tcpd_t, courier_exec_t)
 allow courier_authdaemon_t courier_tcpd_t:{ unix_stream_socket tcp_socket } rw_stream_socket_perms;