leaking_addresses: add timeout on file read
authorTobin C. Harding <me@tobin.cc>
Thu, 9 Nov 2017 04:37:06 +0000 (15:37 +1100)
committerTobin C. Harding <me@tobin.cc>
Mon, 13 Nov 2017 22:29:27 +0000 (09:29 +1100)
commitdd98c252aea2a3dcd4014cb71bcdf9588519b800
tree3e093f8ab931482bbc2b29130021e53604e61e68
parent62139c1242b573cb647776e3abc503a69fbd2c08
leaking_addresses: add timeout on file read

Currently script can stall if we read certain files (like
/proc/kmsg). While we have a mechanism to skip these files once they are
discovered it would be nice to not stall on as yet undiscovered files of
this kind.

Set a timer before each file is parsed, warn user if timer expires.

Suggested-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Tobin C. Harding <me@tobin.cc>
scripts/leaking_addresses.pl