Skip to content

Commit

Permalink
Merge pull request #7381 from baude/v2CIFix
Browse files Browse the repository at this point in the history
Fix v2.0.x CI
  • Loading branch information
openshift-merge-robot authored Aug 19, 2020
2 parents 1deb4d1 + c50d37b commit 9ac3a03
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 33 deletions.
5 changes: 5 additions & 0 deletions contrib/cirrus/lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,11 @@ install_test_configs() {
# by default in google cloud. https://cloud.google.com/vpc/docs/vpc#ip-ranges
install -v -D -m 644 $SCRIPT_BASE/99-do-not-use-google-subnets.conflist /etc/cni/net.d/
install -v -D -m 644 ./test/registries.conf /etc/containers/
# This needs to removed when we have a seccomp profile
# that works on ubuntu with runc
if [[ -f "seccomp.json" ]]; then
install -v -D -m 644 ./seccomp.json /usr/share/containers
fi
}

# Remove all files provided by the distro version of podman.
Expand Down
60 changes: 27 additions & 33 deletions seccomp.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,11 @@
"chmod",
"chown",
"chown32",
"clock_adjtime",
"clock_getres",
"clock_gettime",
"clock_nanosleep",
"clone",
"close",
"connect",
"copy_file_range",
Expand Down Expand Up @@ -167,6 +169,7 @@
"io_setup",
"io_submit",
"ipc",
"keyctl",
"kill",
"lchown",
"lchown32",
Expand Down Expand Up @@ -218,6 +221,7 @@
"pause",
"pipe",
"pipe2",
"pivot_root",
"poll",
"ppoll",
"prctl",
Expand Down Expand Up @@ -329,6 +333,7 @@
"sync_file_range",
"syncfs",
"sysinfo",
"syslog",
"tee",
"tgkill",
"time",
Expand Down Expand Up @@ -525,7 +530,8 @@
"names": [
"s390_pci_mmio_read",
"s390_pci_mmio_write",
"s390_runtime_instr"
"s390_runtime_instr",
"clone"
],
"action": "SCMP_ACT_ALLOW",
"args": [],
Expand Down Expand Up @@ -565,7 +571,6 @@
"setdomainname",
"sethostname",
"setns",
"syslog",
"umount",
"umount2",
"unshare"
Expand Down Expand Up @@ -676,6 +681,23 @@
},
"excludes": {}
},
{
"names": [
"get_mempolicy",
"mbind",
"name_to_handle_at",
"set_mempolicy"
],
"action": "SCMP_ACT_ALLOW",
"args": [],
"comment": "",
"includes": {
"caps": [
"CAP_SYS_NICE"
]
},
"excludes": {}
},
{
"names": [
"acct"
Expand Down Expand Up @@ -726,7 +748,9 @@
"names": [
"settimeofday",
"stime",
"clock_settime"
"clock_settime",
"clock_adjtime",
"adjtimex"
],
"action": "SCMP_ACT_ALLOW",
"args": [],
Expand All @@ -751,36 +775,6 @@
]
},
"excludes": {}
},
{
"names": [
"get_mempolicy",
"mbind",
"set_mempolicy"
],
"action": "SCMP_ACT_ALLOW",
"args": [],
"comment": "",
"includes": {
"caps": [
"CAP_SYS_NICE"
]
},
"excludes": {}
},
{
"names": [
"syslog"
],
"action": "SCMP_ACT_ALLOW",
"args": [],
"comment": "",
"includes": {
"caps": [
"CAP_SYSLOG"
]
},
"excludes": {}
}
]
}

0 comments on commit 9ac3a03

Please sign in to comment.