Bug 750570 - SELinux is preventing /bin/systemd-tmpfiles from 'rmdir' accesses on the directory dconf.
Summary: SELinux is preventing /bin/systemd-tmpfiles from 'rmdir' accesses on the dire...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 16
Hardware: i686
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:8f585c4c623f62d3c6f89b0498c...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-01 15:39 UTC by Philip Witte
Modified: 2011-11-10 17:30 UTC (History)
10 users (show)

Fixed In Version: selinux-policy-3.10.0-55.fc16
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-11-10 17:30:40 UTC
Type: ---


Attachments (Terms of Use)

Description Philip Witte 2011-11-01 15:39:01 UTC
libreport version: 2.0.6
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.1.0-5.fc16.i686
reason:         SELinux is preventing /bin/systemd-tmpfiles from 'rmdir' accesses on the directory dconf.
time:           Tue Nov  1 10:38:50 2011

description:
:SELinux is preventing /bin/systemd-tmpfiles from 'rmdir' accesses on the directory dconf.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that systemd-tmpfiles should be allowed rmdir access on the dconf 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                system_u:object_r:config_home_t:s0
:Target Objects                dconf [ dir ]
:Source                        systemd-tmpfile
:Source Path                   /bin/systemd-tmpfiles
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           systemd-units-37-2.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-5.fc16.i686 #1 SMP Thu
:                              Oct 27 03:57:40 UTC 2011 i686 i686
:Alert Count                   1
:First Seen                    Tue 01 Nov 2011 10:38:12 AM CDT
:Last Seen                     Tue 01 Nov 2011 10:38:12 AM CDT
:Local ID                      19af92ac-395e-4b08-a05e-8fec604051c4
:
:Raw Audit Messages
:type=AVC msg=audit(1320161892.851:73): avc:  denied  { rmdir } for  pid=1841 comm="systemd-tmpfile" name="dconf" dev=tmpfs ino=18739 scontext=system_u:system_r:systemd_tmpfiles_t:s0 tcontext=system_u:object_r:config_home_t:s0 tclass=dir
:
:
:type=SYSCALL msg=audit(1320161892.851:73): arch=i386 syscall=unlinkat success=no exit=EACCES a0=5 a1=9199a83 a2=200 a3=bff1c4f0 items=0 ppid=1 pid=1841 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=systemd-tmpfile exe=/bin/systemd-tmpfiles subj=system_u:system_r:systemd_tmpfiles_t:s0 key=(null)
:
:Hash: systemd-tmpfile,systemd_tmpfiles_t,config_home_t,dir,rmdir
:
:audit2allow
:
:#============= systemd_tmpfiles_t ==============
:allow systemd_tmpfiles_t config_home_t:dir rmdir;
:
:audit2allow -R
:
:#============= systemd_tmpfiles_t ==============
:allow systemd_tmpfiles_t config_home_t:dir rmdir;
:

Comment 1 Miroslav Grepl 2011-11-02 13:34:47 UTC
Does systemd-tmpfile need to do something with /run/user/$USER/dconf?

Comment 2 Lennart Poettering 2011-11-03 18:02:18 UTC
Yupp, we delete stale files in /run/user/ the same way as in /tmp.

Comment 3 Daniel Walsh 2011-11-03 18:12:27 UTC
Miroslav there is a patch going through upstream to change the label on this file, but for now I would just allow systemd-tmpfiles_t to delete it.

Comment 4 Miroslav Grepl 2011-11-04 11:43:44 UTC
Fixed in selinux-policy-3.10.0-54.fc16

Comment 5 Fedora Update System 2011-11-08 14:06:03 UTC
selinux-policy-3.10.0-55.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/selinux-policy-3.10.0-55.fc16

Comment 6 Fedora Update System 2011-11-10 17:30:40 UTC
selinux-policy-3.10.0-55.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.


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