Bug 1100804

Summary: SELinux is preventing /usr/bin/bash from 'getattr' accesses on the filesystem .
Product: [Fedora] Fedora Reporter: Jeff MacDonald <jam>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: dominick.grift, dwalsh, lvrabec, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:7eee162b3b08422c90e618b658ee8242c121d171ec08c0adc1d0a8e8993b647e
Fixed In Version: selinux-policy-3.12.1-171.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-26 01:53:31 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 Jeff MacDonald 2014-05-23 13:34:42 UTC
Description of problem:
SELinux is preventing /usr/bin/bash from 'getattr' accesses on the filesystem .

*****  Plugin catchall (100. confidence) suggests   **************************

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

Additional Information:
Source Context                system_u:system_r:postfix_pipe_t:s0
Target Context                system_u:object_r:tmpfs_t:s0
Target Objects                 [ filesystem ]
Source                        spamfilter.sh
Source Path                   /usr/bin/bash
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           bash-4.2.47-2.fc20.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-163.fc20.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.14.4-200.fc20.x86_64 #1 SMP Tue
                              May 13 13:51:08 UTC 2014 x86_64 x86_64
Alert Count                   2
First Seen                    2014-05-23 09:32:06 EDT
Last Seen                     2014-05-23 09:32:11 EDT
Local ID                      44adbf2a-eb78-4986-9e04-3d7b9e4768d7

Raw Audit Messages
type=AVC msg=audit(1400851931.617:3308): avc:  denied  { getattr } for  pid=18950 comm="spamfilter.sh" name="/" dev="tmpfs" ino=12688 scontext=system_u:system_r:postfix_pipe_t:s0 tcontext=system_u:object_r:tmpfs_t:s0 tclass=filesystem


type=SYSCALL msg=audit(1400851931.617:3308): arch=x86_64 syscall=statfs success=no exit=EACCES a0=4bfe0a a1=7fffa57cf780 a2=fffffffffff487a8 a3=7fffa57cf5f0 items=0 ppid=18949 pid=18950 auid=4294967295 uid=1001 gid=1001 euid=1001 suid=1001 fsuid=1001 egid=1001 sgid=1001 fsgid=1001 tty=(none) ses=4294967295 comm=spamfilter.sh exe=/usr/bin/bash subj=system_u:system_r:postfix_pipe_t:s0 key=(null)

Hash: spamfilter.sh,postfix_pipe_t,tmpfs_t,filesystem,getattr

Additional info:
reporter:       libreport-2.2.2
hashmarkername: setroubleshoot
kernel:         3.14.4-200.fc20.x86_64
type:           libreport

Comment 1 Daniel Walsh 2014-05-25 09:35:53 UTC
commit e18e867ff1f59acc218dcbb5a03a37873670d816
 fixes this in git.

Comment 2 Fedora Update System 2014-06-09 20:09:11 UTC
selinux-policy-3.12.1-167.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-167.fc20

Comment 3 Fedora Update System 2014-06-11 16:25:17 UTC
Package selinux-policy-3.12.1-167.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.12.1-167.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-7240/selinux-policy-3.12.1-167.fc20
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2014-06-19 13:18:39 UTC
selinux-policy-3.12.1-171.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-171.fc20

Comment 5 Fedora Update System 2014-06-19 22:52:51 UTC
Package selinux-policy-3.12.1-171.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.12.1-171.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-7499/selinux-policy-3.12.1-171.fc20
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2014-06-26 01:53:31 UTC
selinux-policy-3.12.1-171.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.