From 861d55d0c31927e452b998d8fa784b10b73047f0 Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Fri, 23 Jul 2021 16:50:10 -0700 Subject: [PATCH] pkg/seccomp: avoid DefaultErrnoRet: null This prevents "defaultErrnoRet": null, from appearing in seccomp.json. This member is similar to ErrnoRet in type Syscall, and should also be marked with omitempty. Fixes: adee333df76c02d99c740c Signed-off-by: Kir Kolyshkin --- pkg/seccomp/types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/seccomp/types.go b/pkg/seccomp/types.go index 36712458a..07751f729 100644 --- a/pkg/seccomp/types.go +++ b/pkg/seccomp/types.go @@ -7,7 +7,7 @@ package seccomp // Seccomp represents the config for a seccomp profile for syscall restriction. type Seccomp struct { DefaultAction Action `json:"defaultAction"` - DefaultErrnoRet *uint `json:"defaultErrnoRet"` + DefaultErrnoRet *uint `json:"defaultErrnoRet,omitempty"` // Architectures is kept to maintain backward compatibility with the old // seccomp profile. Architectures []Arch `json:"architectures,omitempty"`