Bug 232643

Summary: AVC on bootup: read access to /dev/random?
Product: [Fedora] Fedora Reporter: Tom London <selinux>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED RAWHIDE QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: dwalsh, ikent
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-03-28 14:36:50 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 Tom London 2007-03-16 14:30:41 UTC
Description of problem:

type=AVC msg=audit(1174054492.520:9): avc:  denied  { read } for  pid=2525
comm="automount" name="random" dev=tmpfs ino=3098
scontext=system_u:system_r:automount_t:s0
tcontext=system_u:object_r:random_device_t:s0 tclass=chr_file
type=SYSCALL msg=audit(1174054492.520:9): arch=40000003 syscall=5 success=no
exit=-13 a0=2ff243 a1=0 a2=2f7730 a3=812ac280 items=0 ppid=2524 pid=2525
auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0
tty=(none) comm="automount" exe="/usr/sbin/automount"
subj=system_u:system_r:automount_t:s0 key=(null)
type=AVC msg=audit(1174054492.520:10): avc:  denied  { read } for  pid=2530
comm="automount" name="random" dev=tmpfs ino=3098
scontext=system_u:system_r:automount_t:s0
tcontext=system_u:object_r:random_device_t:s0 tclass=chr_file
type=SYSCALL msg=audit(1174054492.520:10): arch=40000003 syscall=5 success=no
exit=-13 a0=dd6243 a1=0 a2=dce730 a3=812ac808 items=0 ppid=2524 pid=2530
auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0
tty=(none) comm="automount" exe="/usr/sbin/automount"
subj=system_u:system_r:automount_t:s0 key=(null)

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



How reproducible:
every time

Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Jeff Moyer 2007-03-16 14:38:45 UTC
Dan,

Autofs has an option for supporting a random multimount selection scheme. 
Because of this, we seed the random function with /dev/random at daemon startup.
 So, can you modify the policy accordingly?  Should this be reassigned to policy?


Comment 2 Daniel Walsh 2007-03-19 20:21:17 UTC
Fixed in selinux-policy-2.5.8-8.fc7