Bug 1234067 - SELinux is preventing pool from 'getattr' accesses on the file /home/vortexbox-storage/hello.
Summary: SELinux is preventing pool from 'getattr' accesses on the file /home/vortexbo...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 21
Hardware: i686
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:16d615ddc88cc5ffe852007cc04...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-06-20 21:00 UTC by morgan read
Modified: 2015-06-23 12:28 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-06-23 12:28:03 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description morgan read 2015-06-20 21:00:59 UTC
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

Comment 1 Daniel Walsh 2015-06-23 12:28:03 UTC
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


Note You need to log in before you can comment on or make changes to this bug.