diff options
author | 2022-08-09 11:11:09 -0600 | |
---|---|---|
committer | 2022-08-09 22:28:48 +0200 | |
commit | d020b2360b350b9f91b1769f9c84fe2d22f643db (patch) | |
tree | 1c8bcb70c1312739b783d6ee673bbbc3dd695925 /lib/memory-notifier-error-inject.c | |
parent | bpf: Always return corresponding btf_type in __get_type_size() (diff) | |
download | linux-rng-d020b2360b350b9f91b1769f9c84fe2d22f643db.tar.xz linux-rng-d020b2360b350b9f91b1769f9c84fe2d22f643db.zip |
selftests/bpf: Fix vmtest.sh -h to not require root
Set the exit trap only after argument parsing is done. This way argument
parse failure or `-h` will not require sudo.
Reasoning is that it's confusing that a help message would require root
access.
Signed-off-by: Daniel Xu <dxu@dxuuu.xyz>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Daniel Müller <deso@posteo.net>
Link: https://lore.kernel.org/bpf/6a802aa37758e5a7e6aa5de294634f5518005e2b.1660064925.git.dxu@dxuuu.xyz
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions