You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As reported in [1], the test fails on ppc64le since getpid(2) is
not supposed to ever return an error, and somehow glibc relies on
that assumption, and returns a positive value of error set by
the seccomp rule from its getpid(2) wrapper. This makes the test fail.
While seccomp_rule_add(3) man page was amended to note that behavior
in [2], the test case here was never fixed so it always fails on ppc.
Fix it by replacing getpid(2) with close(2). Make some other cosmetic
changes while at it.
The test case was tested to fail (when the corresponding FilterAddRule
call is commented out):
> seccomp_test.go:647: Syscall listen: want no space left on device, got socket operation on non-socket
[1] #61
[2] seccomp/libseccomp#333
Signed-off-by: Kir Kolyshkin <[email protected]>
Acked-by: Tom Hromatka <[email protected]>
Signed-off-by: Paul Moore <[email protected]>
0 commit comments