Bug 1070496 - 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:14cacb0f764e8350f2014abed88...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-02-27 00:22 UTC by Filipe Rosset
Modified: 2014-02-27 09:27 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-02-27 09:27:14 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Filipe Rosset 2014-02-27 00:22:24 UTC
Description of problem:
SELinux is preventing /usr/bin/bash from 'write' accesses on the fifo_file .

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

If você quer ignorar o fato do bash estar tentando acesso write de  fifo_file, pois você acredita que ele não deva precisar deste acesso.
Then você precisa reportar isto como um erro.   
Você pode gerar um módulo de política local para dontaudit este acesso.
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 você acredita que o bash deva ser permitido acesso de write em  fifo_file  por default.
Then você precisa reportar este como um erro.
Você pode gerar um módulo de política local para permitir este acesso.
Do
permitir este acesso agora executando:
# grep sa1 /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:sysstat_t:s0-s0:c0.c1023
Target Context                system_u:object_r:systemd_logind_sessions_t:s0
Target Objects                 [ fifo_file ]
Source                        sa1
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                Permissive
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                   3
First Seen                    2014-02-26 21:00:01 BRT
Last Seen                     2014-02-26 21:20:01 BRT
Local ID                      7136239c-06d2-4ba5-9cea-19ef75ca2c5b

Raw Audit Messages
type=AVC msg=audit(1393460401.593:1073): avc:  denied  { write } for  pid=14911 comm="sa1" path="/run/systemd/sessions/46.ref" dev="tmpfs" ino=283673 scontext=system_u:system_r:sysstat_t:s0-s0:c0.c1023 tcontext=system_u:object_r:systemd_logind_sessions_t:s0 tclass=fifo_file


type=SYSCALL msg=audit(1393460401.593:1073): arch=x86_64 syscall=execve success=yes exit=0 a0=1304ba0 a1=1304e40 a2=1303ce0 a3=8 items=0 ppid=14890 pid=14911 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=46 comm=sa1 exe=/usr/bin/bash subj=system_u:system_r:sysstat_t:s0-s0:c0.c1023 key=(null)

Hash: sa1,sysstat_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-27 09:27:14 UTC

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


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