From a094aa0040751c60ec576c4eef9843fbd23e5066 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Wed, 20 Nov 2019 11:40:11 +0100 Subject: [PATCH] enter: Add comment about why NS_GET_USERNS ioctl is not used --- app/flatpak-builtins-enter.c | 1 + 1 file changed, 1 insertion(+) diff --git a/app/flatpak-builtins-enter.c b/app/flatpak-builtins-enter.c index efb74054..c80d493d 100644 --- a/app/flatpak-builtins-enter.c +++ b/app/flatpak-builtins-enter.c @@ -160,6 +160,7 @@ flatpak_builtin_enter (int argc, if (strcmp (ns_name[i], "user_base") == 0) { + /* We could use the NS_GET_USERNS ioctl instead of the .userns bind hack, but that would require >= 4.9 kernel */ path = g_strdup_printf ("%s/run/.userns", root_path); self_path = g_strdup ("/proc/self/ns/user"); }