Bug 871416 - SELinux is preventing /usr/sbin/rpcbind from 'getattr' accesses on the file /etc/passwd.
Summary: SELinux is preventing /usr/sbin/rpcbind from 'getattr' accesses on the file /...
Keywords:
Status: CLOSED ERRATA
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:389079b620ed2d57c894b9f6711...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-30 12:09 UTC by Stephen Gallagher
Modified: 2012-10-30 12:15 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-10-30 12:15:00 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: type (9 bytes, text/plain)
2012-10-30 12:10 UTC, Stephen Gallagher
no flags Details
File: hashmarkername (14 bytes, text/plain)
2012-10-30 12:10 UTC, Stephen Gallagher
no flags Details

Description Stephen Gallagher 2012-10-30 12:09:56 UTC
Additional info:
libreport version: 2.0.17
kernel:         3.6.3-3.fc18.x86_64

description:
:SELinux is preventing /usr/sbin/rpcbind from 'getattr' accesses on the file /etc/passwd.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that rpcbind should be allowed getattr 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 rpcbind /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:rpcbind_t:s0
:Target Context                system_u:object_r:passwd_file_t:s0
:Target Objects                /etc/passwd [ file ]
:Source                        rpcbind
:Source Path                   /usr/sbin/rpcbind
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           rpcbind-0.2.0-20.fc18.x86_64
:Target RPM Packages           setup-2.8.57-1.fc18.noarch
:Policy RPM                    selinux-policy-3.11.1-36.fc18.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Permissive
:Host Name                     (removed)
:Platform                      Linux (removed) 3.6.2-2.fc18.x86_64 #1 SMP Wed Oct
:                              17 05:56:07 UTC 2012 x86_64 x86_64
:Alert Count                   1
:First Seen                    2012-10-29 08:10:47 EDT
:Last Seen                     2012-10-29 08:10:47 EDT
:Local ID                      a7e8abd8-c5d2-4c19-b352-475c4e00e74b
:
:Raw Audit Messages
:type=AVC msg=audit(1351512647.330:101): avc:  denied  { getattr } for  pid=998 comm="rpcbind" path="/etc/passwd" dev="dm-2" ino=5092277 scontext=system_u:system_r:rpcbind_t:s0 tcontext=system_u:object_r:passwd_file_t:s0 tclass=file
:
:
:type=SYSCALL msg=audit(1351512647.330:101): arch=x86_64 syscall=fstat success=yes exit=0 a0=5 a1=7fff6a332da0 a2=7fff6a332da0 a3=0 items=0 ppid=1 pid=998 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=rpcbind exe=/usr/sbin/rpcbind subj=system_u:system_r:rpcbind_t:s0 key=(null)
:
:Hash: rpcbind,rpcbind_t,passwd_file_t,file,getattr
:
:audit2allow
:
:#============= rpcbind_t ==============
:#!!!! This avc is allowed in the current policy
:
:allow rpcbind_t passwd_file_t:file getattr;
:
:audit2allow -R
:
:#============= rpcbind_t ==============
:#!!!! This avc is allowed in the current policy
:
:allow rpcbind_t passwd_file_t:file getattr;
:

Comment 1 Stephen Gallagher 2012-10-30 12:10:02 UTC
Created attachment 635540 [details]
File: type

Comment 2 Stephen Gallagher 2012-10-30 12:10:04 UTC
Created attachment 635541 [details]
File: hashmarkername

Comment 3 Miroslav Grepl 2012-10-30 12:15:00 UTC
:#============= rpcbind_t ==============
:#!!!! This avc is allowed in the current policy
:
:allow rpcbind_t passwd_file_t:file getattr;


should be fixed in the latest policy.


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