enter: Add comment about why NS_GET_USERNS ioctl is not used

This commit is contained in:
Alexander Larsson
2019-11-20 11:40:11 +01:00
committed by Alexander Larsson
parent 47e2718833
commit a094aa0040

View File

@@ -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");
}