Bug 1512227 - SELinux is preventing net from 'map' accesses on the file /var/lib/samba/lock/gencache_notrans.tdb.
Summary: SELinux is preventing net from 'map' accesses on the file /var/lib/samba/lock...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 27
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:081f5cfa93fcb12774ad09973d6...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-11-11 21:31 UTC by Charles Barto
Modified: 2017-11-20 16:56 UTC (History)
5 users (show)

Fixed In Version: selinux-policy-3.13.1-283.16.fc27
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-11-20 16:56:45 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


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