Bug 675184 - SELinux is preventing /lib/upstart/shutdown from 'ioctl' accesses on the file /var/log/lxdm.log.
Summary: SELinux is preventing /lib/upstart/shutdown from 'ioctl' accesses on the file...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 14
Hardware: i386
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:28b235b1d2b...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-04 15:03 UTC by Ensley Feemster
Modified: 2011-02-24 20:53 UTC (History)
3 users (show)

Fixed In Version: selinux-policy-3.9.7-31.fc14
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-02-24 20:53:34 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Ensley Feemster 2011-02-04 15:03:10 UTC
SELinux is preventing /lib/upstart/shutdown from 'ioctl' accesses on the file /var/log/lxdm.log.

*****  Plugin catchall (100. confidence) suggests  ***************************

If you believe that shutdown should be allowed ioctl 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 shutdown /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:shutdown_t:s0-s0:c0.c1023
Target Context                system_u:object_r:xdm_log_t:s0
Target Objects                /var/log/lxdm.log [ file ]
Source                        shutdown
Source Path                   /lib/upstart/shutdown
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           upstart-0.6.5-10.fc14
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-28.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.35.6-45.fc14.i686
                              #1 SMP Mon Oct 18 23:56:17 UTC 2010 i686 i686
Alert Count                   1
First Seen                    Fri 04 Feb 2011 09:43:20 AM EST
Last Seen                     Fri 04 Feb 2011 09:43:20 AM EST
Local ID                      12572df2-d181-4354-8b2d-9ad2c5290ebd

Raw Audit Messages
type=AVC msg=audit(1296830600.307:45): avc:  denied  { ioctl } for  pid=18305 comm="shutdown" path="/var/log/lxdm.log" dev=dm-0 ino=72114 scontext=system_u:system_r:shutdown_t:s0-s0:c0.c1023 tcontext=system_u:object_r:xdm_log_t:s0 tclass=file


type=SYSCALL msg=audit(1296830600.307:45): arch=i386 syscall=ioctl success=no exit=EACCES a0=1 a1=5401 a2=bfd839a0 a3=bfd83abc items=0 ppid=1 pid=18305 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=1 comm=shutdown exe=/lib/upstart/shutdown subj=system_u:system_r:shutdown_t:s0-s0:c0.c1023 key=(null)

Hash: shutdown,shutdown_t,xdm_log_t,file,ioctl

audit2allow

#============= shutdown_t ==============
allow shutdown_t xdm_log_t:file ioctl;

audit2allow -R

#============= shutdown_t ==============
allow shutdown_t xdm_log_t:file ioctl;

Comment 1 Daniel Walsh 2011-02-04 15:21:06 UTC
Miroslav lets add

	xserver_xdm_append_log(shutdown_t)

to F13/F14

Comment 2 Miroslav Grepl 2011-02-14 14:18:46 UTC
Fixed in selinux-policy-3.9.7-30.fc14

Comment 3 Fedora Update System 2011-02-21 20:27:58 UTC
selinux-policy-3.9.7-31.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/selinux-policy-3.9.7-31.fc14

Comment 4 Fedora Update System 2011-02-22 04:53:33 UTC
selinux-policy-3.9.7-31.fc14 has been pushed to the Fedora 14 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update selinux-policy'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/selinux-policy-3.9.7-31.fc14

Comment 5 Fedora Update System 2011-02-24 20:52:53 UTC
selinux-policy-3.9.7-31.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.


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