Bug 748462

Summary: SELinux is preventing /usr/bin/gnome-session from 'write' accesses on the file /home/eitan/.ICEauthority.
Product: [Fedora] Fedora Reporter: Eitan Isaacson <eitan>
Component: gdmAssignee: Ray Strode [halfline] <rstrode>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: dominick.grift, dwalsh, mgrepl, rstrode, silentdi
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:584d2c9ef069d2e01a0f46e6e8923ff0588e5fc5d860a3121d1de4c3b8a7887b
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-13 21:47:39 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Eitan Isaacson 2011-10-24 14:28:18 UTC
libreport version: 2.0.6
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.1.0-0.rc10.git0.1.fc16.x86_64
reason:         SELinux is preventing /usr/bin/gnome-session from 'write' accesses on the file /home/eitan/.ICEauthority.
time:           Mon Oct 24 10:27:31 2011

description:
:SELinux is preventing /usr/bin/gnome-session from 'write' accesses on the file /home/eitan/.ICEauthority.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that gnome-session should be allowed write access on the .ICEauthority 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 gnome-session /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:iceauth_home_t:s0
:Target Objects                /home/eitan/.ICEauthority [ file ]
:Source                        gnome-session
:Source Path                   /usr/bin/gnome-session
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           gnome-session-3.2.1-1.fc16
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-46.fc16
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.1.0-0.rc10.git0.1.fc16.x86_64 #1 SMP
:                              Wed Oct 19 05:02:17 UTC 2011 x86_64 x86_64
:Alert Count                   6
:First Seen                    Sat 22 Oct 2011 03:19:33 PM EDT
:Last Seen                     Mon 24 Oct 2011 10:15:42 AM EDT
:Local ID                      5a4de0a5-7df4-47c7-bb47-688fb511e6f3
:
:Raw Audit Messages
:type=AVC msg=audit(1319465742.715:63): avc:  denied  { write } for  pid=1298 comm="gnome-session" name=".ICEauthority" dev=dm-2 ino=2359322 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:iceauth_home_t:s0 tclass=file
:
:
:type=SYSCALL msg=audit(1319465742.715:63): arch=x86_64 syscall=open success=no exit=EACCES a0=26342c0 a1=2 a2=1b6 a3=383932312f7869 items=0 ppid=1287 pid=1298 auid=4294967295 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=4294967295 comm=gnome-session exe=/usr/bin/gnome-session subj=system_u:system_r:xdm_t:s0-s0:c0.c1023 key=(null)
:
:Hash: gnome-session,xdm_t,iceauth_home_t,file,write
:
:audit2allow
:
:#============= xdm_t ==============
:#!!!! This avc is allowed in the current policy
:
:allow xdm_t iceauth_home_t:file write;
:
:audit2allow -R
:
:#============= xdm_t ==============
:#!!!! This avc is allowed in the current policy
:
:allow xdm_t iceauth_home_t:file write;
:

Comment 1 Daniel Walsh 2011-10-24 15:43:57 UTC
What login program are you using?

Comment 2 Eitan Isaacson 2011-10-24 16:38:30 UTC
GDM, I'm assuming?
gdm-3.2.1.1-1.fc16.x86_64

Comment 3 Daniel Walsh 2011-10-24 17:37:06 UTC
Did you touch the /etc/pam.d/gdm* files?

rpm -q gdm
gdm-3.2.1.1-1.fc16.x86_64
rpm -qV gdm

Comment 4 Eitan Isaacson 2011-10-24 17:41:47 UTC
No, didn't touch anything in that directory.

[root@mozzy eitan]# rpm -q gdm
gdm-3.2.1.1-1.fc16.x86_64
[root@mozzy eitan]# rpm -qV gdm
......GM.    /var/log/gdm
.......M.    /var/run/gdm
missing     /var/run/gdm/greeter
[root@mozzy eitan]#

Comment 5 Daniel Walsh 2011-10-24 18:07:25 UTC
And when you are logged in via X can you execute

id -Z

Comment 6 Eitan Isaacson 2011-10-24 18:10:28 UTC
[eitan@mozzy androidciser]$ id -Z
unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023

Comment 7 Daniel Walsh 2011-10-24 18:18:18 UTC
Ray, Any idea why gnome-session would be running as UID=1000, before pam_selinux is called?

Comment 8 Fedora End Of Life 2013-01-16 17:16:53 UTC
This message is a reminder that Fedora 16 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 16. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '16'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 16's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 16 is end of life. If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora, you are encouraged to click on 
"Clone This Bug" and open it against that version of Fedora.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 9 Fedora End Of Life 2013-02-13 21:47:43 UTC
Fedora 16 changed to end-of-life (EOL) status on 2013-02-12. Fedora 16 is 
no longer maintained, which means that it will not receive any further 
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.