aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/recvmsg_unix_prog.c
diff options
context:
space:
mode:
authorIan Rogers <[email protected]>2024-02-20 19:41:53 -0800
committerNamhyung Kim <[email protected]>2024-02-22 09:12:53 -0800
commitf3295f5b067d3c2655f0b2cd14d0b91b83ca41eb (patch)
tree94cd88d1bfc40af8ff7e60df05594263b6ab081b /tools/testing/selftests/bpf/progs/recvmsg_unix_prog.c
parentd5bcade989a86caa4314aa91d6d3f652e8a82fe5 (diff)
perf tests: Use scandirat for shell script finding
Avoid filename appending buffers by using openat, faccessat and scandirat more widely. Turn the script's path back to a file name using readlink from /proc/<pid>/fd/<fd>. Read the script's description using api/io.h to avoid fdopen conversions. Whilst reading perform additional sanity checks on the script's contents. Signed-off-by: Ian Rogers <[email protected]> Cc: James Clark <[email protected]> Cc: Justin Stitt <[email protected]> Cc: Bill Wendling <[email protected]> Cc: Nick Desaulniers <[email protected]> Cc: Yang Jihong <[email protected]> Cc: Nathan Chancellor <[email protected]> Cc: Kan Liang <[email protected]> Cc: Athira Jajeev <[email protected]> Cc: [email protected] Signed-off-by: Namhyung Kim <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/progs/recvmsg_unix_prog.c')
0 files changed, 0 insertions, 0 deletions