Skip to content
Commit 290e44b7 authored by Paul Moore's avatar Paul Moore
Browse files

audit: use ktime_get_coarse_real_ts64() for timestamps



Commit c72051d5 ("audit: use ktime_get_coarse_ts64() for time
access") converted audit's use of current_kernel_time64() to the
new ktime_get_coarse_ts64() function.  Unfortunately this resulted
in incorrect timestamps, e.g. events stamped with the year 1969
despite it being 2018.  This patch corrects this by using
ktime_get_coarse_real_ts64() just like the current_kernel_time64()
wrapper.

Fixes: c72051d5 ("audit: use ktime_get_coarse_ts64() for time access")
Reviewed-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarPaul Moore <paul@paul-moore.com>
parent c72051d5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment