Bug 2295200 - SELinux is preventing pool-libvirt-db from 'connectto' accesses on the unix_stream_socket /run/libvirt/virtqemud-sock.
Summary: SELinux is preventing pool-libvirt-db from 'connectto' accesses on the unix_s...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Unspecified
high
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:cb18bff51f0aba9df6e1df5ad8b...
: 2295268 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-07-02 17:20 UTC by Steve
Modified: 2024-07-19 17:31 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-07-19 17:31:44 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: description (2.71 KB, text/plain)
2024-07-02 17:20 UTC, Steve
no flags Details
File: os_info (734 bytes, text/plain)
2024-07-02 17:20 UTC, Steve
no flags Details

Description Steve 2024-07-02 17:20:46 UTC
Description of problem:
Use "cockpit" to list virtual machines.
SELinux is preventing pool-libvirt-db from 'connectto' accesses on the unix_stream_socket /run/libvirt/virtqemud-sock.

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

If you want to allow daemons to enable cluster mode
Then you must tell SELinux about this by enabling the 'daemons_enable_cluster_mode' boolean.

Do
setsebool -P daemons_enable_cluster_mode 1

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

If you believe that pool-libvirt-db should be allowed connectto access on the virtqemud-sock unix_stream_socket 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-libvirt-db' --raw | audit2allow -M my-poollibvirtdb
# semodule -X 300 -i my-poollibvirtdb.pp

Additional Information:
Source Context                system_u:system_r:virt_dbus_t:s0
Target Context                system_u:system_r:virtqemud_t:s0
Target Objects                /run/libvirt/virtqemud-sock [ unix_stream_socket ]
Source                        pool-libvirt-db
Source Path                   pool-libvirt-db
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           libvirt-dbus-1.4.1-4.fc40.x86_64
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-41.7-1.fc41.noarch
Local Policy RPM              selinux-policy-targeted-41.7-1.fc41.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 6.9.6-200.fc40.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Fri Jun 21 15:48:21 UTC 2024
                              x86_64
Alert Count                   6
First Seen                    2024-07-01 10:21:21 PDT
Last Seen                     2024-07-02 09:55:02 PDT
Local ID                      be994f88-9f55-4267-b96c-923cbccdf5f4

Raw Audit Messages
type=AVC msg=audit(1719939302.511:266): avc:  denied  { connectto } for  pid=3504 comm="pool-libvirt-db" path="/run/libvirt/virtqemud-sock" scontext=system_u:system_r:virt_dbus_t:s0 tcontext=system_u:system_r:virtqemud_t:s0 tclass=unix_stream_socket permissive=0


type=SYSCALL msg=audit(1719939302.511:266): arch=x86_64 syscall=connect success=no exit=EACCES a0=7 a1=7f15029ff4d0 a2=6e a3=7f14ec0015c0 items=0 ppid=1 pid=3504 auid=4294967295 uid=969 gid=969 euid=969 suid=969 fsuid=969 egid=969 sgid=969 fsgid=969 tty=(none) ses=4294967295 comm=pool-libvirt-db exe=/usr/sbin/libvirt-dbus subj=system_u:system_r:virt_dbus_t:s0 key=(null)

Hash: pool-libvirt-db,virt_dbus_t,virtqemud_t,unix_stream_socket,connectto

Version-Release number of selected component:
selinux-policy-targeted-41.7-1.fc41.noarch

Additional info:
reporter:       libreport-2.17.15
reason:         SELinux is preventing pool-libvirt-db from 'connectto' accesses on the unix_stream_socket /run/libvirt/virtqemud-sock.
package:        selinux-policy-targeted-41.7-1.fc41.noarch
component:      selinux-policy
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.9.6-200.fc40.x86_64
comment:        Use "cockpit" to list virtual machines.
component:      selinux-policy

Comment 1 Steve 2024-07-02 17:20:48 UTC
Created attachment 2038717 [details]
File: description

Comment 2 Steve 2024-07-02 17:20:49 UTC
Created attachment 2038718 [details]
File: os_info

Comment 3 Steve 2024-07-02 17:28:12 UTC
This is a follow-up to Bug 2293199, Comment 5.

The test system is an F40 Workstation VM.

Comment 4 Zdenek Pytela 2024-07-02 17:31:41 UTC
(In reply to Steve from comment #3)
> This is a follow-up to Bug 2293199, Comment 5.
> 
> The test system is an F40 Workstation VM.

The system uses rawhide policy, so I changed the bz metadata.

Comment 5 Zdenek Pytela 2024-07-02 19:19:13 UTC
*** Bug 2295268 has been marked as a duplicate of this bug. ***


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