Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1559795

Summary: avc: denied { map } for pid=15641 comm="smbcontrol" path="/var/lib/samba/lock/names.tdb" dev="vda1" ino=2492866 scontext=unconfined_u:unconfined_r:smbcontrol_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:samba_var_t:s0 tclass=file permissive=0
Product: [Fedora] Fedora Reporter: Bruno Goncalves <bgoncalv>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 29CC: dwalsh, lvrabec, mgrepl, plautrba, pmoore
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: selinux-policy-3.14.2-15.fc29 selinux-policy-3.14.2-34.fc29 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-09-12 02:59: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:
Attachments:
Description Flags
runtest.sh
none
win-config-domain-join.sh none

Description Bruno Goncalves 2018-03-23 09:48:28 UTC
Description of problem:
Got avc while running a test for samba

Version-Release number of selected component (if applicable):
selinux-policy-3.14.2-8.fc29.noarch


How reproducible:
100%

Steps to Reproduce:
1.download the attached runtest.sh and win-config-domain-join.sh scripts
2.execute the attached runtest.sh script

Actual results:
:: [ 04:19:14 ] :: [  BEGIN   ] :: avc check :: actually running 'ausearch -m avc --start 04:18:25 | grep denied'
type=AVC msg=audit(1521778750.535:377): avc:  denied  { map } for  pid=15641 comm="smbcontrol" path="/var/lib/samba/lock/names.tdb" dev="vda1" ino=2492866 scontext=unconfined_u:unconfined_r:smbcontrol_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:samba_var_t:s0 tclass=file permissive=0

Comment 1 Bruno Goncalves 2018-03-23 09:49:06 UTC
Created attachment 1412033 [details]
runtest.sh

Comment 2 Bruno Goncalves 2018-03-23 09:49:35 UTC
Created attachment 1412034 [details]
win-config-domain-join.sh

Comment 3 Bruno Goncalves 2018-03-23 09:51:08 UTC
Another AVC error shows later on:

time->Fri Mar 23 04:19:14 2018
type=AVC msg=audit(1521778754.555:379): avc:  denied  { create } for  pid=15826 comm="winbindd" scontext=system_u:system_r:winbind_t:s0 tcontext=system_u:system_r:winbind_t:s0 tclass=socket permissive=0

Comment 4 Jan Kurik 2018-08-14 11:21:50 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 29 development cycle.
Changing version to '29'.

Comment 5 Fedora Update System 2018-09-11 12:53:15 UTC
selinux-policy-3.14.2-34.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2018-db240a1726

Comment 6 Fedora Update System 2018-09-12 02:59:45 UTC
selinux-policy-3.14.2-34.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.