Commit e0c0840
selftests/seccomp: Accept any valid fd in user_notification_addfd
This test expects fds to have specific values, which works fine
when the test is run standalone. However, the kselftest runner
consumes a couple of extra fds for redirection when running
tests, so the test fails when run via kselftest.
Change the test to pass on any valid fd number.
Signed-off-by: Seth Forshee <[email protected]>
Acked-by: Shuah Khan <[email protected]>
Acked-by: Kees Cook <[email protected]>
Signed-off-by: Shuah Khan <[email protected]>1 parent 1602a31 commit e0c0840
1 file changed
+2
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4019 | 4019 | | |
4020 | 4020 | | |
4021 | 4021 | | |
4022 | | - | |
4023 | | - | |
4024 | | - | |
4025 | | - | |
4026 | | - | |
| 4022 | + | |
4027 | 4023 | | |
4028 | 4024 | | |
4029 | 4025 | | |
4030 | 4026 | | |
4031 | 4027 | | |
4032 | 4028 | | |
4033 | | - | |
| 4029 | + | |
4034 | 4030 | | |
4035 | 4031 | | |
4036 | 4032 | | |
| |||
0 commit comments