Skip to content

Commit

Permalink
profiles: seccomp: fix !seccomp build
Browse files Browse the repository at this point in the history
Previously building with seccomp disabled would cause build failures
because of a mismatch in the type signatures of DefaultProfile().

Signed-off-by: Aleksa Sarai <[email protected]>
cyphar committed Mar 2, 2017

Verified

This commit was signed with the committer’s verified signature.
cyphar Aleksa Sarai
1 parent 3e561e4 commit a315574
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion profiles/seccomp/seccomp_unsupported.go
Original file line number Diff line number Diff line change
@@ -8,6 +8,6 @@ import (
)

// DefaultProfile returns a nil pointer on unsupported systems.
func DefaultProfile(rs *specs.Spec) *types.Seccomp {
func DefaultProfile() *types.Seccomp {
return nil
}

0 comments on commit a315574

Please sign in to comment.