Bug 696054 - SELinux is preventing /usr/bin/kdm from using the 'getsession' accesses on a process.
Summary: SELinux is preventing /usr/bin/kdm from using the 'getsession' accesses on a ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 15
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:84bc37b28d8...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-13 07:20 UTC by Michal Hlavinka
Modified: 2011-04-15 21:32 UTC (History)
2 users (show)

Fixed In Version: selinux-policy-3.9.16-15.fc15
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-04-15 21:32:37 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Michal Hlavinka 2011-04-13 07:20:59 UTC
SELinux is preventing /usr/bin/kdm from using the 'getsession' accesses on a process.

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

If you believe that kdm should be allowed getsession access on processes labeled xdm_t 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 kdm /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                system_u:system_r:xdm_t:s0-s0:c0.c1023
Target Objects                Unknown [ process ]
Source                        kdm
Source Path                   /usr/bin/kdm
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           kdm-4.6.2-2.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-13.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 2.6.38.2-14.fc15.x86_64
                              #1 SMP Mon Apr 11 23:50:28 UTC 2011 x86_64 x86_64
Alert Count                   2
First Seen                    Wed 13 Apr 2011 09:09:32 AM CEST
Last Seen                     Wed 13 Apr 2011 09:14:32 AM CEST
Local ID                      8d67f47e-c082-4568-8ff6-2af5b77178fd

Raw Audit Messages
type=AVC msg=audit(1302678872.296:89): avc:  denied  { getsession } for  pid=4730 comm="kdm" scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tclass=process


type=SYSCALL msg=audit(1302678872.296:89): arch=x86_64 syscall=getsid success=yes exit=1678 a0=127a a1=0 a2=127a a3=7fffe3f755f0 items=0 ppid=1 pid=4730 auid=4294967295 uid=501 gid=0 euid=501 suid=501 fsuid=501 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=kdm exe=/usr/bin/kdm subj=system_u:system_r:xdm_t:s0-s0:c0.c1023 key=(null)

Hash: kdm,xdm_t,xdm_t,process,getsession

audit2allow

#============= xdm_t ==============
allow xdm_t self:process getsession;

audit2allow -R

#============= xdm_t ==============
allow xdm_t self:process getsession;

Comment 1 Michal Hlavinka 2011-04-13 07:21:51 UTC
happens during user switching

Comment 2 Daniel Walsh 2011-04-13 15:11:24 UTC
Should definitely be allowed.

Fixed in selinux-policy-3.9.16-15.fc15

Comment 3 Daniel Walsh 2011-04-13 15:14:32 UTC
Miroslav we should put this in F13, F14, RHEL6 also.

Comment 4 Fedora Update System 2011-04-13 19:47:47 UTC
selinux-policy-3.9.16-15.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/selinux-policy-3.9.16-15.fc15

Comment 5 Fedora Update System 2011-04-14 00:34:25 UTC
Package selinux-policy-3.9.16-15.fc15:
* should fix your issue,
* was pushed to the Fedora 15 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.9.16-15.fc15'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/selinux-policy-3.9.16-15.fc15
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2011-04-15 21:31:10 UTC
selinux-policy-3.9.16-15.fc15 has been pushed to the Fedora 15 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.