Bug 1070944 - SELinux is preventing /usr/bin/bash from 'write' accesses on the fifo_file .
Summary: SELinux is preventing /usr/bin/bash from 'write' accesses on the fifo_file .
Keywords:
Status: CLOSED DUPLICATE of bug 1070268
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:acbfc2deae0765d9e23b9fa39d0...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-02-27 19:21 UTC by Elad Alfassa
Modified: 2014-03-12 10:25 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-02-28 13:23:12 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Elad Alfassa 2014-02-27 19:21:38 UTC
Description of problem:
used `locate`
SELinux is preventing /usr/bin/bash from 'write' accesses on the fifo_file .

*****  Plugin leaks (86.2 confidence) suggests   *****************************

If you want to ignore bash trying to write access the  fifo_file, because you believe it should not need this access.
Then you should report this as a bug.  
You can generate a local policy module to dontaudit this access.
Do
# grep /usr/bin/bash /var/log/audit/audit.log | audit2allow -D -M mypol
# semodule -i mypol.pp

*****  Plugin catchall (14.7 confidence) suggests   **************************

If you believe that bash should be allowed write access on the  fifo_file 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 mlocate /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:locate_t:s0-s0:c0.c1023
Target Context                system_u:object_r:systemd_logind_sessions_t:s0
Target Objects                 [ fifo_file ]
Source                        mlocate
Source Path                   /usr/bin/bash
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           bash-4.2.45-6.fc21.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-27.fc21.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.14.0-0.rc4.git0.2.fc21.x86_64 #1
                              SMP Mon Feb 24 15:34:53 UTC 2014 x86_64 x86_64
Alert Count                   1
First Seen                    2014-02-27 21:19:02 IST
Last Seen                     2014-02-27 21:19:02 IST
Local ID                      a22eb9cb-eb3f-451f-a2e0-a6d50d4da7dd

Raw Audit Messages
type=AVC msg=audit(1393528742.887:163): avc:  denied  { write } for  pid=21093 comm="mlocate" path=2F72756E2F73797374656D642F73657373696F6E732F322E726566202864656C6574656429 dev="tmpfs" ino=725446 scontext=system_u:system_r:locate_t:s0-s0:c0.c1023 tcontext=system_u:object_r:systemd_logind_sessions_t:s0 tclass=fifo_file


type=SYSCALL msg=audit(1393528742.887:163): arch=x86_64 syscall=execve success=yes exit=0 a0=156b840 a1=1570dc0 a2=1568f40 a3=7ffffb31aca0 items=0 ppid=19766 pid=21093 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=2 comm=mlocate exe=/usr/bin/bash subj=system_u:system_r:locate_t:s0-s0:c0.c1023 key=(null)

Hash: mlocate,locate_t,systemd_logind_sessions_t,fifo_file,write

Additional info:
reporter:       libreport-2.1.12
hashmarkername: setroubleshoot
kernel:         3.14.0-0.rc4.git0.2.fc21.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2014-02-28 12:13:38 UTC
Were you updating your system when this happened?

Comment 2 Elad Alfassa 2014-02-28 13:02:04 UTC
Can't remember, sorry

Comment 3 Miroslav Grepl 2014-02-28 13:23:12 UTC

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

Comment 4 ILMostro 2014-03-12 10:25:24 UTC
I just received this error as well while installing group "Development and Creative Workstation". Not sure what to make of it, though; I thought mlocate was a cron job in the background.


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