Bug 1344145

Summary: SELinux is preventing accounts-daemon from 'create' accesses on the directory .cache.
Product: [Fedora] Fedora Reporter: Adam Williamson <awilliam>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED WORKSFORME QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: dominick.grift, dwalsh, lvrabec, mgrepl, plautrba
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:2a7f87be5defe701eb00b4e49c20a6ea221bbf42f7ef990032f9fa34750ab1fe;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-06-20 14:30:27 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 Adam Williamson 2016-06-08 21:16:14 UTC
Description of problem:
Appears on boot of current Rawhide Workstation live with enforcing=0 . If you attempt to boot without enforcing=0, the system never reaches the desktop. There are 3 other alerts, not sure which is the critical one.
SELinux is preventing accounts-daemon from 'create' accesses on the directory .cache.

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

If you believe that accounts-daemon should be allowed create access on the .cache 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:
# ausearch -c 'accounts-daemon' --raw | audit2allow -M my-accountsdaemon
# semodule -X 300 -i my-accountsdaemon.pp

Additional Information:
Source Context                system_u:system_r:accountsd_t:s0
Target Context                system_u:object_r:admin_home_t:s0
Target Objects                .cache [ dir ]
Source                        accounts-daemon
Source Path                   accounts-daemon
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-194.fc25.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 4.7.0-0.rc2.git1.1.fc25.x86_64 #1
                              SMP Tue Jun 7 13:28:43 UTC 2016 x86_64 x86_64
Alert Count                   1
First Seen                    2016-06-08 21:11:54 EDT
Last Seen                     2016-06-08 21:11:54 EDT
Local ID                      0e0145e0-8837-428c-9577-cbb6621e5cc3

Raw Audit Messages
type=AVC msg=audit(1465434714.252:98): avc:  denied  { create } for  pid=989 comm="accounts-daemon" name=".cache" scontext=system_u:system_r:accountsd_t:s0 tcontext=system_u:object_r:admin_home_t:s0 tclass=dir permissive=1


Hash: accounts-daemon,accountsd_t,admin_home_t,dir,create

Version-Release number of selected component:
selinux-policy-3.13.1-194.fc25.noarch

Additional info:
reporter:       libreport-2.7.1
hashmarkername: setroubleshoot
kernel:         4.7.0-0.rc2.git1.1.fc25.x86_64
reproducible:   Not sure how to reproduce the problem
type:           libreport

Comment 1 Lukas Vrabec 2016-06-20 14:30:27 UTC
Closing due to: https://bugzilla.redhat.com/show_bug.cgi?id=1342732