]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit705950ffa082d40935ddd7490f2de752c116435e
tree3319e14107ff7c152cd5400902a771273cd21ff2
parentaa2d230b0c2a7fe55a1515d1b9fba143e80c5d46
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