Skip to content

Commit

Permalink
Fix critest
Browse files Browse the repository at this point in the history
Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
  • Loading branch information
saschagrunert committed Feb 7, 2022
1 parent 2b7708c commit 4a78504
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions contrib/test/integration/critest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
[crio.runtime]
cgroup_manager = "cgroupfs"
conmon_cgroup = "pod"
seccomp_use_default_when_empty = false
- name: enable and start CRI-O
systemd:
Expand Down
2 changes: 1 addition & 1 deletion internal/config/seccomp/seccomp.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func (c *Config) LoadProfile(profilePath string) error {
c.profile.DefaultAction = seccomp.ActAllow
c.profile.DefaultErrnoRet = nil
c.profile.Syscalls = []*seccomp.Syscall{
&seccomp.Syscall{
{
Names: []string{
"bpf",
"clone",
Expand Down
4 changes: 2 additions & 2 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -777,11 +777,11 @@ func DefaultConfig() (*Config, error) {
seccompConfig: seccompConfig,
apparmorConfig: apparmor.New(),
blockioConfig: blockio.New(),
rdtConfig: rdt.New(),
ulimitsConfig: ulimits.New(),
cgroupManager: cgroupManager,
deviceConfig: device.New(),
namespaceManager: nsmgr.New(defaultNamespacesDir, ""),
rdtConfig: rdt.New(),
ulimitsConfig: ulimits.New(),
},
ImageConfig: ImageConfig{
DefaultTransport: "docker://",
Expand Down
1 change: 1 addition & 0 deletions test/critest.bats
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ function setup() {
skip "critest because RUN_CRITEST is not set"
fi

export CONTAINER_SECCOMP_USE_DEFAULT_WHEN_EMPTY=false
setup_test
start_crio
}
Expand Down

0 comments on commit 4a78504

Please sign in to comment.