Bug 969712 - SELinux is preventing /usr/bin/rm from 'write' accesses on the directory extra.
Summary: SELinux is preventing /usr/bin/rm from 'write' accesses on the directory extra.
Keywords:
Status: CLOSED DUPLICATE of bug 969711
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 19
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:131cfa50bf7ae33c8d61b93fea7...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-06-02 01:23 UTC by Moez Roy
Modified: 2013-06-03 05:57 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-06-03 05:57:14 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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 ***


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