Bug 836791 - SELinux is preventing /usr/libexec/gdm-session-worker from 'remove_name' accesses on the directory .xsession-errors.
SELinux is preventing /usr/libexec/gdm-session-worker from 'remove_name' acce...
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
17
i686 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Miroslav Grepl
Fedora Extras Quality Assurance
abrt_hash:13e7e43ee58b76ce37707141d5f...
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-07-01 08:51 EDT by Nicolas Berrehouc
Modified: 2012-07-01 17:14 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-07-01 17:14:35 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 Nicolas Berrehouc 2012-07-01 08:51:08 EDT
libreport version: 2.0.10
executable:     /usr/bin/python2.7
hashmarkername: setroubleshoot
kernel:         3.4.4-3.fc17.i686.PAE
time:           dim. 01 juil. 2012 14:49:13 CEST

description:
:SELinux is preventing /usr/libexec/gdm-session-worker from 'remove_name' accesses on the directory .xsession-errors.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that gdm-session-worker should be allowed remove_name access on the .xsession-errors 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 gdm-session-wor /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:home_root_t:s0
:Target Objects                .xsession-errors [ dir ]
:Source                        gdm-session-wor
:Source Path                   /usr/libexec/gdm-session-worker
:Port                          <Inconnu>
:Host                          (removed)
:Source RPM Packages           gdm-3.4.1-3.fc17.i686
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-134.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Permissive
:Host Name                     (removed)
:Platform                      Linux (removed) 3.4.4-3.fc17.i686.PAE #1 SMP Tue
:                              Jun 26 21:11:45 UTC 2012 i686 i686
:Alert Count                   1
:First Seen                    dim. 01 juil. 2012 14:40:59 CEST
:Last Seen                     dim. 01 juil. 2012 14:40:59 CEST
:Local ID                      bdd9b189-11d1-4dcd-be34-2a5e9dd8f245
:
:Raw Audit Messages
:type=AVC msg=audit(1341146459.209:273): avc:  denied  { remove_name } for  pid=1144 comm="gdm-session-wor" name=".xsession-errors" dev="dm-2" ino=8126484 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:home_root_t:s0 tclass=dir
:
:
:type=AVC msg=audit(1341146459.209:273): avc:  denied  { rename } for  pid=1144 comm="gdm-session-wor" name=".xsession-errors" dev="dm-2" ino=8126484 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:home_root_t:s0 tclass=file
:
:
:type=AVC msg=audit(1341146459.209:273): avc:  denied  { add_name } for  pid=1144 comm="gdm-session-wor" name=".xsession-errors.old" dev="dm-2" ino=8126517 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:home_root_t:s0 tclass=dir
:
:
:type=AVC msg=audit(1341146459.209:273): avc:  denied  { unlink } for  pid=1144 comm="gdm-session-wor" name=".xsession-errors.old" dev="dm-2" ino=8126517 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:home_root_t:s0 tclass=file
:
:
:type=SYSCALL msg=audit(1341146459.209:273): arch=i386 syscall=rename success=yes exit=0 a0=9d0b300 a1=9d0f138 a2=9d0f138 a3=9d0b300 items=0 ppid=1123 pid=1144 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=2 comm=gdm-session-wor exe=/usr/libexec/gdm-session-worker subj=system_u:system_r:xdm_t:s0-s0:c0.c1023 key=(null)
:
:Hash: gdm-session-wor,xdm_t,home_root_t,dir,remove_name
:
:audit2allowunable to open /sys/fs/selinux/policy:  Permission denied
:
:
:audit2allow -Runable to open /sys/fs/selinux/policy:  Permission denied
:
:
Comment 1 Miroslav Grepl 2012-07-01 17:14:35 EDT
Your homedir is mislabeled. You can fix it using

# restorecon -R -v /home

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