Skip to content

Commit

Permalink
qm.if: add remaining wayland rules
Browse files Browse the repository at this point in the history
Add remaining rules required to support
booting and running the wayland scenario,
with a compositor, session creation,
qm dbus management, and all required pieces.

Note that running pem_selinux for creating
the session will be blocked, as it falls back
to unconfined_u with the current rules.

Signed-off-by: Albert Esteve <aesteve@redhat.com>
  • Loading branch information
aesteve-rh committed Jul 17, 2024
1 parent 7856625 commit 6e6269d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion qm.if
Original file line number Diff line number Diff line change
Expand Up @@ -399,13 +399,19 @@ template(`qm_domain_template',`

qm_container_template($1, wayland)

allow $1_container_wayland_t $1_file_t:dir { add_name write watch };
allow $1_container_wayland_t $1_file_t:chr_file map;
allow $1_container_wayland_t $1_file_t:dir { add_name create write watch };
allow $1_container_wayland_t $1_file_t:file { create write };
allow $1_container_wayland_t $1_file_t:sock_file { create write };
allow $1_container_wayland_t $1_t:unix_stream_socket connectto;
allow $1_container_wayland_t $1_t:dbus send_msg;
allow $1_t $1_container_wayland_t:dbus send_msg;
dev_read_sysfs($1_container_wayland_t)

allow getty_t $1_file_type:chr_file { read write };

allow systemd_hostnamed_t $1_file_t:dir search;
allow systemd_hostnamed_t $1_file_t:file { getattr open read };
systemd_dbus_chat_hostnamed(systemd_hostnamed_t)

read_files_pattern($1_container_domain, $1_container_ro_file_t,$1_container_ro_file_t)
Expand Down

0 comments on commit 6e6269d

Please sign in to comment.