Commit fbc5d38
committed
selftests/seccomp: Handle arm32 corner cases better
It turns out arm32 doesn't handle syscall -1 gracefully, so skip testing
for that. Additionally skip tests that depend on clone3 when it is not
available (for example when building the seccomp selftests on an old arm
image without clone3 headers). And improve error reporting for when
nanosleep fails, as seen on arm32 since v5.15.
Cc: Lecopzer Chen <lecopzer.chen@mediatek.com>
Signed-off-by: Kees Cook <keescook@chromium.org>1 parent 7d5cb68 commit fbc5d38
1 file changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2184 | 2184 | | |
2185 | 2185 | | |
2186 | 2186 | | |
| 2187 | + | |
| 2188 | + | |
| 2189 | + | |
2187 | 2190 | | |
2188 | 2191 | | |
2189 | 2192 | | |
| |||
3072 | 3075 | | |
3073 | 3076 | | |
3074 | 3077 | | |
3075 | | - | |
| 3078 | + | |
| 3079 | + | |
3076 | 3080 | | |
3077 | 3081 | | |
3078 | 3082 | | |
| |||
3908 | 3912 | | |
3909 | 3913 | | |
3910 | 3914 | | |
| 3915 | + | |
| 3916 | + | |
| 3917 | + | |
3911 | 3918 | | |
3912 | 3919 | | |
3913 | 3920 | | |
| |||
3962 | 3969 | | |
3963 | 3970 | | |
3964 | 3971 | | |
| 3972 | + | |
| 3973 | + | |
| 3974 | + | |
3965 | 3975 | | |
3966 | 3976 | | |
3967 | 3977 | | |
| |||
0 commit comments