diff options
author | Terry Tritton <terry.tritton@linaro.org> | 2024-01-24 14:13:57 +0000 |
---|---|---|
committer | mdb:android-git <superproject-auto-update@invalid> | 2024-04-24 16:37:29 +0000 |
commit | ffce5df6b0d48b34ce91480b403c6f0533953504 (patch) | |
tree | 9a900121ffce2856b24666c7a5d3b746f2650eea | |
parent | 1623574fb16f0154c1f98b2b0b8b857d940bd87b (diff) | |
download | superproject-ffce5df6b0d48b34ce91480b403c6f0533953504.tar.gz |
UPSTREAM: selftests/seccomp: user_notification_addfd check nextfd is available
Currently the user_notification_addfd test checks what the next expected
file descriptor will be by incrementing a variable nextfd. This does not
account for file descriptors that may already be open before the test is
started and will cause the test to fail if any exist.
Replace nextfd++ with a function get_next_fd which will check and return
the next available file descriptor.
Change-Id: If8e101d45084b86b130e9678660965809e129aad
Signed-off-by: Terry Tritton <terry.tritton@linaro.org>
Link: https://lore.kernel.org/r/20240124141357.1243457-4-terry.tritton@linaro.org
Signed-off-by: Kees Cook <keescook@chromium.org>
(cherry picked from commit 8e3c9f9f3a0742cd12b682a1766674253b33fcf0)
Signed-off-by: Edward Liaw <edliaw@google.com>
m--------- | common-mainline | 0 |
1 files changed, 0 insertions, 0 deletions
diff --git a/common-mainline b/common-mainline -Subproject 3e946bd68dffd8c0e5f85ca3c921027ed705f2f +Subproject e2ab7877165339f30b287ff8a62b5969eeba9b0 |