| Summary: | SELinux is preventing /bin/systemd-tmpfiles from 'rmdir' accesses on the directory dconf. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Philip Witte <witte2008> |
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 16 | CC: | dominick.grift, dwalsh, johannbg, lpoetter, metherid, mgrepl, mschmidt, notting, plautrba, systemd-maint |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | i686 | ||
| OS: | Unspecified | ||
| Whiteboard: | abrt_hash:8f585c4c623f62d3c6f89b0498c56db3a0dda2965d79e96943e5048c000bcb15 | ||
| Fixed In Version: | selinux-policy-3.10.0-55.fc16 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-11-10 17:30:40 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
Does systemd-tmpfile need to do something with /run/user/$USER/dconf? Yupp, we delete stale files in /run/user/ the same way as in /tmp. 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. Fixed in selinux-policy-3.10.0-54.fc16 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 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. |
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; :