vendor: bump c/common to v0.56.1-0.20231002091908-745eaa498509

Signed-off-by: Aditya R <arajan@redhat.com>
This commit is contained in:
Aditya R
2023-10-03 11:02:02 +05:30
parent fdf3e4b23d
commit 1ebd223039
6 changed files with 13 additions and 13 deletions

View File

@ -323,7 +323,7 @@ func createEnvCacheMap(env []string) map[string]int {
//
// Deprecated: Replace with:
//
// Use generator.Config = config
// Use generator.Config = config
func (g *Generator) SetSpec(config *rspec.Spec) {
g.Config = config
}

View File

@ -23,8 +23,10 @@ type SyscallOpts struct {
func ParseSyscallFlag(args SyscallOpts, config *rspec.LinuxSeccomp) error {
var arguments []string
if args.Index != "" && args.Value != "" && args.ValueTwo != "" && args.Operator != "" {
arguments = []string{args.Action, args.Syscall, args.Index, args.Value,
args.ValueTwo, args.Operator}
arguments = []string{
args.Action, args.Syscall, args.Index, args.Value,
args.ValueTwo, args.Operator,
}
} else {
arguments = []string{args.Action, args.Syscall}
}

View File

@ -32,7 +32,6 @@ func arches() []rspec.Arch {
// DefaultProfile defines the whitelist for the default seccomp profile.
func DefaultProfile(rs *specs.Spec) *rspec.LinuxSeccomp {
syscalls := []rspec.LinuxSyscall{
{
Names: []string{
@ -535,7 +534,6 @@ func DefaultProfile(rs *specs.Spec) *rspec.LinuxSeccomp {
},
},
}...)
}
arch := runtime.GOARCH