Bug 1546536

Summary: SELinux is preventing sssd from read, write access on the file config.ldb.
Product: [Fedora] Fedora Reporter: Florian Wallner <wallner>
Component: kernelAssignee: Kernel Maintainer List <kernel-maint>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 27CC: airlied, ajax, bskeggs, dwalsh, ewk, hdegoede, ichavero, itamar, jarodwilson, jglisse, john.j5live, jonathan, josef, kernel-maint, linville, lvrabec, mchehab, mgrepl, mjg59, plautrba, pmoore, steved, thomas
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:f9240d3707379c8bfcdcd685b47bc9f7742781b90c58a2b9dd4dd13fc50bb422;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-26 16:30:11 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 Florian Wallner 2018-02-18 12:58:19 UTC
Description of problem:
After returning from suspend this alert pops up
SELinux is preventing sssd from read, write access on the file config.ldb.

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

If you believe that sssd should be allowed read write access on the config.ldb 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 'sssd' --raw | audit2allow -M my-sssd
# semodule -X 300 -i my-sssd.pp

Additional Information:
Source Context                system_u:system_r:sssd_t:s0
Target Context                system_u:object_r:unlabeled_t:s0
Target Objects                config.ldb [ file ]
Source                        sssd
Source Path                   sssd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-260.9.fc26.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.12.14-300.fc26.x86_64 #1 SMP Wed
                              Sep 20 16:28:07 UTC 2017 x86_64 x86_64
Alert Count                   13
First Seen                    2017-09-11 11:15:02 CEST
Last Seen                     2017-09-27 21:18:55 CEST
Local ID                      efde4137-c653-48f9-9ebc-d208cf9a2cf8

Raw Audit Messages
type=AVC msg=audit(1506539935.886:115): avc:  denied  { read write } for  pid=1107 comm="sssd" name="config.ldb" dev="dm-0" ino=155644 scontext=system_u:system_r:sssd_t:s0 tcontext=system_u:object_r:unlabeled_t:s0 tclass=file permissive=0


Hash: sssd,sssd_t,unlabeled_t,file,read,write

Version-Release number of selected component:
selinux-policy-3.13.1-260.9.fc26.noarch

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

Potential duplicate: bug 1474008

Comment 1 Lukas Vrabec 2018-02-26 15:58:38 UTC
*** Bug 1474008 has been marked as a duplicate of this bug. ***

Comment 2 Lukas Vrabec 2018-02-26 16:30:11 UTC
Florian,

Are you using brtfs? If yes, it's probably bug in kernel. Closing as duplicate.

*** This bug has been marked as a duplicate of bug 1447750 ***