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 1512227

Summary: SELinux is preventing net from 'map' accesses on the file /var/lib/samba/lock/gencache_notrans.tdb.
Product: [Fedora] Fedora Reporter: Charles Barto <bartoc+fedora_bugs>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 27CC: dwalsh, lvrabec, mgrepl, plautrba, pmoore
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:081f5cfa93fcb12774ad09973d6267cdaf6400a7f82b52c8b30565f0bbe25d37;VARIANT_ID=workstation;
Fixed In Version: selinux-policy-3.13.1-283.16.fc27 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-11-20 16:56:45 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Charles Barto 2017-11-11 21:31:44 UTC
Description of problem:
I simply tried to add my domain account to a fedora 27 machine
This happens when I try and join a windows domain.

SELinux is preventing net from 'map' accesses on the file /var/lib/samba/lock/gencache_notrans.tdb.

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

If you believe that net should be allowed map access on the gencache_notrans.tdb file 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 'net' --raw | audit2allow -M my-net
# semodule -X 300 -i my-net.pp

Additional Information:
Source Context                system_u:system_r:samba_net_t:s0
Target Context                system_u:object_r:samba_var_t:s0
Target Objects                /var/lib/samba/lock/gencache_notrans.tdb [ file ]
Source                        net
Source Path                   net
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    <Unknown>
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.13.12-300.fc27.x86_64 #1 SMP Wed
                              Nov 8 16:38:01 UTC 2017 x86_64 x86_64
Alert Count                   17
First Seen                    2017-11-11 16:30:15 EST
Last Seen                     2017-11-11 16:30:16 EST
Local ID                      9031c814-617a-4e3a-a441-00c21d4694d2

Raw Audit Messages
type=AVC msg=audit(1510435816.241:11421): avc:  denied  { map } for  pid=19672 comm="net" path="/var/lib/samba/lock/gencache_notrans.tdb" dev="nvme0n1p4" ino=1678298 scontext=system_u:system_r:samba_net_t:s0 tcontext=system_u:object_r:samba_var_t:s0 tclass=file permissive=0


Hash: net,samba_net_t,samba_var_t,file,map


Additional info:
component:      selinux-policy
reporter:       libreport-2.9.3
hashmarkername: setroubleshoot
kernel:         4.13.12-300.fc27.x86_64
type:           libreport

Comment 1 Fedora Update System 2017-11-16 15:12:30 UTC
selinux-policy-3.13.1-283.16.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2017-5178e6a393

Comment 2 Fedora Update System 2017-11-17 18:56:27 UTC
selinux-policy-3.13.1-283.16.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-5178e6a393

Comment 3 Fedora Update System 2017-11-20 16:56:45 UTC
selinux-policy-3.13.1-283.16.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.