Bug 150474

Summary: Sendmail not allowed to access /dev/[u]random
Product: Red Hat Enterprise Linux 4 Reporter: Richard Allen <ra>
Component: sendmailAssignee: Daniel Walsh <dwalsh>
Status: CLOSED CURRENTRELEASE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0CC: dwalsh, rcoker
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: u2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-10-12 18:17:45 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Richard Allen 2005-03-07 14:31:25 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6)
Gecko/20050302 Firefox/1.0.1 Fedora/1.0.1-1.3.2

Description of problem:
From /var/log/messages

Mar  7 08:33:47 babylon5 kernel: audit(1110184427.714:0): avc:  denied
 { read } for  pid=1250 exe=/usr/sbin/sendmail.sendmail name=urandom
dev=tmpfs ino=437 scontext=root:system_r:system_mail_t
tcontext=system_u:object_r:urandom_device_t tclass=chr_file

Mar  7 08:33:47 babylon5 kernel: audit(1110184427.714:0): avc:  denied
 { read } for  pid=1250 exe=/usr/sbin/sendmail.sendmail name=random
dev=tmpfs ino=435scontext=root:system_r:system_mail_t
tcontext=system_u:object_r:random_device_t tclass=chr_file

Im thinking this has to do with TLS.  As we all know, good random
numbers greatly enhance quality here so I think this should be fixed soon.


Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. Run sendmail with SELinux enabled
2. See /var/log/messages    

Additional info:

Comment 1 Daniel Walsh 2005-03-18 20:10:10 UTC
selinux-policy-targeted-1.17.30-2.90 in FC3 has a fix for this.  I will move to
get this into U2.