CHROMIUM: security: alt-syscall: Rate limit warnings

Rate limit the prints indicating that a syscall was denied. Without this
the prints from mis-behaving apps can flood the logs and slow down the
system.

BUG=781388
TEST=run screen in gnuroot

Change-Id: Ib9b6b9d76c2551ea77e044b32d04598d8f5c2fed
Signed-off-by: Dylan Reid <dgreid@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/757976
Reviewed-by: Guenter Roeck <groeck@chromium.org>
(cherry picked from commit 4504127816cb8b22a668c054170161422cb0679c)
Reviewed-on: https://chromium-review.googlesource.com/762131
1 file changed