From 977652155d546fbc3cef27928f889d3cf019420a Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Tue, 15 Aug 2023 19:50:48 +0200 Subject: selinux: Add rules for sysctl and /proc/net accesses That's what we actually need to check networking-related sysctls, to scan for bound ports, and to manipulate bits of network configuration inside pasta's target namespaces. Signed-off-by: Stefano Brivio Acked-by: Richard W.M. Jones --- contrib/selinux/passt.te | 1 + 1 file changed, 1 insertion(+) (limited to 'contrib/selinux/passt.te') diff --git a/contrib/selinux/passt.te b/contrib/selinux/passt.te index 507fc89..facc2d1 100644 --- a/contrib/selinux/passt.te +++ b/contrib/selinux/passt.te @@ -103,6 +103,7 @@ allow passt_t net_conf_t:file { open read }; allow passt_t net_conf_t:lnk_file read; allow passt_t tmp_t:sock_file { create unlink write }; allow passt_t self:netlink_route_socket { bind create nlmsg_read read write setopt }; +kernel_search_network_sysctl(passt_t) corenet_tcp_bind_all_nodes(passt_t) corenet_udp_bind_all_nodes(passt_t) -- cgit v1.2.3