mirror of
https://github.com/token2/snapd.git
synced 2026-03-13 11:15:47 -07:00
data/selinux: add policykit_dbus_chat()
Add an optional policy to allow policykit_dbus_chat(). Enables sending to and receiving messages from policykit. Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
This commit is contained in:
@@ -216,6 +216,7 @@ corenet_udp_sendrecv_dns_port(snappy_t)
|
||||
corenet_tcp_connect_dns_port(snappy_t)
|
||||
corenet_sendrecv_dns_client_packets(snappy_t)
|
||||
|
||||
# allow polkit to reply to snapd
|
||||
gen_require(` type policykit_t; class dbus send_msg; ')
|
||||
allow policykit_t snappy_t:dbus send_msg;
|
||||
# allow communication with polkit over dbus
|
||||
optional_policy(`
|
||||
policykit_dbus_chat(snappy_t)
|
||||
')
|
||||
|
||||
Reference in New Issue
Block a user