[SRU][F][PATCH 0/1] Fix storage size of ‘md’ isn’t known issue in selftests/seccomp for B/5.4
Luke Nowakowski-Krijger
luke.nowakowskikrijger at canonical.com
Tue Oct 26 17:19:08 UTC 2021
BugLink: https://bugs.launchpad.net/bugs/1896420
[Impact]
Test fails to build in selftests/seccomp/seccomp_bpf.c with
'error: storage size of ‘md’ isn’t known' due to the type
struct seccomp_metadata not being defined for B/5.4 kernels.
[Test case]
Test successfully builds and test cases pass both on Bionic/5.4 and on Focal
[Fixes]
Unconditionally define struct seccomp_metadata.
Remove linux/ptrace.h where a definition of seccomp_metadata is already being
defined in Focal.
[Potential regression]
There could be future build failures if glibc headers get updated to
include definitions of struct seccomp_metadata or if linux/ptrace.h gets updated
to include needed definitions.
Luke Nowakowski-Krijger (1):
UBUNTU: SAUCE: selftests/seccomp: fix 'storage size of ‘md’ isn’t
known' build issue
tools/testing/selftests/seccomp/seccomp_bpf.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
--
2.32.0
More information about the kernel-team
mailing list