Summary: SELinux prevented restorecon from reading from the urandom device. Detailed Description: [restorecon has a permissive type (setfiles_t). This access was not denied.] SELinux prevented restorecon from reading from the urandom device. This access should be allowed for individual applications, but there are situations where all applications require the access (for example, when ProPolice/SSP stack smashing protection is used). Allowing this access may allow malicious applications to drain the kernel entropy pool. This can compromise the ability of some software that is dependent on high quality random numbers (e.g., ssh-keygen) to operate effectively. The risk of this type of attack is relatively low. Allowing Access: Changing the "global_ssp" boolean to true will allow this access: "setsebool -P global_ssp=1." Fix Command: setsebool -P global_ssp=1 Additional Information: Source Context unconfined_u:unconfined_r:setfiles_t:s0-s0:c0.c102 3 Target Context system_u:object_r:urandom_device_t:s0 Target Objects /dev/urandom [ chr_file ] Source restorecon Source Path /sbin/setfiles Port <Unknown> Host (removed) Source RPM Packages policycoreutils-2.0.82-7.fc13 Target RPM Packages Policy RPM selinux-policy-3.7.19-6.fc13 Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Plugin Name global_ssp Host Name (removed) Platform Linux sup35.ccdom.wi.mit.edu 2.6.33.2-57.fc13.x86_64 #1 SMP Tue Apr 20 08:57:50 UTC 2010 x86_64 x86_64 Alert Count 1 First Seen Fri 30 Apr 2010 09:01:49 PM EDT Last Seen Fri 30 Apr 2010 09:01:49 PM EDT Local ID 9a4a320c-4c08-4ceb-8ef9-4b6bc7758b2e Line Numbers Raw Audit Messages node=sup35.ccdom.wi.mit.edu type=AVC msg=audit(1272675709.917:27220): avc: denied { read } for pid=5722 comm="restorecon" path="/dev/urandom" dev=devtmpfs ino=4054 scontext=unconfined_u:unconfined_r:setfiles_t:s0-s0:c0.c1023 tcontext=system_u:object_r:urandom_device_t:s0 tclass=chr_file node=sup35.ccdom.wi.mit.edu type=SYSCALL msg=audit(1272675709.917:27220): arch=c000003e syscall=59 success=yes exit=0 a0=1923db0 a1=1923fd0 a2=1924370 a3=30 items=0 ppid=5568 pid=5722 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=1 comm="restorecon" exe="/sbin/setfiles" subj=unconfined_u:unconfined_r:setfiles_t:s0-s0:c0.c1023 key=(null) Hash String generated from global_ssp,restorecon,setfiles_t,urandom_device_t,chr_file,read audit2allow suggests: #============= setfiles_t ============== #!!!! This avc can be allowed using the boolean 'global_ssp' allow setfiles_t urandom_device_t:chr_file read;
I think this happened while attempting to connect to remote printer with the printer troubleshooting.
This looks like something in cups is leaking an open file descriptor to /dev/urand.
I don't think this is anything to do with cups, but instead with the system-config-printer troubleshooter -- that's entirely different. Fixing component. For reference: the troubleshooter runs as the logged in user with no special SELinux context, and runs: LC_ALL=C restorecon -nvR /etc/cups/ /usr/lib/cups/ /usr/share/cups/ However, it doesn't close all file descriptors before doing this. It ought to use the close_fds parameter to subprocess.Popen.
system-config-printer-1.2.2-1.fc13 has been submitted as an update for Fedora 13. http://admin.fedoraproject.org/updates/system-config-printer-1.2.2-1.fc13
system-config-printer-1.2.2-1.fc13 has been pushed to the Fedora 13 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update system-config-printer'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/system-config-printer-1.2.2-1.fc13
system-config-printer-1.2.2-2.fc13 has been pushed to the Fedora 13 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update system-config-printer'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/system-config-printer-1.2.2-2.fc13
system-config-printer-1.1.19-1.fc11 has been submitted as an update for Fedora 11. http://admin.fedoraproject.org/updates/system-config-printer-1.1.19-1.fc11
system-config-printer-1.1.19-1.fc12 has been submitted as an update for Fedora 12. http://admin.fedoraproject.org/updates/system-config-printer-1.1.19-1.fc12
system-config-printer-1.1.19-1.fc11 has been pushed to the Fedora 11 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update system-config-printer'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/system-config-printer-1.1.19-1.fc11
system-config-printer-1.1.19-1.fc12 has been pushed to the Fedora 12 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update system-config-printer'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/system-config-printer-1.1.19-1.fc12
*** Bug 598287 has been marked as a duplicate of this bug. ***
system-config-printer-1.2.2-4.fc13 has been pushed to the Fedora 13 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update system-config-printer'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/system-config-printer-1.2.2-4.fc13
system-config-printer-1.2.2-4.fc13 has been pushed to the Fedora 13 stable repository. If problems still persist, please make note of it in this bug report.
system-config-printer-1.1.19-3.fc12 has been pushed to the Fedora 12 stable repository. If problems still persist, please make note of it in this bug report.