Bug 1135687

Summary: SELinux is preventing /usr/bin/rm from 'rmdir' accesses on the directory .vbox-boinc-ipc.
Product: [Fedora] Fedora Reporter: OoZooL <obliterator666>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: dominick.grift, dwalsh, lvrabec, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:063cb7af33d12102ef4ab728101d07a1df5ab4b710898c380fa23f9a24c33f10
Fixed In Version: selinux-policy-3.12.1-74.30.fc19 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-12-19 18:29:24 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 OoZooL 2014-08-30 11:12:40 UTC
Description of problem:
SELinux is preventing /usr/bin/rm from 'rmdir' accesses on the directory .vbox-boinc-ipc.

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

If you believe that rm should be allowed rmdir access on the .vbox-boinc-ipc 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 rm /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:boinc_t:s0
Target Context                system_u:object_r:boinc_project_tmp_t:s0
Target Objects                .vbox-boinc-ipc [ dir ]
Source                        rm
Source Path                   /usr/bin/rm
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           coreutils-8.21-13.fc19.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-74.26.fc19.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.12.8-200.fc19.x86_64 #1 SMP Thu
                              Jan 16 04:18:11 UTC 2014 x86_64 x86_64
Alert Count                   1
First Seen                    2014-08-30 13:38:01 IDT
Last Seen                     2014-08-30 13:38:01 IDT
Local ID                      64484138-2cf0-4bca-9602-2b46a5470d94

Raw Audit Messages
type=AVC msg=audit(1409395081.519:1941): avc:  denied  { rmdir } for  pid=23540 comm="rm" name=".vbox-boinc-ipc" dev="tmpfs" ino=7816717 scontext=system_u:system_r:boinc_t:s0 tcontext=system_u:object_r:boinc_project_tmp_t:s0 tclass=dir


type=SYSCALL msg=audit(1409395081.519:1941): arch=x86_64 syscall=unlinkat success=no exit=EACCES a0=ffffffffffffff9c a1=22f60c0 a2=200 a3=0 items=0 ppid=23529 pid=23540 auid=4294967295 uid=988 gid=985 euid=988 suid=988 fsuid=988 egid=985 sgid=985 fsgid=985 ses=4294967295 tty=(none) comm=rm exe=/usr/bin/rm subj=system_u:system_r:boinc_t:s0 key=(null)

Hash: rm,boinc_t,boinc_project_tmp_t,dir,rmdir

Additional info:
reporter:       libreport-2.2.2
hashmarkername: setroubleshoot
kernel:         3.12.8-200.fc19.x86_64
type:           libreport

Potential duplicate: bug 797436

Comment 1 Miroslav Grepl 2014-09-03 12:03:43 UTC
*** Bug 1135688 has been marked as a duplicate of this bug. ***

Comment 2 Lukas Vrabec 2014-09-03 14:25:46 UTC
commit 8aadb719f808bc1126e161f42050022337ac676a
Author: Lukas Vrabec <lvrabec>
Date:   Wed Sep 3 15:48:43 2014 +0200

    Allow boinc_t manage boinc_project_tmp_t files and dirs (#1135687)

https://github.com/selinux-policy/selinux-policy/commit/8aadb719f808bc1126e161f42050022337ac676a

Comment 3 Fedora Update System 2014-12-03 12:53:22 UTC
selinux-policy-3.12.1-74.30.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-74.30.fc19

Comment 4 Fedora Update System 2014-12-04 06:27:14 UTC
Package selinux-policy-3.12.1-74.30.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.12.1-74.30.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-16276/selinux-policy-3.12.1-74.30.fc19
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2014-12-19 18:29:24 UTC
selinux-policy-3.12.1-74.30.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.