Bug 783667

Summary: SELinux is preventing /usr/bin/perl from 'read' accesses on the None /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:c90a77a599cd5adf5f5eedd63cef6730a7a9dea65d03b954ad136b398be2759d
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-01-23 09:39:02 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 15:34:38 UTC
libreport version: 2.0.8
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.2.1-5.fc17.x86_64
reason:         SELinux is preventing /usr/bin/perl from 'read' accesses on the None /etc/passwd.
time:           sam. 21 janv. 2012 16:26:35 CET

description:
:SELinux is preventing /usr/bin/perl from 'read' accesses on the None /etc/passwd.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that perl should be allowed read access on the passwd <Inconnu> 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 [ None ]
:Source                        amavisd
:Source Path                   /usr/bin/perl
:Port                          <Inconnu>
:Host                          (removed)
:Source RPM Packages           
:Target RPM Packages           
:Policy RPM                    <Inconnu>
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
: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:21:37 CET
:Last Seen                     sam. 21 janv. 2012 16:21:37 CET
:Local ID                      e312d3b7-a62d-4790-bb8f-63a4a1d59afc
:
:Raw Audit Messages
:type=AVC msg=audit(1327159297.862:37): avc:  denied  { read } for  pid=1 comm="systemd" name="postfix" dev=dm-1 ino=92340 scontext=system_u:system_r:init_t:s0 tcontext=system_u:object_r:postfix_spool_t:s0 tclass=dirnode=(removed) type=AVC msg=audit(1327159305.519:40): avc:  denied  { read } for  pid=1225 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=SYSCALL msg=audit(1327159305.519:40): arch=c000003e syscall=2 success=no exit=-13 a0=7f7bef24a6ba a1=80000 a2=1b6 a3=238 items=0 ppid=1223 pid=1225 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,None,read
:
:audit2allow
:
:
:audit2allow -R
:
:

Comment 1 Miroslav Grepl 2012-01-23 09:39:02 UTC
Fixed in selinux-policy-3.10.0-77.fc17