Bug 561095 - SELinux is preventing /usr/bin/slim "write" access on /var/run/slim.lock.
Summary: SELinux is preventing /usr/bin/slim "write" access on /var/run/slim.lock.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: slim
Version: 12
Hardware: i386
OS: Linux
low
medium
Target Milestone: ---
Assignee: Lorenzo Villani
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:eef0e12094c...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-02-02 17:22 UTC by chorlya
Modified: 2010-03-13 02:33 UTC (History)
4 users (show)

Fixed In Version: slim-1.3.1-11.fc11
Clone Of:
Environment:
Last Closed: 2010-03-11 07:19:54 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description chorlya 2010-02-02 17:22:35 UTC
Summary:

SELinux is preventing /usr/bin/slim "write" access on /var/run/slim.lock.

Detailed Description:

SELinux denied access requested by slim. It is not expected that this access is
required by slim and this access may signal an intrusion attempt. It is also
possible that the specific version or configuration of the application is
causing it to require additional access.

Allowing Access:

You can generate a local policy module to allow this access - see FAQ
(http://docs.fedoraproject.org/selinux-faq-fc5/#id2961385) Please file a bug
report.

Additional Information:

Source Context                system_u:system_r:xdm_t:s0-s0:c0.c1023
Target Context                system_u:object_r:var_run_t:s0
Target Objects                /var/run/slim.lock [ file ]
Source                        slim
Source Path                   /usr/bin/slim
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           slim-1.3.1-9.fc12
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.32-73.fc12
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed) 2.6.31.12-174.2.3.fc12.i686 #1 SMP
                              Mon Jan 18 20:22:46 UTC 2010 i686 i686
Alert Count                   6
First Seen                    Sun 31 Jan 2010 06:44:53 PM CET
Last Seen                     Sun 31 Jan 2010 06:44:56 PM CET
Local ID                      0a6e87ab-bc23-44d0-9dcc-bb5a5c161754
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1264959896.179:39): avc:  denied  { write } for  pid=2409 comm="slim" name="slim.lock" dev=sda6 ino=4089 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:var_run_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1264959896.179:39): arch=40000003 syscall=5 success=no exit=-13 a0=8c6095c a1=8241 a2=1b6 a3=db1649 items=0 ppid=1 pid=2409 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="slim" exe="/usr/bin/slim" subj=system_u:system_r:xdm_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  selinux-policy-3.6.32-73.fc12,catchall,slim,xdm_t,var_run_t,file,write
audit2allow suggests:

#============= xdm_t ==============
allow xdm_t var_run_t:file write;

Comment 1 Daniel Walsh 2010-02-03 13:08:14 UTC
Can slim move all of its /var/run files under /var/run/slim/

Miroslov add

/var/run/slim.*		--	gen_context(system_u:object_r:xdm_var_run_t,s0)

chorlya if you execute 


chcon -t xdm_var_run_t /var/run/slim*  

This avc should go away

Comment 2 Fedora Update System 2010-02-19 23:01:41 UTC
slim-1.3.1-11.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/slim-1.3.1-11.fc11

Comment 3 Fedora Update System 2010-02-19 23:01:46 UTC
slim-1.3.1-11.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/slim-1.3.1-11.fc12

Comment 4 Fedora Update System 2010-02-20 07:35:01 UTC
slim-1.3.1-11.fc12 has been pushed to the Fedora 12 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 slim'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F12/FEDORA-2010-1888

Comment 5 Fedora Update System 2010-02-23 05:35:53 UTC
slim-1.3.1-11.fc11 has been pushed to the Fedora 11 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 slim'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2010-2613

Comment 6 Fedora Update System 2010-03-11 07:19:49 UTC
slim-1.3.1-11.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 7 Fedora Update System 2010-03-13 02:33:44 UTC
slim-1.3.1-11.fc11 has been pushed to the Fedora 11 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.