Bug 1398982

Summary: SELinux is preventing qemu-system-x86 from 'open' accesses on the file 2F6D656469612F66696C65732F77696E2D64697374722F492053204F2F4D6963726F736F66742057696E646F77732031302050726F66657373696F6E616C2031302E302E31343339332056657273696F6E20313630372052552F5...
Product: [Fedora] Fedora Reporter: antonfatal
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 25CC: bian.bain, dominick.grift, dwalsh, lvrabec, mgrepl, plautrba, pmoore, ssekidde
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:d124388b1722af68e5d79d0be48a4d47a269500fc85a3b6f2a1d21b4382329b3;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-29 00:43:20 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 antonfatal 2016-11-27 22:02:10 UTC
Description of problem:
SELinux is preventing qemu-system-x86 from open access on the file 2F6D656469612F66696C65732F77696E2D64697374722F492053204F2F4D6963726F736F66742057696E646F77732031302050726F66657373696F6E616C2031302E302E31343339332056657273696F6E20313630372052552F53575F445644355F57696E5F50726F5F31305F313630375F36344249545F5275737369616E5F4D4C465F5832312D30373330322E49534F.

*****  Plugin catchall_boolean (89.3 confidence) suggests   ******************

If вы хотите выполнить следующее: allow virt to use fusefs
Then вы должны сообщить SELinux об этом, включив переключатель «virt_use_fusefs».
Дополнительная документация на 'None' ман странице.
Do
setsebool -P virt_use_fusefs 1

*****  Plugin catchall (11.6 confidence) suggests   **************************

If вы считаете, что qemu-system-x86 следует разрешить доступ open к 2F6D656469612F66696C65732F77696E2D64697374722F492053204F2F4D6963726F736F66742057696E646F77732031302050726F66657373696F6E616C2031302E302E31343339332056657273696F6E20313630372052552F53575F445644355F57696E5F50726F5F31305F313630375F36344249545F5275737369616E5F4D4C465F5832312D30373330322E49534F file по умолчанию.
Then рекомендуется создать отчет об ошибке.
Чтобы разрешить доступ, можно создать локальный модуль политики.
Do
allow this access for now by executing:
# ausearch -c 'qemu-system-x86' --raw | audit2allow -M my-qemusystemx86
# semodule -X 300 -i my-qemusystemx86.pp

Additional Information:
Source Context                unconfined_u:unconfined_r:svirt_t:s0:c689,c754
Target Context                system_u:object_r:fusefs_t:s0
Target Objects                2F6D656469612F66696C65732F77696E2D64697374722F4920
                              53204F2F4D6963726F736F66742057696E646F777320313020
                              50726F66657373696F6E616C2031302E302E31343339332056
                              657273696F6E20313630372052552F53575F445644355F5769
                              6E5F50726F5F31305F313630375F36344249545F5275737369
                              616E5F4D4C465F5832312D30373330322E49534F [ file ]
Source                        qemu-system-x86
Source Path                   qemu-system-x86
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 build 4.8.8-300.fc25.x86_64 #1 SMP Tue Nov
                              15 18:10:06 UTC 2016 x86_64 x86_64
Alert Count                   1
First Seen                    2016-11-28 00:48:09 MSK
Last Seen                     2016-11-28 00:48:09 MSK
Local ID                      9a49d171-3e95-45ff-a5e1-0190bf4a9fe3

Raw Audit Messages
type=AVC msg=audit(1480283289.638:575): avc:  denied  { open } for  pid=31544 comm="qemu-system-x86" path=2F6D656469612F66696C65732F77696E2D64697374722F492053204F2F4D6963726F736F66742057696E646F77732031302050726F66657373696F6E616C2031302E302E31343339332056657273696F6E20313630372052552F53575F445644355F57696E5F50726F5F31305F313630375F36344249545F5275737369616E5F4D4C465F5832312D30373330322E49534F dev="sdc5" ino=199002 scontext=unconfined_u:unconfined_r:svirt_t:s0:c689,c754 tcontext=system_u:object_r:fusefs_t:s0 tclass=file permissive=0


