Bug 866728
| Summary: | SELinux is preventing /usr/sbin/rpcbind from 'read' accesses on the file /etc/passwd. | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Mikhail <mikhail.v.gavrilov> | ||||||
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> | ||||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
| Severity: | unspecified | Docs Contact: | |||||||
| Priority: | unspecified | ||||||||
| Version: | 18 | CC: | dominick.grift, dwalsh, dzrudy, eblake, equistango, hit_man2, jbrooks, kparal, kwizart, mail, mgrepl, mikhail.v.gavrilov, mishu, mr.steve.ray, neilsbb, nikhiljohn1010, olivares14031, pschindl, sgallagh, stefw, supermicheal98, sysoutfran, vondruch, wangle152 | ||||||
| Target Milestone: | --- | ||||||||
| Target Release: | --- | ||||||||
| Hardware: | i686 | ||||||||
| OS: | Unspecified | ||||||||
| Whiteboard: | abrt_hash:6c87c33282be320755b032b88002a99ce2c2a3ab4d14a494fb405fb997fb97b2 | ||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2012-11-11 11:09:08 UTC | Type: | --- | ||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Embargoed: | |||||||||
| Attachments: |
|
||||||||
Created attachment 627895 [details]
File: type
Created attachment 627896 [details]
File: hashmarkername
This happened during yum update. Package: (null) Architecture: x86_64 OS Release: Fedora release 18 (Spherical Cow) Fixed in selinux-policy-3.11.1-40.fc18.noarch It appeared during the instalation of updates. rpcbind was in transaction: Updated rpcbind-0.2.0-17.fc18.x86_64 @anaconda Update 0.2.0-18.fc18.x86_64 @updates-testing Package: (null) Architecture: x86_64 OS Release: Fedora release 18 (Spherical Cow) Just booted. Package: (null) Architecture: x86_64 OS Release: Fedora release 18 (Spherical Cow) noticed right after a 'yum update' to latest F18 updates-testing Package: (null) OS Release: Fedora release 18 (Spherical Cow) You can use the latest build from koji for now http://koji.fedoraproject.org/koji/buildinfo?buildID=361286\ I am going to submit a new update later today. This new build seems to solve this bug. It works fine for me. On F18 with all updates applied, I'm getting this denial when I try to mount an nfs share. To mount the share, I have to put selinux in permissive mode and start nfs-lock.service before trying to mount again. Package: (null) Architecture: x86_64 OS Release: Fedora release 18 (Spherical Cow) The pkg linked above addressed this issue for me, thanks. selinux-policy-3.11.1-43.fc18 has been submitted as an update for Fedora 18. https://admin.fedoraproject.org/updates/selinux-policy-3.11.1-43.fc18 nfs-server failed when f18 boots after updating to kernel 3.6.2-2. Following is the status of nfs server when started it manually. -------------------------------------------------------------------------------- nfs-server.service - NFS Server Loaded: loaded (/usr/lib/systemd/system/nfs-server.service; enabled) Active: failed (Result: exit-code) since Wed, 24 Oct 2012 11:00:45 +0530; 4min 58s ago Main PID: 5964 (code=exited, status=1/FAILURE) CGroup: name=systemd:/system/nfs-server.service Oct 24 11:00:44 localhost.nuke systemd[1]: Starting NFS Server... Oct 24 11:00:45 localhost.nuke rpc.nfsd[5964]: rpc.nfsd: writing fd to kernel failed: errno 111 (Connection refused) Oct 24 11:00:45 localhost.nuke rpc.nfsd[5964]: rpc.nfsd: unable to set any sockets for nfsd Oct 24 11:00:45 localhost.nuke systemd[1]: Failed to start NFS Server. [nuke@localhost ~]$ s systemctl enable nfs-server.service [nuke@localhost ~]$ s systemctl start nfs-server.service Job for nfs-server.service failed. See 'systemctl status nfs-server.service' and 'journalctl' for details. -------------------------------------------------------------------------------- Does it work in permissive mode? Are you getting AVC msgs? selinux-policy-3.11.1-46.fc18 has been submitted as an update for Fedora 18. https://admin.fedoraproject.org/updates/selinux-policy-3.11.1-46.fc18 Package selinux-policy-3.11.1-46.fc18: * should fix your issue, * was pushed to the Fedora 18 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing selinux-policy-3.11.1-46.fc18' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-16862/selinux-policy-3.11.1-46.fc18 then log in and leave karma (feedback). |
Additional info: libreport version: 2.0.16 kernel: 3.6.1-1.fc18.i686.PAE description: :SELinux is preventing /usr/sbin/rpcbind from 'read' accesses on the file /etc/passwd. : :***** Plugin catchall (100. confidence) suggests *************************** : :If you believe that rpcbind 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 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-18.fc18.i686 :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 Enforcing :Host Name (removed) :Platform Linux (removed) 3.6.1-1.fc18.i686.PAE #1 SMP Mon : Oct 8 17:41:46 UTC 2012 i686 i686 :Alert Count 1 :First Seen 2012-10-16 08:08:21 YEKT :Last Seen 2012-10-16 08:08:21 YEKT :Local ID 14528c6b-80b2-4b1e-9154-911da4559ee1 : :Raw Audit Messages :type=AVC msg=audit(1350353301.646:1722): avc: denied { read } for pid=3075 comm="rpcbind" name="passwd" dev="sda1" ino=264635 scontext=system_u:system_r:rpcbind_t:s0 tcontext=system_u:object_r:passwd_file_t:s0 tclass=file : : :type=SYSCALL msg=audit(1350353301.646:1722): arch=i386 syscall=open success=no exit=EACCES a0=b7773ee5 a1=80000 a2=1b6 a3=b8f1a038 items=0 ppid=1 pid=3075 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,read : :audit2allow : :#============= rpcbind_t ============== :allow rpcbind_t passwd_file_t:file read; : :audit2allow -R : :#============= rpcbind_t ============== :allow rpcbind_t passwd_file_t:file read; :