Bug 1398982 - SELinux is preventing qemu-system-x86 from 'open' accesses on the file 2F6D656469612F66696C65732F77696E2D64697374722F492053204F2F4D6963726F736F66742057696E646F77732031302050726F66657373696F6E616C2031302E302E31343339332056657273696F6E20313630372052552F5...
Summary: SELinux is preventing qemu-system-x86 from 'open' accesses on the file 2F6D65...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 25
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:d124388b1722af68e5d79d0be48...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-27 22:02 UTC by antonfatal
Modified: 2017-07-15 14:36 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-29 00:43:20 UTC
Type: ---


Attachments (Terms of Use)

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


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