Bug 1289522 - SELinux is preventing pdbedit from 'create' accesses on the directory lock.
Summary: SELinux is preventing pdbedit from 'create' accesses on the directory lock.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 23
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:ecc88ce02ce30356895f1dc4008...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-12-08 11:47 UTC by Bruce Martin
Modified: 2016-01-15 15:43 UTC (History)
6 users (show)

Fixed In Version: selinux-policy-3.13.1-156.fc23 selinux-policy-3.13.1-157.fc23
Clone Of:
Environment:
Last Closed: 2015-12-13 04:22:31 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Bruce Martin 2015-12-08 11:47:51 UTC
Description of problem:
Do not know.
SELinux is preventing pdbedit from 'create' accesses on the directory lock.

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

If you believe that pdbedit should be allowed create access on the lock directory 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:
# grep pdbedit /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:sambagui_t:s0-s0:c0.c1023
Target Context                system_u:object_r:samba_var_t:s0
Target Objects                lock [ dir ]
Source                        pdbedit
Source Path                   pdbedit
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-155.fc23.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.2.6-301.fc23.x86_64 #1 SMP Fri
                              Nov 20 22:22:41 UTC 2015 x86_64 x86_64
Alert Count                   4
First Seen                    2015-12-05 21:37:26 EST
Last Seen                     2015-12-08 06:44:59 EST
Local ID                      f8436381-2296-4095-8f17-6dc1be402342

Raw Audit Messages
type=AVC msg=audit(1449575099.161:1426): avc:  denied  { create } for  pid=29258 comm="pdbedit" name="lock" scontext=system_u:system_r:sambagui_t:s0-s0:c0.c1023 tcontext=system_u:object_r:samba_var_t:s0 tclass=dir permissive=0


Hash: pdbedit,sambagui_t,samba_var_t,dir,create

Version-Release number of selected component:
selinux-policy-3.13.1-155.fc23.noarch

Additional info:
reporter:       libreport-2.6.3
hashmarkername: setroubleshoot
kernel:         4.2.6-301.fc23.x86_64
type:           libreport

Comment 1 Lukas Vrabec 2015-12-08 12:53:54 UTC
commit 1e520079af14aa693d3db088c40a7836f41e5c18
Author: Lukas Vrabec <lvrabec>
Date:   Tue Dec 8 13:52:51 2015 +0100

    Allow sambagui to manage samba var dirs. BZ(1289522)

Comment 2 Fedora Update System 2015-12-09 13:38:08 UTC
selinux-policy-3.13.1-157.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-b4167d5fd0

Comment 3 Fedora Update System 2015-12-10 04:55:11 UTC
selinux-policy-3.13.1-157.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
$ su -c 'dnf --enablerepo=updates-testing update selinux-policy'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-b4167d5fd0

Comment 4 Fedora Update System 2015-12-13 04:22:13 UTC
selinux-policy-3.13.1-157.fc23 has been pushed to the Fedora 23 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.