| Summary: | SELinux is preventing /sbin/setfiles from 'write' accesses on the file /dev/null. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Hicham HAOUARI <hicham.haouari> |
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 15 | CC: | dominick.grift, dwalsh, mgrepl |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | i386 | ||
| OS: | Linux | ||
| Whiteboard: | setroubleshoot_trace_hash:5fd8af46bc373ca3edd75065965b0dd65b3f041e087361c08dc18e7d0f5d08af | ||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-06-13 06:51:28 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
*** This bug has been marked as a duplicate of bug 712741 *** |
SELinux is preventing /sbin/setfiles from 'write' accesses on the file /dev/null. ***** Plugin catchall (50.5 confidence) suggests *************************** If you believe that setfiles should be allowed write access on the null file by default. Then you should report this as a bug. You can generate a local policy module to allow this access. Do allow this access for now by executing: # grep restorecon /var/log/audit/audit.log | audit2allow -M mypol # semodule -i mypol.pp ***** Plugin leaks (50.5 confidence) suggests ****************************** If you want to ignore setfiles trying to write access the null file, because you believe it should not need this access. Then you should report this as a bug. You can generate a local policy module to dontaudit this access. Do # grep /sbin/setfiles /var/log/audit/audit.log | audit2allow -D -M mypol # semodule -i mypol.pp Additional Information: Source Context unconfined_u:system_r:setfiles_t:s0-s0:c0.c1023 Target Context unconfined_u:object_r:device_t:s0 Target Objects /dev/null [ file ] Source restorecon Source Path /sbin/setfiles Port <Unknown> Host (removed) Source RPM Packages policycoreutils-2.0.86-7.fc15 Target RPM Packages Policy RPM selinux-policy-3.9.16-21.fc15 Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux (removed) 2.6.38.5-22.fc15.i686 #1 SMP Mon May 2 20:17:28 UTC 2011 i686 i686 Alert Count 1 First Seen Thu 05 May 2011 03:10:05 PM WEST Last Seen Thu 05 May 2011 03:10:05 PM WEST Local ID cb2bf6d4-d3ce-4791-a3b2-673602d380a2 Raw Audit Messages type=AVC msg=audit(1304604605.654:117): avc: denied { write } for pid=7795 comm="restorecon" path="/dev/null" dev=sda1 ino=203 scontext=unconfined_u:system_r:setfiles_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:device_t:s0 tclass=file type=SYSCALL msg=audit(1304604605.654:117): arch=i386 syscall=execve success=yes exit=0 a0=966ab90 a1=966a648 a2=966a780 a3=966a648 items=0 ppid=7710 pid=7795 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts0 ses=1 comm=restorecon exe=/sbin/setfiles subj=unconfined_u:system_r:setfiles_t:s0-s0:c0.c1023 key=(null) Hash: restorecon,setfiles_t,device_t,file,write audit2allow #============= setfiles_t ============== allow setfiles_t device_t:file write; audit2allow -R #============= setfiles_t ============== allow setfiles_t device_t:file write;