Bug 702802

Summary: SELinux is preventing /usr/bin/xdg-user-dirs-gtk-update from 'rename' accesses on the file .gtk-bookmarks.8XV3UV.
Product: [Fedora] Fedora Reporter: Eddie Lania <eddie>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 14CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:e22d054fee19e01c0f7b8477f0cf1c950b033df66975382428f12e570c707963
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-07 20:40:38 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Eddie Lania 2011-05-07 09:21:11 UTC
SELinux is preventing /usr/bin/xdg-user-dirs-gtk-update from 'rename' accesses on the file .gtk-bookmarks.8XV3UV.

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

If you believe that xdg-user-dirs-gtk-update should be allowed rename access on the .gtk-bookmarks.8XV3UV 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 xdg-user-dirs-g /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                unconfined_u:system_r:abrt_helper_t:s0-s0:c0.c1023
Target Context                unconfined_u:object_r:user_home_dir_t:s0
Target Objects                .gtk-bookmarks.8XV3UV [ file ]
Source                        xdg-user-dirs-g
Source Path                   /usr/bin/xdg-user-dirs-gtk-update
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           xdg-user-dirs-gtk-0.8-5.fc13
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-40.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.35.12-90.fc14.i686.PAE #1 SMP Fri Apr 22
                              16:08:03 UTC 2011 i686 i686
Alert Count                   1
First Seen                    Sat 07 May 2011 11:10:13 AM CEST
Last Seen                     Sat 07 May 2011 11:10:13 AM CEST
Local ID                      e9962623-c710-472f-b7b8-21c82a85d240

Raw Audit Messages
type=AVC msg=audit(1304759413.639:548): avc:  denied  { rename } for  pid=4070 comm="xdg-user-dirs-g" name=".gtk-bookmarks.8XV3UV" dev=dm-1 ino=3670453 scontext=unconfined_u:system_r:abrt_helper_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_dir_t:s0 tclass=file


type=SYSCALL msg=audit(1304759413.639:548): arch=i386 syscall=rename success=yes exit=0 a0=85e1f98 a1=85e1f48 a2=21d27c a3=b78267e8 items=0 ppid=3851 pid=4070 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=27 comm=xdg-user-dirs-g exe=/usr/bin/xdg-user-dirs-gtk-update subj=unconfined_u:system_r:abrt_helper_t:s0-s0:c0.c1023 key=(null)

Hash: xdg-user-dirs-g,abrt_helper_t,user_home_dir_t,file,rename

audit2allow

#============= abrt_helper_t ==============
allow abrt_helper_t user_home_dir_t:file rename;

audit2allow -R

#============= abrt_helper_t ==============
allow abrt_helper_t user_home_dir_t:file rename;

Comment 1 Eddie Lania 2011-05-07 20:40:38 UTC

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