Bug 969712

Summary: SELinux is preventing /usr/bin/rm from 'write' accesses on the directory extra.
Product: [Fedora] Fedora Reporter: Moez Roy <moez.roy>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:131cfa50bf7ae33c8d61b93fea7e7702498b3222e33262974cd588ecfddf0577
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-06-03 05:57:14 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 Moez Roy 2013-06-02 01:23:48 UTC
Description of problem:
SELinux is preventing /usr/bin/rm from 'write' accesses on the directory extra.

*****  Plugin kernel_modules (91.4 confidence) suggests  *********************

If you do not think rm should try write access on extra.
Then you may be under attack by a hacker, since confined applications should not need this access.
Do
contact your security administrator and report this issue.

*****  Plugin catchall (9.59 confidence) suggests  ***************************

If you believe that rm should be allowed write access on the extra 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                unconfined_u:system_r:initrc_t:s0
Target Context                system_u:object_r:modules_object_t:s0
Target Objects                extra [ dir ]
Source                        rm
Source Path                   /usr/bin/rm
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           coreutils-8.21-11.fc19.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-47.fc19.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.9.4-300.fc19.x86_64 #1 SMP Fri
                              May 24 22:17:06 UTC 2013 x86_64 x86_64
Alert Count                   6
First Seen                    2013-06-01 21:21:38 EDT
Last Seen                     2013-06-01 21:21:49 EDT
Local ID                      3bb4eabc-c251-4d65-9046-dac4963e0741

Raw Audit Messages
type=AVC msg=audit(1370136109.442:516): avc:  denied  { write } for  pid=3830 comm="rm" name="extra" dev="sda2" ino=537865 scontext=unconfined_u:system_r:initrc_t:s0 tcontext=system_u:object_r:modules_object_t:s0 tclass=dir


type=SYSCALL msg=audit(1370136109.442:516): arch=x86_64 syscall=unlinkat success=no exit=EACCES a0=ffffffffffffff9c a1=1e360c0 a2=0 a3=7fff73453740 items=0 ppid=3827 pid=3830 auid=1000 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=1 tty=pts0 comm=rm exe=/usr/bin/rm subj=unconfined_u:system_r:initrc_t:s0 key=(null)

Hash: rm,initrc_t,modules_object_t,dir,write

Additional info:
reporter:       libreport-2.1.4
hashmarkername: setroubleshoot
kernel:         3.9.4-300.fc19.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2013-06-03 05:57:14 UTC

*** This bug has been marked as a duplicate of bug 969711 ***