Revert "UBUNTU: SAUCE: selftests/seccomp: fix check of fds being assigned"
BugLink: https://bugs.launchpad.net/bugs/2070337
This reverts commit 1cc7fe1936.
The issue seems to be fixed in a more complete fashion by upstream
commit 8e3c9f9f3a0742cd12b682a1766674253b33fcf0. Revert our SAUCE patch
and apply the upstream commit that comes with upstream stable update
v6.8.9.
Signed-off-by: Manuel Diewald <manuel.diewald@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
This commit is contained in:
committed by
Stefan Bader
parent
64ef06056f
commit
2750572ae2
@@ -4053,17 +4053,18 @@ TEST(user_notification_addfd)
|
||||
/* There may be arbitrary already-open fds at test start. */
|
||||
memfd = memfd_create("test", 0);
|
||||
ASSERT_GE(memfd, 0);
|
||||
nextfd = memfd + 1;
|
||||
|
||||
ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
|
||||
ASSERT_EQ(0, ret) {
|
||||
TH_LOG("Kernel does not support PR_SET_NO_NEW_PRIVS!");
|
||||
}
|
||||
|
||||
/* fd: 4 */
|
||||
/* Check that the basic notification machinery works */
|
||||
listener = user_notif_syscall(__NR_getppid,
|
||||
SECCOMP_FILTER_FLAG_NEW_LISTENER);
|
||||
ASSERT_GE(listener, 0);
|
||||
nextfd = listener + 1;
|
||||
ASSERT_EQ(listener, nextfd++);
|
||||
|
||||
pid = fork();
|
||||
ASSERT_GE(pid, 0);
|
||||
|
||||
Reference in New Issue
Block a user