Skip to content

Commit

Permalink
qm.if: qemu + gtk display with wayland
Browse files Browse the repository at this point in the history
These rules are collected for an scenario
where a Qemu KVM container runs with GTK
display and Wayland compositor.

Signed-off-by: Albert Esteve <aesteve@redhat.com>
  • Loading branch information
aesteve-rh authored and alexlarsson committed Sep 2, 2024
1 parent 3000572 commit 270e21d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions qm.if
Original file line number Diff line number Diff line change
Expand Up @@ -359,11 +359,16 @@ template(`qm_domain_template',`
files_pid_filetrans($1_container_kvm_t, $1_container_kvm_var_run_t, { dir file lnk_file sock_file })
allow $1_container_kvm_t $1_container_kvm_var_run_t:{file dir} mounton;

manage_files_pattern($1_container_kvm_t, $1_file_t, $1_file_t)
manage_sock_files_pattern($1_container_kvm_t, $1_file_t, $1_file_t)

allow $1_container_kvm_t $1_container_wayland_t:unix_stream_socket rw_stream_socket_perms;
allow $1_container_kvm_t $1_t:unix_stream_socket rw_stream_socket_perms;
container_stream_connect($1_container_kvm_t)

allow $1_container_kvm_t $1_t:tun_socket attach_queue;

dev_read_sysfs($1_container_kvm_t)
dev_rw_inherited_vhost($1_container_kvm_t)
dev_rw_vfio_dev($1_container_kvm_t)

Expand Down

0 comments on commit 270e21d

Please sign in to comment.