Bug 783692

Summary: SELinux is preventing /usr/bin/perl from 'read' accesses on the fichier /etc/passwd.
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: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:cae2a52ae3666a807e783451afe81849d4aa3eaab4ff946ba339a88a56aaa9aa
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-01-23 09:55:44 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 2012-01-21 18:05:08 UTC
libreport version: 2.0.8
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.2.1-8.fc17.x86_64
reason:         SELinux is preventing /usr/bin/perl from 'read' accesses on the fichier /etc/passwd.
time:           sam. 21 janv. 2012 18:57:54 CET

description:
:SELinux is preventing /usr/bin/perl from 'read' accesses on the fichier /etc/passwd.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that perl should be allowed read access on the passwd 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:passwd_file_t:s0
:Target Objects                /etc/passwd [ file ]
:Source                        amavisd
:Source Path                   /usr/bin/perl
:Port                          <Inconnu>
:Host                          (removed)
:Source RPM Packages           perl-5.14.2-210.fc17.x86_64
:Target RPM Packages           setup-2.8.47-1.fc17.noarch
:Policy RPM                    selinux-policy-3.10.0-76.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Permissive
:Host Name                     (removed)
:Platform                      Linux (removed) 3.2.1-5.fc17.x86_64 #1 SMP Tue Jan
:                              17 18:57:18 UTC 2012 x86_64 x86_64
:Alert Count                   1
:First Seen                    sam. 21 janv. 2012 16:46:34 CET
:Last Seen                     sam. 21 janv. 2012 16:46:34 CET
:Local ID                      81b36e80-982a-40e3-9f8c-43e4dac13434
:
:Raw Audit Messages
:type=AVC msg=audit(1327160794.91:247): avc:  denied  { read } for  pid=3443 comm="amavisd" name="passwd" dev=dm-1 ino=94678 scontext=system_u:system_r:amavis_t:s0 tcontext=system_u:object_r:passwd_file_t:s0 tclass=filenode=(removed) type=AVC msg=audit(1327160794.091:247): avc:  denied  { open } for  pid=3443 comm="amavisd" name="passwd" dev=dm-1 ino=94678 scontext=system_u:system_r:amavis_t:s0 tcontext=system_u:object_r:passwd_file_t:s0 tclass=file
:
:
:type=SYSCALL msg=audit(1327160794.91:247): arch=x86_64 syscall=open success=yes exit=ESRCH a0=7ff8a2f736ba a1=80000 a2=1b6 a3=238 items=0 ppid=3440 pid=3443 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=amavisd exe=/usr/bin/perl subj=system_u:system_r:amavis_t:s0 key=(null)
:
:Hash: amavisd,amavis_t,passwd_file_t,file,read
:
:audit2allow
:
:#============= amavis_t ==============
:allow amavis_t passwd_file_t:file { read open };
:
:audit2allow -R
:
:#============= amavis_t ==============
:allow amavis_t passwd_file_t:file { read open };
: