Bug 982338 - SELinux is preventing /usr/bin/gnome-session from 'setattr' accesses on the directory at-spi2.
SELinux is preventing /usr/bin/gnome-session from 'setattr' accesses on the d...
Status: CLOSED WONTFIX
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
17
x86_64 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Miroslav Grepl
Fedora Extras Quality Assurance
abrt_hash:5790fa42a2819e08e3098895abb...
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-07-08 14:11 EDT by mardanmar
Modified: 2013-08-01 01:02 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-08-01 01:01:56 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description mardanmar 2013-07-08 14:11:43 EDT
Description of problem:
SELinux is preventing /usr/bin/gnome-session from 'setattr' accesses on the directory at-spi2.

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

If you believe that gnome-session should be allowed setattr access on the at-spi2 directory 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                system_u:object_r:tmp_t:s0
Target Objects                at-spi2 [ dir ]
Source                        gnome-session
Source Path                   /usr/bin/gnome-session
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           gnome-shell-3.4.1-6.fc17.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.10.0-170.fc17.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.9.8-100.fc17.x86_64 #1 SMP Thu
                              Jun 27 19:19:57 UTC 2013 x86_64 x86_64
Alert Count                   3
First Seen                    2013-07-08 14:15:50 CDT
Last Seen                     2013-07-08 14:15:52 CDT
Local ID                      d0441720-0d68-4575-8d6c-46280766d82b

Raw Audit Messages
type=AVC msg=audit(1373310952.271:44): avc:  denied  { setattr } for  pid=1023 comm="gnome-shell" name="at-spi2" dev="dm-1" ino=1051792 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:tmp_t:s0 tclass=dir


type=SYSCALL msg=audit(1373310952.271:44): arch=x86_64 syscall=chmod success=no exit=EACCES a0=7ff1653fa761 a1=3ff a2=11 a3=7fffd484fe70 items=0 ppid=942 pid=1023 auid=42 uid=42 gid=42 euid=42 suid=42 fsuid=42 egid=42 sgid=42 fsgid=42 ses=1 tty=(none) comm=gnome-shell exe=/usr/bin/gnome-shell subj=system_u:system_r:xdm_t:s0-s0:c0.c1023 key=(null)

Hash: gnome-session,xdm_t,tmp_t,dir,setattr

audit2allow

#============= xdm_t ==============
#!!!! This avc can be allowed using the boolean 'allow_polyinstantiation'

allow xdm_t tmp_t:dir setattr;

audit2allow -R

#============= xdm_t ==============
#!!!! This avc can be allowed using the boolean 'allow_polyinstantiation'

allow xdm_t tmp_t:dir setattr;


Additional info:
hashmarkername: setroubleshoot
kernel:         3.9.8-100.fc17.x86_64
type:           libreport

Potential duplicate: bug 690326
Comment 1 Miroslav Grepl 2013-07-10 05:21:11 EDT
Have you seen this happen again?
Comment 2 Fedora End Of Life 2013-08-01 01:02:00 EDT
Fedora 17 changed to end-of-life (EOL) status on 2013-07-30. Fedora 17 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.

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