Bug 2248495 - SELinux is preventing rpcbind from 'search' accesses on the directory net.
Summary: SELinux is preventing rpcbind from 'search' accesses on the directory net.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 39
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:487b9a8bc71b766ed47409ff999...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-11-07 11:24 UTC by Juan Quintela
Modified: 2023-11-21 02:49 UTC (History)
9 users (show)

Fixed In Version: selinux-policy-39.2-1.fc39
Clone Of:
Environment:
Last Closed: 2023-11-21 02:49:07 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: description (1.84 KB, text/plain)
2023-11-07 11:24 UTC, Juan Quintela
no flags Details
File: os_info (682 bytes, text/plain)
2023-11-07 11:24 UTC, Juan Quintela
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github fedora-selinux selinux-policy pull 1919 0 None Merged Allow rpcbind read network sysctls 2023-11-07 12:29:57 UTC

Description Juan Quintela 2023-11-07 11:24:11 UTC
Description of problem:
SELinux is preventing rpcbind from 'search' accesses on the directory net.

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

If you believe that rpcbind should be allowed search access on the net directory 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 'rpcbind' --raw | audit2allow -M my-rpcbind
# semodule -X 300 -i my-rpcbind.pp

Additional Information:
Source Context                system_u:system_r:rpcbind_t:s0
Target Context                system_u:object_r:sysctl_net_t:s0
Target Objects                net [ dir ]
Source                        rpcbind
Source Path                   rpcbind
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-39.1-1.fc39.noarch
Local Policy RPM              selinux-policy-targeted-39.1-1.fc39.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 6.5.9-300.fc39.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Wed Oct 25 21:39:20 UTC 2023
                              x86_64
Alert Count                   2
First Seen                    2023-11-07 12:12:52 CET
Last Seen                     2023-11-07 12:12:52 CET
Local ID                      8cbec3f6-ac76-4945-bec1-e840c6f401ec

Raw Audit Messages
type=AVC msg=audit(1699355572.384:166): avc:  denied  { search } for  pid=2120 comm="rpcbind" name="net" dev="proc" ino=1332 scontext=system_u:system_r:rpcbind_t:s0 tcontext=system_u:object_r:sysctl_net_t:s0 tclass=dir permissive=0


Hash: rpcbind,rpcbind_t,sysctl_net_t,dir,search

Version-Release number of selected component:
selinux-policy-targeted-39.1-1.fc39.noarch

Additional info:
reporter:       libreport-2.17.11
reason:         SELinux is preventing rpcbind from 'search' accesses on the directory net.
package:        selinux-policy-targeted-39.1-1.fc39.noarch
component:      selinux-policy
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.5.9-300.fc39.x86_64
component:      selinux-policy

Comment 1 Juan Quintela 2023-11-07 11:24:14 UTC
Created attachment 1997567 [details]
File: description

Comment 2 Juan Quintela 2023-11-07 11:24:15 UTC
Created attachment 1997568 [details]
File: os_info

Comment 3 Fedora Update System 2023-11-15 09:19:16 UTC
FEDORA-2023-a2dacfbdcb has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-a2dacfbdcb

Comment 4 Fedora Update System 2023-11-16 04:13:33 UTC
FEDORA-2023-a2dacfbdcb has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-a2dacfbdcb`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-a2dacfbdcb

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2023-11-21 02:49:07 UTC
FEDORA-2023-a2dacfbdcb has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.


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