Bug 1234067
| Summary: | SELinux is preventing pool from 'getattr' accesses on the file /home/vortexbox-storage/hello. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | morgan read <mstuff> |
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 21 | CC: | dominick.grift, dwalsh, lvrabec, mgrepl, plautrba |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | i686 | ||
| OS: | Unspecified | ||
| Whiteboard: | abrt_hash:16d615ddc88cc5ffe852007cc0457f36ecdc5c18d6bd2c95284ae26228946022 | ||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2015-06-23 12:28:03 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: | |||
Looks like you have virt storage in a weird location. I would probably label this as virt_var_lib_t. # semanage fcontext -a -t virt_var_lib_t '/home/vortexbox-storage(/.*)?' # restorecon -R -v /home |
Description of problem: accessing file 'hello' on host from guest vm via 9p SELinux is preventing pool from 'getattr' accesses on the file /home/vortexbox-storage/hello. ***** Plugin restorecon (99.5 confidence) suggests ************************ If you want to fix the label. /home/vortexbox-storage/hello default label should be user_home_t. Then you can run restorecon. Do # /sbin/restorecon -v /home/vortexbox-storage/hello ***** Plugin catchall (1.49 confidence) suggests ************************** If you believe that pool should be allowed getattr access on the hello 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: # grep pool /var/log/audit/audit.log | audit2allow -M mypol # semodule -i mypol.pp Additional Information: Source Context system_u:system_r:svirt_t:s0:c121,c587 Target Context unconfined_u:object_r:home_root_t:s0 Target Objects /home/vortexbox-storage/hello [ file ] Source pool Source Path pool Port <Unknown> Host (removed) Source RPM Packages Target RPM Packages Policy RPM selinux-policy-3.13.1-105.13.fc21.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux (removed) 4.0.4-202.fc21.i686+PAE #1 SMP Wed May 27 22:51:47 UTC 2015 i686 i686 Alert Count 1 First Seen 2015-06-20 21:46:17 BST Last Seen 2015-06-20 21:46:17 BST Local ID 66d7647f-d4f2-41fb-9bc2-f631c8005059 Raw Audit Messages type=AVC msg=audit(1434833177.24:533): avc: denied { getattr } for pid=3551 comm="pool" path="/home/vortexbox-storage/hello" dev="dm-8" ino=1175042 scontext=system_u:system_r:svirt_t:s0:c121,c587 tcontext=unconfined_u:object_r:home_root_t:s0 tclass=file permissive=0 Hash: pool,svirt_t,home_root_t,file,getattr Version-Release number of selected component: selinux-policy-3.13.1-105.13.fc21.noarch Additional info: reporter: libreport-2.3.0 hashmarkername: setroubleshoot kernel: 4.0.4-202.fc21.i686+PAE type: libreport