| Summary: | SELinux is preventing /sbin/consoletype from read access on the file /var/log/pm-suspend.log | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Piscium <groknok> |
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | low | 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-05-27 09:54:13 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
restorecon -R -v /var/log/pm-suspend.log *** Bug 699162 has been marked as a duplicate of this bug. *** |
Description of problem: I get the issue below every time I wake up from suspend on a Openbox session. It seems to be harmless, so I have not (yet) done a local policy as suggested in the SE alert. 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 /sbin/consoletype from read access on the file /var/log/pm-suspend.log. ***** Plugin restorecon (99.5 confidence) suggests ************************* If you want to fix the label. /var/log/pm-suspend.log default label should be hald_log_t. Then you can run restorecon. Do # /sbin/restorecon -v /var/log/pm-suspend.log ***** Plugin catchall (1.49 confidence) suggests *************************** If you believe that consoletype should be allowed read 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 consoletype /var/log/audit/audit.log | audit2allow -M mypol # semodule -i mypol.pp Additional Information: Source Context unconfined_u:system_r:consoletype_t:s0 Target Context unconfined_u:object_r:var_log_t:s0 Target Objects /var/log/pm-suspend.log [ file ] Source consoletype Source Path /sbin/consoletype Port <Unknown> Host d3000 Source RPM Packages initscripts-9.20.2-1.fc14.1 Target RPM Packages pm-utils-1.3.1-4.fc14 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 1 First Seen Sat 23 Apr 2011 19:12:12 IST Last Seen Sat 23 Apr 2011 19:12:12 IST Local ID 9d6fb763-ac1d-4e38-aa67-0d1a5dcd327c Raw Audit Messages type=AVC msg=audit(1303582332.603:22268): avc: denied { read } for pid=2794 comm="consoletype" path="/var/log/pm-suspend.log" dev=sdb13 ino=14674 scontext=unconfined_u:system_r:consoletype_t:s0 tcontext=unconfined_u:object_r:var_log_t:s0 tclass=file type=AVC msg=audit(1303582332.603:22268): avc: denied { write } for pid=2794 comm="consoletype" path="/var/log/pm-suspend.log" dev=sdb13 ino=14674 scontext=unconfined_u:system_r:consoletype_t:s0 tcontext=unconfined_u:object_r:var_log_t:s0 tclass=file type=SYSCALL msg=audit(1303582332.603:22268): arch=i386 syscall=execve success=yes exit=0 a0=9924a78 a1=991cec0 a2=9924d70 a3=991cec0 items=0 ppid=2793 pid=2794 auid=1000 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=1 comm=consoletype exe=/sbin/consoletype subj=unconfined_u:system_r:consoletype_t:s0 key=(null) Hash: consoletype,consoletype_t,var_log_t,file,read audit2allow #============= consoletype_t ============== allow consoletype_t var_log_t:file { read write }; audit2allow -R #============= consoletype_t ============== allow consoletype_t var_log_t:file { read write };