Bug 540211 - SELinux is preventing kdm (xdm_t) "unlink" to .Xauthority (user_home_t).
Summary: SELinux is preventing kdm (xdm_t) "unlink" to .Xauthority (user_home_t).
Keywords:
Status: CLOSED DUPLICATE of bug 538428
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 12
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:11c9cb7ae38...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-11-22 19:04 UTC by Pär Aronsson
Modified: 2009-11-23 15:57 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-11-23 15:57:44 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Pär Aronsson 2009-11-22 19:04:25 UTC
Summary:

SELinux is preventing kdm (xdm_t) "unlink" to .Xauthority (user_home_t).

Detailed Description:

SELinux denied access requested by kdm. The current boolean settings do not
allow this access. If you have not setup kdm to require this access this may
signal an intrusion attempt. If you do intend this access you need to change the
booleans on this system to allow the access.

Allowing Access:

Confined processes can be configured to to run requiring different access,
SELinux provides booleans to allow you to turn on/off access as needed. The
boolean allow_polyinstantiation is set incorrectly.
Boolean Description:
Enable polyinstantiated directory support.


Fix Command:

# setsebool -P allow_polyinstantiation 1

Additional Information:

Source Context                system_u:system_r:xdm_t:s0-s0:c0.c1023
Target Context                unconfined_u:object_r:user_home_t:s0
Target Objects                .Xauthority [ file ]
Source                        kdm
Source Path                   /usr/bin/kdm
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           kdm-4.2.3-5.fc11
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.12-39.fc11
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall_boolean
Host Name                     (removed)
Platform                      Linux (removed) 2.6.29.4-167.fc11.x86_64
                              #1 SMP Wed May 27 17:27:08 EDT 2009 x86_64 x86_64
Alert Count                   4
First Seen                    Fri 12 Jun 2009 08:12:55 AM CEST
Last Seen                     Mon 15 Jun 2009 08:50:42 PM CEST
Local ID                      cee46faa-3a26-4eda-808d-d90cd7675c99
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1245091842.564:27004): avc:  denied  { unlink } for  pid=32067 comm="kdm" name=".Xauthority" dev=dm-7 ino=2078838 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1245091842.564:27004): arch=c000003e syscall=87 success=no exit=-13 a0=7fff70d75a10 a1=7fff70d75600 a2=0 a3=40 items=0 ppid=31860 pid=32067 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=14 comm="kdm" exe="/usr/bin/kdm" subj=system_u:system_r:xdm_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  selinux-policy-3.6.12-39.fc11,catchall_boolean,kdm,xdm_t,user_home_t,file,unlink
audit2allow suggests:

#============= xdm_t ==============
allow xdm_t user_home_t:file unlink;

Comment 1 Daniel Walsh 2009-11-23 15:57:44 UTC

*** This bug has been marked as a duplicate of bug 538428 ***


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