]> git.baikalelectronics.ru Git - kernel.git/commit
sys/sysinfo: Respect boottime inside time namespace
authorCyril Hrubis <chrubis@suse.cz>
Tue, 3 Mar 2020 15:06:38 +0000 (16:06 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 3 Mar 2020 18:34:32 +0000 (19:34 +0100)
commit75107b59260c78eba6b10354d0f80811e4730671
treeb9cca4d12255887d20b098cddafe3d2b7f93bfb6
parent5ffd64ecc0987e6f01533e7cc8fa89b7b34f793f
sys/sysinfo: Respect boottime inside time namespace

The sysinfo() syscall includes uptime in seconds but has no correction for
time namespaces which makes it inconsistent with the /proc/uptime inside of
a time namespace.

Add the missing time namespace adjustment call.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Dmitry Safonov <dima@arista.com>
Link: https://lkml.kernel.org/r/20200303150638.7329-1-chrubis@suse.cz
kernel/sys.c