Bug 905696 - SELinux is preventing /usr/bin/perl from 'search' accesses on the directory net.
Summary: SELinux is preventing /usr/bin/perl from 'search' accesses on the directory net.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 18
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:21a7dea037f6a9dd1e2b37a4a3b...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-30 00:35 UTC by Alan Hamilton
Modified: 2013-02-08 02:26 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-08 02:26:02 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Alan Hamilton 2013-01-30 00:35:18 UTC
Description of problem:
Appears to be caused by amavisd. Shows at boot.
SELinux is preventing /usr/bin/perl from 'search' accesses on the directory net.

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

If you believe that perl should be allowed search access on the net 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 /usr/sbin/amavi /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:amavis_t:s0
Target Context                system_u:object_r:sysctl_net_t:s0
Target Objects                net [ dir ]
Source                        /usr/sbin/amavi
Source Path                   /usr/bin/perl
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           procps-ng-3.3.3-2.20120807git.fc18.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.11.1-73.fc18.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.7.4-204.fc18.x86_64 #1 SMP Wed
                              Jan 23 16:44:29 UTC 2013 x86_64 x86_64
Alert Count                   60
First Seen                    2013-01-19 12:34:24 MST
Last Seen                     2013-01-29 17:25:24 MST
Local ID                      b88116cd-4a8d-45d6-a373-6190a3de78c3

Raw Audit Messages
type=AVC msg=audit(1359505524.121:404): avc:  denied  { search } for  pid=1309 comm="sysctl" name="net" dev="proc" ino=10436 scontext=system_u:system_r:amavis_t:s0 tcontext=system_u:object_r:sysctl_net_t:s0 tclass=dir


type=SYSCALL msg=audit(1359505524.121:404): arch=x86_64 syscall=stat success=no exit=EACCES a0=18ee070 a1=7fffa6bae530 a2=7fffa6bae530 a3=15 items=0 ppid=1306 pid=1309 auid=4294967295 uid=493 gid=490 euid=493 suid=493 fsuid=493 egid=490 sgid=490 fsgid=490 ses=4294967295 tty=(none) comm=sysctl exe=/usr/sbin/sysctl subj=system_u:system_r:amavis_t:s0 key=(null)

Hash: /usr/sbin/amavi,amavis_t,sysctl_net_t,dir,search

audit2allow

#============= amavis_t ==============
allow amavis_t sysctl_net_t:dir search;

audit2allow -R

#============= amavis_t ==============
allow amavis_t sysctl_net_t:dir search;


Additional info:
hashmarkername: setroubleshoot
kernel:         3.7.4-204.fc18.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2013-01-30 09:36:49 UTC
Fixed in selinux-policy-3.11.1-74.fc18.noarch

Comment 2 Fedora Update System 2013-01-31 13:20:19 UTC
selinux-policy-3.11.1-74.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/selinux-policy-3.11.1-74.fc18

Comment 3 Fedora Update System 2013-02-01 16:41:19 UTC
Package selinux-policy-3.11.1-74.fc18:
* should fix your issue,
* was pushed to the Fedora 18 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.11.1-74.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-1693/selinux-policy-3.11.1-74.fc18
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2013-02-08 02:26:04 UTC
selinux-policy-3.11.1-74.fc18 has been pushed to the Fedora 18 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.