Bug 1401298

Summary: SELinux is preventing pool from 'write' accesses on the directory .cache.
Product: [Fedora] Fedora Reporter: Doaxan <dxzlabs>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 25CC: dominick.grift, dwalsh, lvrabec, mgrepl, plautrba, pmoore, ssekidde, voltasar
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:42047b741149b9014c7267a92e7f9529e9fc3ee990987f2def56b792351d7c6b;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-12-06 17:06:09 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Doaxan 2016-12-04 13:21:38 UTC
Description of problem:
SELinux is preventing pool from 'write' accesses on the directory .cache.

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

If you believe that pool should be allowed write 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 'pool' --raw | audit2allow -M my-pool
# semodule -X 300 -i my-pool.pp

Additional Information:
Source Context                unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023
Target Context                system_u:object_r:admin_home_t:s0
Target Objects                .cache [ dir ]
Source                        pool
Source Path                   pool
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-224.fc25.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.8.8-300.fc25.x86_64 #1 SMP Tue
                              Nov 15 18:10:06 UTC 2016 x86_64 x86_64
Alert Count                   3
First Seen                    2016-11-24 14:24:16 MSK
Last Seen                     2016-11-24 14:24:16 MSK
Local ID                      22c04ac9-75e4-49d9-912c-37f4a1ac7283

Raw Audit Messages
type=AVC msg=audit(1479986656.174:290): avc:  denied  { write } for  pid=4613 comm="pool" name=".cache" dev="sda5" ino=931137 scontext=unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023 tcontext=system_u:object_r:admin_home_t:s0 tclass=dir permissive=0


Hash: pool,thumb_t,admin_home_t,dir,write

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

Additional info:
reporter:       libreport-2.8.0
hashmarkername: setroubleshoot
kernel:         4.8.10-300.fc25.x86_64
type:           libreport

Potential duplicate: bug 1236316

Comment 1 Lukas Vrabec 2016-12-06 17:06:09 UTC
Did you login as root? 
We do not support this.