Bug 783692 - SELinux is preventing /usr/bin/perl from 'read' accesses on the fichier /etc/passwd.
Summary: SELinux is preventing /usr/bin/perl from 'read' accesses on the fichier /etc/...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:cae2a52ae3666a807e783451afe...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-01-21 18:05 UTC by Nicolas Mailhot
Modified: 2012-01-23 09:55 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-01-23 09:55:44 UTC
Type: ---


Attachments (Terms of Use)

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 };
:


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