Bug 2224776 - SELinux is preventing rpc.mountd from 'search' accesses on the directory net.
Summary: SELinux is preventing rpc.mountd from 'search' accesses on the directory net.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 38
Hardware: x86_64
OS: Unspecified
medium
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:b7ebb0bf03e9cf204a5274f09be...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-22 17:56 UTC by Thomas Köller
Modified: 2023-08-12 04:22 UTC (History)
9 users (show)

Fixed In Version: selinux-policy-38.24-1.fc38
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-08-12 04:22:53 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: description (1.84 KB, text/plain)
2023-07-22 17:56 UTC, Thomas Köller
no flags Details
File: os_info (667 bytes, text/plain)
2023-07-22 17:56 UTC, Thomas Köller
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github fedora-selinux selinux-policy pull 1792 0 None open Allow rpc.mountd read network sysctls 2023-07-24 13:08:50 UTC

Description Thomas Köller 2023-07-22 17:56:37 UTC
Description of problem:
Attempted to mount local directory from remote via nfs.
SELinux is preventing rpc.mountd from 'search' accesses on the directory net.

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

If you believe that rpc.mountd 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 'rpc.mountd' --raw | audit2allow -M my-rpcmountd
# semodule -X 300 -i my-rpcmountd.pp

Additional Information:
Source Context                system_u:system_r:nfsd_t:s0
Target Context                system_u:object_r:sysctl_net_t:s0
Target Objects                net [ dir ]
Source                        rpc.mountd
Source Path                   rpc.mountd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-38.21-1.fc38.noarch
Local Policy RPM              selinux-policy-targeted-38.21-1.fc38.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 6.3.12-200.fc38.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Thu Jul 6 04:05:18 UTC 2023 x86_64
Alert Count                   44
First Seen                    2023-04-21 11:16:24 CEST
Last Seen                     2023-07-22 19:47:50 CEST
Local ID                      8d185fce-e6d2-4b97-8600-b9deaf1e7d39

Raw Audit Messages
type=AVC msg=audit(1690048070.794:2540): avc:  denied  { search } for  pid=1619 comm="rpc.mountd" name="net" dev="proc" ino=2329 scontext=system_u:system_r:nfsd_t:s0 tcontext=system_u:object_r:sysctl_net_t:s0 tclass=dir permissive=0


Hash: rpc.mountd,nfsd_t,sysctl_net_t,dir,search

Version-Release number of selected component:
selinux-policy-targeted-38.21-1.fc38.noarch

Additional info:
reporter:       libreport-2.17.11
reason:         SELinux is preventing rpc.mountd from 'search' accesses on the directory net.
package:        selinux-policy-targeted-38.21-1.fc38.noarch
component:      selinux-policy
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.3.12-200.fc38.x86_64
comment:        Attempted to mount local directory from remote via nfs.
component:      selinux-policy

Comment 1 Thomas Köller 2023-07-22 17:56:39 UTC
Created attachment 1977084 [details]
File: description

Comment 2 Thomas Köller 2023-07-22 17:56:41 UTC
Created attachment 1977085 [details]
File: os_info

Comment 3 Fedora Update System 2023-08-07 07:04:34 UTC
FEDORA-2023-a79a6bdd37 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-a79a6bdd37

Comment 4 Fedora Update System 2023-08-08 01:56:41 UTC
FEDORA-2023-a79a6bdd37 has been pushed to the Fedora 38 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-a79a6bdd37`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-a79a6bdd37

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

Comment 5 Fedora Update System 2023-08-12 04:22:53 UTC
FEDORA-2023-a79a6bdd37 has been pushed to the Fedora 38 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.