Bug 2368432 - SELinux is preventing nmbd from 'search' accesses on the directory net.
Summary: SELinux is preventing nmbd from 'search' accesses on the directory net.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 41
Hardware: x86_64
OS: Unspecified
low
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:917064617556bdfb7d0580a1069...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-05-25 04:25 UTC by Robert Koppelhuber
Modified: 2025-06-21 02:10 UTC (History)
8 users (show)

Fixed In Version: selinux-policy-41.43-1.fc41
Clone Of:
Environment:
Last Closed: 2025-06-21 02:10:49 UTC
Type: ---
Embargoed:
zpytela: mirror+


Attachments (Terms of Use)
File: os_info (726 bytes, text/plain)
2025-05-25 04:25 UTC, Robert Koppelhuber
no flags Details
File: description (1.79 KB, text/plain)
2025-05-25 04:25 UTC, Robert Koppelhuber
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github fedora-selinux selinux-policy pull 2717 0 None open Allow nmbd read network sysctls 2025-06-04 14:40:13 UTC
Red Hat Issue Tracker FC-1693 0 None None None 2025-05-26 07:26:45 UTC

Description Robert Koppelhuber 2025-05-25 04:25:28 UTC
Description of problem:
SELinux is preventing nmbd from 'search' accesses on the directory net.

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

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

Additional Information:
Source Context                system_u:system_r:nmbd_t:s0
Target Context                system_u:object_r:sysctl_net_t:s0
Target Objects                net [ dir ]
Source                        nmbd
Source Path                   nmbd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-41.39-1.fc41.noarch
Local Policy RPM              selinux-policy-targeted-41.39-1.fc41.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 6.14.6-200.fc41.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Fri May 9 19:55:50 UTC 2025 x86_64
Alert Count                   217
First Seen                    2025-05-08 09:40:57 AEST
Last Seen                     2025-05-21 09:17:37 AEST
Local ID                      557bc8b9-97ee-42da-a6ea-8bfa1f0cb07a

Raw Audit Messages
type=AVC msg=audit(1747783057.719:377): avc:  denied  { search } for  pid=3602 comm="nmbd" name="net" dev="proc" ino=16387 scontext=system_u:system_r:nmbd_t:s0 tcontext=system_u:object_r:sysctl_net_t:s0 tclass=dir permissive=0


Hash: nmbd,nmbd_t,sysctl_net_t,dir,search

Version-Release number of selected component:
selinux-policy-targeted-41.39-1.fc41.noarch

Additional info:
reporter:       libreport-2.17.15
package:        selinux-policy-targeted-41.39-1.fc41.noarch
type:           libreport
component:      selinux-policy
reason:         SELinux is preventing nmbd from 'search' accesses on the directory net.
kernel:         6.14.6-200.fc41.x86_64
hashmarkername: setroubleshoot
component:      selinux-policy

Comment 1 Robert Koppelhuber 2025-05-25 04:25:30 UTC
Created attachment 2091461 [details]
File: os_info

Comment 2 Robert Koppelhuber 2025-05-25 04:25:31 UTC
Created attachment 2091462 [details]
File: description

Comment 3 Fedora Update System 2025-06-05 08:06:16 UTC
FEDORA-2025-eb98eb9e24 (selinux-policy-41.43-1.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-eb98eb9e24

Comment 4 Fedora Update System 2025-06-06 01:34:44 UTC
FEDORA-2025-eb98eb9e24 has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-eb98eb9e24`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-eb98eb9e24

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

Comment 5 Fedora Update System 2025-06-21 02:10:49 UTC
FEDORA-2025-eb98eb9e24 (selinux-policy-41.43-1.fc41) has been pushed to the Fedora 41 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.