RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2152444 - SELinux is preventing /usr/libexec/samba/samba-dcerpcd from write access on the sock_file socket
Summary: SELinux is preventing /usr/libexec/samba/samba-dcerpcd from write access on t...
Keywords:
Status: CLOSED DUPLICATE of bug 2121709
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: selinux-policy
Version: 8.7
Hardware: x86_64
OS: Linux
medium
high
Target Milestone: rc
: 8.8
Assignee: Zdenek Pytela
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-12-11 23:48 UTC by Joe Wright
Modified: 2022-12-12 10:35 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-12-12 10:35:02 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-141837 0 None None None 2022-12-12 00:02:05 UTC

Description Joe Wright 2022-12-11 23:48:14 UTC
Description of problem:
setroubleshoot[9489]: SELinux is preventing /usr/libexec/samba/samba-dcerpcd from write access on the sock_file socket.#012#012*****  Plugin catchall (100. confidence) suggests   **************************#012#012If you believe that samba-dcerpcd should be allowed write access on the socket sock_file by default.#012Then you should report this as a bug.#012You can generate a local policy module to allow this access.#012Do#012allow this access for now by executing:#012# ausearch -c 'samba-dcerpcd' --raw | audit2allow -M my-sambadcerpcd#012# semodule -X 300 -i my-sambadcerpcd.pp#012

Version-Release number of selected component (if applicable):
selinux-policy-3.14.3-108.el8.noarch
samba-4.16.4-2.el8.x86_64

How reproducible:
Selinux enforcing. Setting selinux to permissive works around it

Steps to Reproduce:
1. Update to 8.7
2.
3.

Actual results:
AVC Denial

Expected results:
rule should be in place

Additional info:

May be relevant: 

https://wiki.samba.org/index.php/Samba_4.16_Features_added/changed#New_samba-dcerpcd_binary_to_provide_DCERPC_in_the_member_server_setup

Comment 2 Zdenek Pytela 2022-12-12 10:25:57 UTC
It looks like a dup of bz#2121709.

Comment 3 Zdenek Pytela 2022-12-12 10:35:02 UTC
Closing dup as the denial is the same.

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


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