Bug 915454

Summary: SELinux is preventing /usr/bin/systemd-tmpfiles from 'setattr' accesses on the directory Dropbox.
Product: [Fedora] Fedora Reporter: Donald Cohen <don-redhat-z6y>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: dominick.grift, don-redhat-z6y, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:1fe7c66503cfedeb3b925bc527e1b5deb280bb970db6dfce708cdb560fa15341
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-08-01 05:01:28 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:
Attachments:
Description Flags
File: type
none
File: hashmarkername none

Description Donald Cohen 2013-02-25 19:32:52 UTC
Description of problem:
I don't think it's caused by anything I did at any time near the problem.
I don't know what systemd-tmpfiles is or why it wants to change my dropbox directory.
Please tell me.


Additional info:
libreport version: 2.0.18
kernel:         3.7.6-102.fc17.x86_64

description:
:SELinux is preventing /usr/bin/systemd-tmpfiles from 'setattr' accesses on the directory Dropbox.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that systemd-tmpfiles should be allowed setattr access on the Dropbox 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 systemd-tmpfile /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:systemd_tmpfiles_t:s0
:Target Context                unconfined_u:object_r:user_home_t:s0
:Target Objects                Dropbox [ dir ]
:Source                        systemd-tmpfile
:Source Path                   /usr/bin/systemd-tmpfiles
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           systemd-44-23.fc17.x86_64 systemd-44-23.fc17.i686
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-167.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.7.6-102.fc17.x86_64 #1 SMP Mon
:                              Feb 4 17:40:25 UTC 2013 x86_64 x86_64
:Alert Count                   41
:First Seen                    2013-02-25 11:24:03 PST
:Last Seen                     2013-02-25 11:24:06 PST
:Local ID                      087c3b92-78be-409a-a485-43e41008badb
:
:Raw Audit Messages
:type=AVC msg=audit(1361820246.853:1004): avc:  denied  { setattr } for  pid=24927 comm="systemd-tmpfile" name="Dropbox" dev="dm-2" ino=930110 scontext=system_u:system_r:systemd_tmpfiles_t:s0 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=dir
:
:
:type=SYSCALL msg=audit(1361820246.853:1004): arch=x86_64 syscall=utimensat success=no exit=EACCES a0=5 a1=0 a2=7fffc29cbf80 a3=0 items=0 ppid=1 pid=24927 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm=systemd-tmpfile exe=/usr/bin/systemd-tmpfiles subj=system_u:system_r:systemd_tmpfiles_t:s0 key=(null)
:
:Hash: systemd-tmpfile,systemd_tmpfiles_t,user_home_t,dir,setattr
:
:audit2allow
:
:#============= systemd_tmpfiles_t ==============
:allow systemd_tmpfiles_t user_home_t:dir setattr;
:
:audit2allow -R
:
:#============= systemd_tmpfiles_t ==============
:allow systemd_tmpfiles_t user_home_t:dir setattr;
:


Potential duplicate bug: 809189

Comment 1 Donald Cohen 2013-02-25 19:33:04 UTC
Created attachment 702495 [details]
File: type

Comment 2 Donald Cohen 2013-02-25 19:33:05 UTC
Created attachment 702496 [details]
File: hashmarkername

Comment 3 Daniel Walsh 2013-02-26 21:35:16 UTC
Anything about DropBox in /usr/lib/tmpfiles.d /etc/tmpfiles.d

Comment 4 Donald Cohen 2013-02-26 21:50:29 UTC
I guess that was a question.
$ grep -il dropbox /usr/lib/tmpfiles.d/*
[2013-02-26 13:47:53 root@number13 ~]
$ grep -il dropbox /etc/tmpfiles.d/*
[2013-02-26 13:48:04 root@number13 ~]
$

Which I think means that the answer to your question is no.

Comment 5 Miroslav Grepl 2013-02-27 07:52:45 UTC
Could you try to find where "Dropbox" is placed?

Comment 6 Donald Cohen 2013-02-27 08:48:41 UTC
I guess you mean where's the dropbox directory.
The only one I know of is /home/don/Dropbox
I wonder why the original complaint didn't mention that.

Comment 7 Fedora End Of Life 2013-07-04 00:56:46 UTC
This message is a reminder that Fedora 17 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 17. 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 '17'.

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 17'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 17 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  change the 
'version' to a later Fedora version prior to Fedora 17's end of life.

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.

Comment 8 Miroslav Grepl 2013-07-04 09:44:32 UTC
Are you still getting this?

Comment 9 Donald Cohen 2013-07-04 15:22:26 UTC
  Are you still getting this?
I guess that was a selinux alert and I'm at least not getting that now.
Maybe it's cause I executed the commands in the message to allow it though.
I do still see the following line 4 times every time I put the mouse over the dropbox icon in the task bar:

(dropbox:11378): Gdk-CRITICAL **: IA__gdk_window_get_root_coords: assertion `GDK_IS_WINDOW (window)' failed

Comment 10 Daniel Walsh 2013-07-05 11:23:51 UTC
Is there something meantioned from dropbox in /etc/tmpfiles.d or /lib/tmpfiles.d

grep -i dropbox /lib/tmpfiles.d/* /etc/tmpfiles.d/*

Comment 11 Fedora End Of Life 2013-08-01 05:01:33 UTC
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.