nsproxy: support CLONE_NEWTIME with setns()
authorChristian Brauner <christian.brauner@ubuntu.com>
Mon, 6 Jul 2020 15:49:11 +0000 (17:49 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Wed, 8 Jul 2020 09:14:22 +0000 (11:14 +0200)
commit76c12881a38aaa83e1eb4ce2fada36c3a732bad4
tree3319e14107ff7c152cd5400902a771273cd21ff2
parent5cfea9a106bbb1af919ab94456fdd02209984070
nsproxy: support CLONE_NEWTIME with setns()

So far setns() was missing time namespace support. This was partially due
to it simply not being implemented but also because vdso_join_timens()
could still fail which made switching to multiple namespaces atomically
problematic. This is now fixed so support CLONE_NEWTIME with setns()

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Reviewed-by: Andrei Vagin <avagin@gmail.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Michael Kerrisk <mtk.manpages@gmail.com>
Cc: Serge Hallyn <serge@hallyn.com>
Cc: Dmitry Safonov <dima@arista.com>
Link: https://lore.kernel.org/r/20200706154912.3248030-4-christian.brauner@ubuntu.com
include/linux/time_namespace.h
kernel/nsproxy.c
kernel/time/namespace.c