Skip to content
Commit 93e720d7 authored by Kees Cook's avatar Kees Cook
Browse files

selftests/seccomp: More closely track fds being assigned



Since the open fds might not always start at "4" (especially when
running under kselftest, etc), start counting from the first assigned
fd, rather than using the more permissive EXPECT_GE(fd, 0).

Signed-off-by: default avatarKees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/lkml/20210527032948.3730953-1-keescook@chromium.org


Reviewed-by: default avatarRodrigo Campos <rodrigo@kinvolk.io>
Acked-by: default avatarChristian Brauner <christian.brauner@ubuntu.com>
parent e540ad97
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment