Bug 683528 - SELinux is preventing /usr/sbin/lxdm-binary from 'rename' accesses on the file /var/log/lxdm.log.
Summary: SELinux is preventing /usr/sbin/lxdm-binary from 'rename' accesses on the fil...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 15
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:1f989212fde...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-03-09 16:20 UTC by Hicham HAOUARI
Modified: 2011-08-12 19:42 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-03-09 22:05:27 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Hicham HAOUARI 2011-03-09 16:20:52 UTC
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;

Comment 1 Daniel Walsh 2011-03-09 22:05:27 UTC
restorecon /var/log/lxdm.log

Will fix the problem.

If it happens again, reopen the bug.


Note You need to log in before you can comment on or make changes to this bug.