Skip to content

Commit

Permalink
Merge pull request #490 from aesteve-rh/wayland-new-rules
Browse files Browse the repository at this point in the history
qm.if: add remaining wayland rules
  • Loading branch information
Yarboa authored Jul 19, 2024
2 parents 2392290 + 6e6269d commit 85a8e5b
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 85a8e5b

Please sign in to comment.