From 08344dacb14bdda5f6ee1fa36dab36776101115b Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Fri, 16 Feb 2024 09:43:12 +0100 Subject: selinux: Allow pasta to remount procfs Partially equivalent to commit abf5ef6c22d2 ("apparmor: Allow pasta to remount /proc, access entries under its own copy"): we should allow pasta to remount /proc. It still works otherwise, but further UID remapping in nested user namespaces (e.g. pasta in pasta) won't. Reported-by: Laurent Jacquot Link: https://bugs.passt.top/show_bug.cgi?id=79#c3 Signed-off-by: Stefano Brivio --- contrib/selinux/pasta.te | 2 ++ 1 file changed, 2 insertions(+) (limited to 'contrib/selinux/pasta.te') diff --git a/contrib/selinux/pasta.te b/contrib/selinux/pasta.te index ed70c5f..0ceda06 100644 --- a/contrib/selinux/pasta.te +++ b/contrib/selinux/pasta.te @@ -201,6 +201,8 @@ allow pasta_t kernel_t:system module_request; allow pasta_t nsfs_t:file read; +allow pasta_t proc_t:dir mounton; +allow pasta_t proc_t:filesystem mount; allow pasta_t net_conf_t:lnk_file read; allow pasta_t proc_net_t:lnk_file read; -- cgit v1.2.3