Skip to content

Commit

Permalink
Allow svirt_tcg_t to connect to nbdkit over a unix stream socket
Browse files Browse the repository at this point in the history
The commit addresses the following AVC denial:
avc:  denied  { connectto } for  pid=7024 comm="nbd-connect" path="/var/lib/libvirt/qemu/domain-1-subVmTestCreate8/nbdkit-libvirt-1-storage.socket" scontext=system_u:system_r:svirt_tcg_t:s0:c531,c721 tcontext=system_u:system_r:nbdkit_t:s0:c531,c721 tclass=unix_stream_socket permissive=0

Resolves: rhbz#2342260
  • Loading branch information
zpytela committed Jan 31, 2025
1 parent 20c58a5 commit 6e44e3d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions policy/modules/contrib/virt.te
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,10 @@ ps_process_pattern(svirt_tcg_t, virtd_t)

virt_dontaudit_read_state(svirt_tcg_t)

optional_policy(`
nbdkit_stream_connect(svirt_tcg_t)
')

########################################
#
# virtd local policy
Expand Down

0 comments on commit 6e44e3d

Please sign in to comment.