Bug 1083491

Summary: Samba and strange avc
Product: Red Hat Enterprise Linux 5 Reporter: Robin Hack <rhack>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Milos Malik <mmalik>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 5.11CC: dwalsh, eparis, mmalik
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: selinux-policy-2.4.6-349.el5 Doc Type: Bug Fix
Doc Text:
Previously, the smbd daemon service was unable to connect to the nmbd service using a Unix stream socket, which caused AVC messages to be logged in the /var/log/audit/audit.log file. To fix this bug, a set of new rules has been added to the SELinux policy to allow smbd to connect to nmbd.
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-09-16 00:30:00 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:
Attachments:
Description Flags
AVC logs. none

Description Robin Hack 2014-04-02 10:48:49 UTC
Created attachment 881724 [details]
AVC logs.

Description of problem:
Hi. While running this test:
https://beaker.engineering.redhat.com/recipes/1280182#task20066479
git repo:
http://pkgs.devel.redhat.com/cgit/tests/samba/tree/sanity/domain-trusts

some strange avc (which are included) raises.

Maybe this is samba bug (saddr params looks very suspicious).

Comment 1 Robin Hack 2014-04-02 11:07:15 UTC
AVC Report
========================================================
# date time comm subj syscall class permission obj event
========================================================
1. 03/21/2014 23:26:17 smbd root:system_r:smbd_t:s0 102 unix_stream_socket connectto root:system_r:nmbd_t:s0 denied 85
2. 03/21/2014 23:29:33 smbd root:system_r:smbd_t:s0 102 unix_stream_socket connectto root:system_r:nmbd_t:s0 denied 87
3. 03/21/2014 23:29:33 smbd root:system_r:smbd_t:s0 102 unix_stream_socket connectto root:system_r:nmbd_t:s0 denied 86
4. 03/21/2014 23:31:13 smbd root:system_r:smbd_t:s0 102 unix_stream_socket connectto root:system_r:nmbd_t:s0 denied 88
5. 03/21/2014 23:31:13 smbd root:system_r:smbd_t:s0 102 unix_stream_socket connectto root:system_r:nmbd_t:s0 denied 89
6. 03/21/2014 23:32:53 smbd root:system_r:smbd_t:s0 102 unix_stream_socket connectto root:system_r:nmbd_t:s0 denied 90
7. 03/21/2014 23:32:53 smbd root:system_r:smbd_t:s0 102 unix_stream_socket connectto root:system_r:nmbd_t:s0 denied 91

Comment 3 Miroslav Grepl 2014-04-07 15:00:26 UTC
#============= smbd_t ==============

#!!!! This avc is allowed in the current policy
allow smbd_t nmbd_t:unix_stream_socket connectto;

Comment 4 RHEL Program Management 2014-04-22 20:48:27 UTC
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux release.  Product Management has
requested further review of this request by Red Hat Engineering, for
potential inclusion in a Red Hat Enterprise Linux release for currently
deployed products.  This request is not yet committed for inclusion in
a release.

Comment 8 errata-xmlrpc 2014-09-16 00:30:00 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, and where to find the updated
files, follow the link below.

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

http://rhn.redhat.com/errata/RHBA-2014-1205.html