Re: [patch 13/13] tomoyo: Use sensible time interface

From: Tetsuo Handa
Date: Thu Jun 12 2014 - 07:55:11 EST


Thomas Gleixner wrote:
> There is no point in calling gettimeofday if only the seconds part of
> the timespec is used. Use get_seconds() instead. It's not only the
> proper interface it's also faster.
>
> Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
> Cc: Kentaro Takeda <takedakn@xxxxxxxxxxxxx>
> Cc: linux-security-module@xxxxxxxxxxxxxxx

Acked-by: Tetsuo Handa <penguin-kernel@xxxxxxxxxxxxxxxxxxx>

John Stultz wrote:
> do_gettimeofday() { 99, 888....}
> get_seconds() { 99 }
> do_gettimeofday() { 99, 999....}
> get_seconds() { 99 }
> do_gettimeofday() { 100, 000....}
> get_seconds() { 99 }
> do_gettimeofday() { 100, 011....}
> get_seconds() { 100 }

That will be acceptable error for TOMOYO. Thank you.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/