leaking_addresses: Ignore input device status lines
authorKees Cook <keescook@chromium.org>
Thu, 22 Feb 2024 22:00:50 +0000 (14:00 -0800)
committerKees Cook <keescook@chromium.org>
Thu, 29 Feb 2024 21:38:03 +0000 (13:38 -0800)
commit3e389d457badb1dc07f9fb3197bd7cb5c2833e36
tree30f18a4cbaadb41efbc7487ad224d3d827d8b60d
parent1b1bcbf454f8e422c1e8e36bb21d726c39833576
leaking_addresses: Ignore input device status lines

These are false positives from the input subsystem:

/proc/bus/input/devices: B: KEY=402000000 3803078f800d001 feffffdfffefffff fffffffffffffffe
/sys/devices/platform/i8042/serio0/input/input1/uevent: KEY=402000000 3803078f800d001 feffffdfffefffff fffffffffffffffe
/sys/devices/platform/i8042/serio0/input/input1/capabilities/key: 402000000 3803078f800d001 feffffdf

Pass in the filename for more context and expand the "ignored pattern"
matcher to notice these.

Reviewed-by: Tycho Andersen <tandersen@netflix.com>
Link: https://lore.kernel.org/r/20240222220053.1475824-3-keescook@chromium.org
Signed-off-by: Kees Cook <keescook@chromium.org>
scripts/leaking_addresses.pl