mirror of
https://github.com/flatpak/flatpak.git
synced 2026-01-31 19:11:25 -05:00
enter: Add comment about why NS_GET_USERNS ioctl is not used
This commit is contained in:
committed by
Alexander Larsson
parent
47e2718833
commit
a094aa0040
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user