Bug 720107

Summary: SELinux is preventing /usr/bin/perl from 'read' accesses on the fichier online.
Product: [Fedora] Fedora Reporter: Nicolas Mailhot <nicolas.mailhot>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:e19ecc0723871bcf5d325bf4543e61d00b4a868793cca6a086205d0f4c5b997d
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-07-11 14:29:19 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Nicolas Mailhot 2011-07-09 12:09:53 UTC
SELinux is preventing /usr/bin/perl from 'read' accesses on the fichier online.

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

If you believe that perl should be allowed read access on the online 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 amavisd /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:sysfs_t:s0
Target Objects                online [ file ]
Source                        amavisd
Source Path                   /usr/bin/perl
Port                          <Inconnu>
Host                          (removed)
Source RPM Packages           perl-5.12.3-160.fc16
Target RPM Packages           
Policy RPM                    selinux-policy-3.10.0-2.fc16
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.0-0.rc6.git0.1.fc16.x86_64 #1
                              SMP Tue Jul 5 00:39:12 UTC 2011 x86_64 x86_64
Alert Count                   1543
First Seen                    sam. 02 juil. 2011 10:36:23 CEST
Last Seen                     sam. 09 juil. 2011 13:56:23 CEST
Local ID                      1b7d60f6-af6b-4561-9f78-42fedddfa077

Raw Audit Messages
type=AVC msg=audit(1310212583.794:1632): avc:  denied  { read } for  pid=1510 comm="amavisd" name="online" dev=sysfs ino=34 scontext=system_u:system_r:amavis_t:s0 tcontext=system_u:object_r:sysfs_t:s0 tclass=file


type=SYSCALL msg=audit(1310212583.794:1632): arch=x86_64 syscall=open success=no exit=EACCES a0=3284d6a400 a1=80000 a2=1fffe3252da3 a3=0 items=0 ppid=1362 pid=1510 auid=4294967295 uid=490 gid=485 euid=490 suid=490 fsuid=490 egid=485 sgid=485 fsgid=485 tty=(none) ses=4294967295 comm=amavisd exe=/usr/bin/perl subj=system_u:system_r:amavis_t:s0 key=(null)

Hash: amavisd,amavis_t,sysfs_t,file,read

audit2allow

#============= amavis_t ==============
allow amavis_t sysfs_t:file read;

audit2allow -R

#============= amavis_t ==============
allow amavis_t sysfs_t:file read;

Comment 1 Miroslav Grepl 2011-07-11 14:29:19 UTC
Fixed in selinux-policy-3.10.0-3.fc16