Bug 969712 - SELinux is preventing /usr/bin/rm from 'write' accesses on the directory extra.
SELinux is preventing /usr/bin/rm from 'write' accesses on the directory extra.
Status: CLOSED DUPLICATE of bug 969711
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
x86_64 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Miroslav Grepl
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2013-06-01 21:23 EDT by Moez Roy
Modified: 2013-06-03 01:57 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2013-06-03 01:57:14 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Moez Roy 2013-06-01 21:23:48 EDT
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.
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.
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 01:57:14 EDT

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

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