| Summary: | SELinux is preventing /bin/bash from write access on the file pm-suspend.log | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Piscium <groknok> |
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 14 | CC: | dwalsh, groknok, mgrepl |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | i686 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-04-25 13:54:48 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 699160 *** |
Description of problem: I get the issue below every time I attempt to suspend from a LXDE session. As SELinux prevents suspending I do not actually suspend. I have been running F13 for a while without a similar issue. Today I installed F14 on a blank new partition, so this appears to be a F14 issue. ======================================================== SELinux is preventing /bin/bash from write access on the file pm-suspend.log. ***** Plugin catchall (100. confidence) suggests *************************** If you believe that bash should be allowed write access on the pm-suspend.log 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 pm-suspend /var/log/audit/audit.log | audit2allow -M mypol # semodule -i mypol.pp Additional Information: Source Context system_u:system_r:hald_t:s0 Target Context unconfined_u:object_r:var_log_t:s0 Target Objects pm-suspend.log [ file ] Source pm-suspend Source Path /bin/bash Port <Unknown> Host d3000 Source RPM Packages bash-4.1.7-3.fc14 Target RPM Packages Policy RPM selinux-policy-3.9.7-37.fc14 Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name d3000 Platform Linux d3000 2.6.35.12-88.fc14.i686 #1 SMP Thu Mar 31 22:12:38 UTC 2011 i686 i686 Alert Count 2 First Seen Sat 23 Apr 2011 19:46:02 IST Last Seen Sat 23 Apr 2011 19:46:02 IST Local ID ee46d5bf-fe18-46a1-9dc7-d5d568b99b99 Raw Audit Messages type=AVC msg=audit(1303584362.446:27181): avc: denied { write } for pid=2851 comm="pm-suspend" name="pm-suspend.log" dev=sdb13 ino=14674 scontext=system_u:system_r:hald_t:s0 tcontext=unconfined_u:object_r:var_log_t:s0 tclass=file type=SYSCALL msg=audit(1303584362.446:27181): arch=i386 syscall=open success=no exit=EACCES a0=89f2438 a1=8201 a2=0 a3=0 items=0 ppid=2849 pid=2851 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=pm-suspend exe=/bin/bash subj=system_u:system_r:hald_t:s0 key=(null) Hash: pm-suspend,hald_t,var_log_t,file,write audit2allow #============= hald_t ============== allow hald_t var_log_t:file write; audit2allow -R #============= hald_t ============== allow hald_t var_log_t:file write;