Bug 882881 - SELinux is preventing /usr/bin/systemd-tmpfiles from 'rmdir' accesses on the directory kdecache-root.
Summary: SELinux is preventing /usr/bin/systemd-tmpfiles from 'rmdir' accesses on the ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 17
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:7450f18aa346150509a4513e10a...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-12-03 09:33 UTC by Gustavo Olivares
Modified: 2012-12-03 11:38 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-12-03 11:38:32 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: type (9 bytes, text/plain)
2012-12-03 09:35 UTC, Gustavo Olivares
no flags Details
File: hashmarkername (14 bytes, text/plain)
2012-12-03 09:35 UTC, Gustavo Olivares
no flags Details

Description Gustavo Olivares 2012-12-03 09:33:53 UTC
Description of problem:
I was not doing anything in particular, I was just browsing the web and I got a notification "bubble" from SELinux.
I presume that a process finished and wanted to clean KDE's cache but wasn't allowed.


Additional info:
libreport version: 2.0.18
kernel:         3.6.6-1.fc17.x86_64

description:
:SELinux is preventing /usr/bin/systemd-tmpfiles from 'rmdir' accesses on the directory kdecache-root.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that systemd-tmpfiles should be allowed rmdir access on the kdecache-root 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:security_t:s0
:Target Objects                kdecache-root [ dir ]
:Source                        systemd-tmpfile
:Source Path                   /usr/bin/systemd-tmpfiles
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           systemd-44-21.fc17.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-159.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.6.6-1.fc17.x86_64 #1 SMP Mon Nov
:                              5 21:59:35 UTC 2012 x86_64 x86_64
:Alert Count                   2
:First Seen                    2012-11-30 14:40:33 NZDT
:Last Seen                     2012-12-03 20:49:45 NZDT
:Local ID                      42500468-c183-4d66-89cd-9834c1e34dbb
:
:Raw Audit Messages
:type=AVC msg=audit(1354520985.134:62): avc:  denied  { rmdir } for  pid=1995 comm="systemd-tmpfile" name="kdecache-root" dev="dm-1" ino=527303 scontext=system_u:system_r:systemd_tmpfiles_t:s0 tcontext=system_u:object_r:security_t:s0 tclass=dir
:
:
:type=SYSCALL msg=audit(1354520985.134:62): arch=x86_64 syscall=unlinkat success=no exit=EACCES a0=4 a1=172a193 a2=200 a3=8028 items=0 ppid=1 pid=1995 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=/usr/bin/systemd-tmpfiles subj=system_u:system_r:systemd_tmpfiles_t:s0 key=(null)
:
:Hash: systemd-tmpfile,systemd_tmpfiles_t,security_t,dir,rmdir
:
:audit2allow
:
:#============= systemd_tmpfiles_t ==============
:allow systemd_tmpfiles_t security_t:dir rmdir;
:
:audit2allow -R
:
:#============= systemd_tmpfiles_t ==============
:allow systemd_tmpfiles_t security_t:dir rmdir;
:

Comment 1 Gustavo Olivares 2012-12-03 09:35:36 UTC
Created attachment 656485 [details]
File: type

Comment 2 Gustavo Olivares 2012-12-03 09:35:40 UTC
Created attachment 656486 [details]
File: hashmarkername

Comment 3 Miroslav Grepl 2012-12-03 11:38:32 UTC
Please remove

/var/tmp/kdecache-root

then it works. We added fixes to prevent this.


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