Bug 1061980 - SELinux is preventing /usr/bin/perl from 'getattr' accesses on the directory /home/local/bin.
Summary: SELinux is preventing /usr/bin/perl from 'getattr' accesses on the directory ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 20
Hardware: i686
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:1b99d6d31cc026e0dc5e02af58a...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-02-06 01:02 UTC by Martin Gregorie
Modified: 2014-03-12 12:18 UTC (History)
4 users (show)

Fixed In Version: selinux-policy-3.12.1-127.fc20
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-03-12 12:18:33 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Martin Gregorie 2014-02-06 01:02:19 UTC
Description of problem:
I was running Spamasdsassin (installed from the F20 package).
SELinux is preventing /usr/bin/perl from 'getattr' accesses on the directory /home/local/bin.

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

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

Additional Information:
Source Context                system_u:system_r:spamd_t:s0
Target Context                system_u:object_r:home_bin_t:s0
Target Objects                /home/local/bin [ dir ]
Source                        spamd
Source Path                   /usr/bin/perl
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           perl-5.18.2-289.fc20.i686
Target RPM Packages           filesystem-3.2-19.fc20.i686
Policy RPM                    selinux-policy-3.12.1-122.fc20.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 3.12.8-300.fc20.i686+PAE #1 SMP
                              Thu Jan 16 01:19:09 UTC 2014 i686 i686
Alert Count                   2
First Seen                    2014-02-06 00:43:54 GMT
Last Seen                     2014-02-06 00:46:14 GMT
Local ID                      df273ada-7755-469e-9d85-0a84feeee970

Raw Audit Messages
type=AVC msg=audit(1391647574.85:5467): avc:  denied  { getattr } for  pid=7486 comm="spamd" path="/home/local/bin" dev="sda5" ino=1499138 scontext=system_u:system_r:spamd_t:s0 tcontext=system_u:object_r:home_bin_t:s0 tclass=dir


type=SYSCALL msg=audit(1391647574.85:5467): arch=i386 syscall=stat64 success=yes exit=0 a0=8fa89e8 a1=8bfb180 a2=42b03000 a3=8bfb008 items=0 ppid=7485 pid=7486 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm=spamd exe=/usr/bin/perl subj=system_u:system_r:spamd_t:s0 key=(null)

Hash: spamd,spamd_t,home_bin_t,dir,getattr

Additional info:
reporter:       libreport-2.1.11
hashmarkername: setroubleshoot
kernel:         3.12.8-300.fc20.i686+PAE
type:           libreport

Comment 1 Daniel Walsh 2014-02-14 19:28:24 UTC
506dfabe2c9279b1103daac9bdec83fff9601b4a fixes this in git.

Comment 2 Lukas Vrabec 2014-02-15 23:13:17 UTC
back ported.

Comment 3 Fedora Update System 2014-02-18 22:09:46 UTC
selinux-policy-3.12.1-126.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-126.fc20

Comment 4 Fedora Update System 2014-02-22 00:42:00 UTC
Package selinux-policy-3.12.1-126.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-126.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-2801/selinux-policy-3.12.1-126.fc20
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2014-02-26 13:49:56 UTC
Package selinux-policy-3.12.1-127.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-127.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-2801/selinux-policy-3.12.1-127.fc20
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2014-03-12 12:18:33 UTC
selinux-policy-3.12.1-127.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.


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