Bug 2033873

Summary: smbcontrol fails in SELinux Enforcing mode
Product: Red Hat Enterprise Linux 8 Reporter: Denis Karpelevich <dkarpele>
Component: selinux-policyAssignee: Zdenek Pytela <zpytela>
Status: CLOSED ERRATA QA Contact: Milos Malik <mmalik>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.6CC: lvrabec, mmalik, ssekidde
Target Milestone: rcKeywords: AutoVerified, Triaged
Target Release: 8.6Flags: pm-rhel: mirror+
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: selinux-policy-3.14.3-87.el8 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of:
: 2038157 (view as bug list) Environment:
Last Closed: 2022-05-10 15:15:45 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2038963    
Bug Blocks: 2038157    

Comment 1 Zdenek Pytela 2021-12-20 08:40:51 UTC
Denis,

What conditions are needed to trigger these denials? In our tests this AVC was not present.

It can be some setting, using a specific command, different version of samba or any library.

This is what we used:
selinux-policy-targeted-3.14.3-85.el8.noarch
samba-4.14.5-7.el8_5.x86_64

Comment 7 Zdenek Pytela 2022-01-07 17:27:10 UTC
I've submitted a Fedora PR to address the issue:
https://github.com/fedora-selinux/selinux-policy/pull/990

Comment 8 Zdenek Pytela 2022-01-10 14:26:15 UTC
To backport:
commit 72bf03e76b3dd93ee4d29b573574cc394c74220b (HEAD -> rawhide, upstream/rawhide)
Author: Zdenek Pytela <zpytela>
Date:   Fri Jan 7 18:24:37 2022 +0100

    Allow smbcontrol read the network state information

Comment 17 errata-xmlrpc 2022-05-10 15:15:45 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (selinux-policy bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:1995