| Summary: | SELinux is preventing /usr/sbin/lxdm-binary from 'rename' accesses on the file /var/log/lxdm.log. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Hicham HAOUARI <hicham.haouari> |
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 15 | CC: | bugzilla, dwalsh, mgrepl, rvcsaba |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | i386 | ||
| OS: | Linux | ||
| Whiteboard: | setroubleshoot_trace_hash:1f989212fdec8b5544303de171a2326b0a5acae8b8614563b1b0c729ba970270 | ||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-03-09 22:05:27 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 /var/log/lxdm.log Will fix the problem. If it happens again, reopen the bug. |
SELinux is preventing /usr/sbin/lxdm-binary from 'rename' accesses on the file /var/log/lxdm.log. ***** Plugin catchall (100. confidence) suggests *************************** If you believe that lxdm-binary should be allowed rename access on the lxdm.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 lxdm-binary /var/log/audit/audit.log | audit2allow -M mypol # semodule -i mypol.pp Additional Information: Source Context system_u:system_r:xdm_t:s0-s0:c0.c1023 Target Context unconfined_u:object_r:var_log_t:s0 Target Objects /var/log/lxdm.log [ file ] Source lxdm-binary Source Path /usr/sbin/lxdm-binary Port <Unknown> Host (removed) Source RPM Packages lxdm-0.3.0-4.fc15 Target RPM Packages Policy RPM selinux-policy-3.9.15-2.fc15 Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux (removed) 2.6.38-0.rc6.git6.1.fc15.i686 #1 SMP Sat Feb 26 02:03:01 UTC 2011 i686 i686 Alert Count 20 First Seen Mon 07 Mar 2011 06:16:41 PM WET Last Seen Wed 09 Mar 2011 12:26:07 PM WET Local ID b8cf9eb5-c144-4f1b-9eb5-4ea89442120b Raw Audit Messages type=AVC msg=audit(1299673567.650:39): avc: denied { rename } for pid=912 comm="lxdm-binary" name="lxdm.log" dev=sda5 ino=5148 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:var_log_t:s0 tclass=file type=SYSCALL msg=audit(1299673567.650:39): arch=i386 syscall=rename success=no exit=EACCES a0=8050764 a1=805074e a2=2 a3=0 items=0 ppid=1 pid=912 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=lxdm-binary exe=/usr/sbin/lxdm-binary subj=system_u:system_r:xdm_t:s0-s0:c0.c1023 key=(null) Hash: lxdm-binary,xdm_t,var_log_t,file,rename audit2allow #============= xdm_t ============== allow xdm_t var_log_t:file rename; audit2allow -R #============= xdm_t ============== allow xdm_t var_log_t:file rename;