Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1402321 - NFS rpcbind.socket AVC errors
Summary: NFS rpcbind.socket AVC errors
Keywords:
Status: CLOSED DUPLICATE of bug 1402083
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 25
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-12-07 09:08 UTC by Ferry Huberts
Modified: 2016-12-07 10:10 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-12-07 10:10:33 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Ferry Huberts 2016-12-07 09:08:31 UTC
Description of problem:
rpcbind.socket will not start because of AVCs.

Breaks all NFS mounts


Version-Release number of selected component (if applicable):
selinux-policy.noarch            3.13.1-224.fc25
selinux-policy-targeted.noarch   3.13.1-224.fc25


How reproducible:
always

Steps to Reproduce:
1. systemctl enable rpcbind.socket
2. reboot
3.

Actual results:
AVCs, see below

Expected results:
no AVCs

Additional info:

====================

SELinux is preventing systemd from listen access on the unix_stream_socket /run/rpcbind.sock.

*****  Plugin catchall (100. confidence) suggests   **************************

If you believe that systemd should be allowed listen access on the rpcbind.sock unix_stream_socket 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:
# ausearch -c 'systemd' --raw | audit2allow -M my-systemd
# semodule -X 300 -i my-systemd.pp

Additional Information:
Source Context                system_u:system_r:init_t:s0
Target Context                system_u:system_r:unconfined_service_t:s0
Target Objects                /run/rpcbind.sock [ unix_stream_socket ]
Source                        systemd
Source Path                   systemd
Port                          <Unknown>
Host                          paul.internal.Hupie.com
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-224.fc25.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     paul.internal.Hupie.com
Platform                      Linux paul.internal.Hupie.com
                              4.8.11-300.fc25.x86_64 #1 SMP Mon Nov 28 18:24:51
                              UTC 2016 x86_64 x86_64
Alert Count                   1
First Seen                    2016-12-07 10:02:07 CET
Last Seen                     2016-12-07 10:02:07 CET
Local ID                      a4bc101e-db12-4fc0-bfdd-3c5fa5a3b4bd

Raw Audit Messages
type=AVC msg=audit(1481101327.576:281): avc:  denied  { listen } for  pid=1 comm="systemd" path="/run/rpcbind.sock" scontext=system_u:system_r:init_t:s0 tcontext=system_u:system_r:unconfined_service_t:s0 tclass=unix_stream_socket permissive=1


Hash: systemd,init_t,unconfined_service_t,unix_stream_socket,listen


==================

ausearch -c 'systemd' --raw | audit2allow -M my-systemd

module my-systemd 1.0;

require {
	type unconfined_service_t;
	type init_t;
	class tcp_socket { bind create listen setopt };
	class udp_socket { bind create setopt };
	class unix_stream_socket { bind create listen setopt };
}

#============= init_t ==============
allow init_t unconfined_service_t:tcp_socket { bind create listen setopt };
allow init_t unconfined_service_t:udp_socket { bind create setopt };
allow init_t unconfined_service_t:unix_stream_socket { bind create listen setopt };

==

Comment 1 Lukas Vrabec 2016-12-07 10:10:33 UTC

*** This bug has been marked as a duplicate of bug 1402083 ***


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