Hash: qemu-system-x86,svirt_t,fusefs_t,file,open
SELinux is preventing qemu-system-x86 from 'open' accesses on the file 2F6D656469612F66696C65732F77696E2D64697374722F492053204F2F4D6963726F736F66742057696E646F77732031302050726F66657373696F6E616C2031302E302E31343339332056657273696F6E20313630372052552F53575F445644355F57696E5F50726F5F31305F313630375F36344249545F5275737369616E5F4D4C465F5832312D30373330322E49534F.

*****  Plugin catchall_boolean (89.3 confidence) suggests   ******************

If вы хотите выполнить следующее: allow virt to use fusefs
Then вы должны сообщить SELinux об этом, включив переключатель «virt_use_fusefs».
Дополнительная документация на 'None' ман странице.
Do
setsebool -P virt_use_fusefs 1

*****  Plugin catchall (11.6 confidence) suggests   **************************

If вы считаете, что qemu-system-x86 следует разрешить доступ open к 2F6D656469612F66696C65732F77696E2D64697374722F492053204F2F4D6963726F736F66742057696E646F77732031302050726F66657373696F6E616C2031302E302E31343339332056657273696F6E20313630372052552F53575F445644355F57696E5F50726F5F31305F313630375F36344249545F5275737369616E5F4D4C465F5832312D30373330322E49534F file по умолчанию.
Then рекомендуется создать отчет об ошибке.
Чтобы разрешить доступ, можно создать локальный модуль политики.
Do
allow this access for now by executing:
# ausearch -c 'qemu-system-x86' --raw | audit2allow -M my-qemusystemx86
# semodule -X 300 -i my-qemusystemx86.pp

Additional Information:
Source Context                unconfined_u:unconfined_r:svirt_t:s0:c689,c754
Target Context                system_u:object_r:fusefs_t:s0
Target Objects                2F6D656469612F66696C65732F77696E2D64697374722F4920
                              53204F2F4D6963726F736F66742057696E646F777320313020
                              50726F66657373696F6E616C2031302E302E31343339332056
                              657273696F6E20313630372052552F53575F445644355F5769
                              6E5F50726F5F31305F313630375F36344249545F5275737369
                              616E5F4D4C465F5832312D30373330322E49534F [ file ]
Source                        qemu-system-x86
Source Path                   qemu-system-x86
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                   1
First Seen                    2016-11-28 00:48:09 MSK
Last Seen                     2016-11-28 00:48:09 MSK
Local ID                      9a49d171-3e95-45ff-a5e1-0190bf4a9fe3

Raw Audit Messages
type=AVC msg=audit(1480283289.638:575): avc:  denied  { open } for  pid=31544 comm="qemu-system-x86" path=2F6D656469612F66696C65732F77696E2D64697374722F492053204F2F4D6963726F736F66742057696E646F77732031302050726F66657373696F6E616C2031302E302E31343339332056657273696F6E20313630372052552F53575F445644355F57696E5F50726F5F31305F313630375F36344249545F5275737369616E5F4D4C465F5832312D30373330322E49534F dev="sdc5" ino=199002 scontext=unconfined_u:unconfined_r:svirt_t:s0:c689,c754 tcontext=system_u:object_r:fusefs_t:s0 tclass=file permissive=0


Hash: qemu-system-x86,svirt_t,fusefs_t,file,open

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.8-300.fc25.x86_64
type:           libreport

Potential duplicate: bug 1142767

Comment 1 Lukas Vrabec 2016-11-29 00:43:20 UTC
*****  Plugin catchall_boolean (89.3 confidence) suggests   ******************

If вы хотите выполнить следующее: allow virt to use fusefs
Then вы должны сообщить SELinux об этом, включив переключатель «virt_use_fusefs».
Дополнительная документация на 'None' ман странице.
Do
setsebool -P virt_use_fusefs 1