Skip to content

Commit 109a7a0

Browse files
Merge pull request #4203 from opencontainers/dependabot/go_modules/github.com/opencontainers/runtime-spec-1.2.0
2 parents ee71008 + 606251a commit 109a7a0

File tree

9 files changed

+32
-15
lines changed

9 files changed

+32
-15
lines changed

docs/spec-conformance.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
# Spec conformance
22

3-
This branch of runc implements the [OCI Runtime Spec v1.1.0](https://github.com/opencontainers/runtime-spec/tree/v1.1.0)
3+
This branch of runc implements the [OCI Runtime Spec v1.2.0](https://github.com/opencontainers/runtime-spec/tree/v1.2.0)
44
for the `linux` platform.
55

66
The following features are not implemented yet:
77

8-
Spec version | Feature | PR
9-
-------------|------------------------------------------|----------------------------------------------------------
10-
v1.1.0 | `SECCOMP_FILTER_FLAG_WAIT_KILLABLE_RECV` | [#3862](https://github.com/opencontainers/runc/pull/3862)
11-
v1.1.0 | `.process.ioPriority` | [#3783](https://github.com/opencontainers/runc/pull/3783)
8+
Spec version | Feature | PR
9+
-------------|------------------------------------------------|----------------------------------------------------------
10+
v1.1.0 | `SECCOMP_FILTER_FLAG_WAIT_KILLABLE_RECV` | [#3862](https://github.com/opencontainers/runc/pull/3862)
11+
v1.1.0 | `.process.ioPriority` | [#3783](https://github.com/opencontainers/runc/pull/3783)
12+
v1.2.0 | Features: `potentiallyUnsafeConfigAnnotations` | TODO
1213

1314
## Architectures
1415

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ require (
1313
github.com/moby/sys/mountinfo v0.7.1
1414
github.com/moby/sys/user v0.1.0
1515
github.com/mrunalp/fileutils v0.5.1
16-
github.com/opencontainers/runtime-spec v1.1.1-0.20230823135140-4fec88fd00a4
16+
github.com/opencontainers/runtime-spec v1.2.0
1717
github.com/opencontainers/selinux v1.11.0
1818
github.com/seccomp/libseccomp-golang v0.10.0
1919
github.com/sirupsen/logrus v1.9.3

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ github.com/moby/sys/user v0.1.0 h1:WmZ93f5Ux6het5iituh9x2zAG7NFY9Aqi49jjE1PaQg=
3232
github.com/moby/sys/user v0.1.0/go.mod h1:fKJhFOnsCN6xZ5gSfbM6zaHGgDJMrqt9/reuj4T7MmU=
3333
github.com/mrunalp/fileutils v0.5.1 h1:F+S7ZlNKnrwHfSwdlgNSkKo67ReVf8o9fel6C3dkm/Q=
3434
github.com/mrunalp/fileutils v0.5.1/go.mod h1:M1WthSahJixYnrXQl/DFQuteStB1weuxD2QJNHXfbSQ=
35-
github.com/opencontainers/runtime-spec v1.1.1-0.20230823135140-4fec88fd00a4 h1:EctkgBjZ1y4q+sibyuuIgiKpa0QSd2elFtSSdNvBVow=
36-
github.com/opencontainers/runtime-spec v1.1.1-0.20230823135140-4fec88fd00a4/go.mod h1:jwyrGlmzljRJv/Fgzds9SsS/C5hL+LL3ko9hs6T5lQ0=
35+
github.com/opencontainers/runtime-spec v1.2.0 h1:z97+pHb3uELt/yiAWD691HNHQIF07bE7dzrbT927iTk=
36+
github.com/opencontainers/runtime-spec v1.2.0/go.mod h1:jwyrGlmzljRJv/Fgzds9SsS/C5hL+LL3ko9hs6T5lQ0=
3737
github.com/opencontainers/selinux v1.11.0 h1:+5Zbo97w3Lbmb3PeqQtpmTkMwsW5nRI3YaLpt7tQ7oU=
3838
github.com/opencontainers/selinux v1.11.0/go.mod h1:E5dMC3VPuVvVHDYmi78qvhJp8+M586T4DlDRYpFkyec=
3939
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=

libcontainer/specconv/spec_linux.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -791,7 +791,7 @@ func CreateCgroupConfig(opts *CreateOpts, defaultDevs []*devices.Device) (*confi
791791
if r.Memory.Swap != nil {
792792
c.Resources.MemorySwap = *r.Memory.Swap
793793
}
794-
if r.Memory.Kernel != nil || r.Memory.KernelTCP != nil {
794+
if r.Memory.Kernel != nil || r.Memory.KernelTCP != nil { //nolint:staticcheck // Ignore SA1019. Need to keep deprecated package for compatibility.
795795
logrus.Warn("Kernel memory settings are ignored and will be removed")
796796
}
797797
if r.Memory.Swappiness != nil {
@@ -1207,7 +1207,7 @@ func SetupSeccomp(config *specs.LinuxSeccomp) (*configs.Seccomp, error) {
12071207
func createHooks(rspec *specs.Spec, config *configs.Config) {
12081208
config.Hooks = configs.Hooks{}
12091209
if rspec.Hooks != nil {
1210-
for _, h := range rspec.Hooks.Prestart {
1210+
for _, h := range rspec.Hooks.Prestart { //nolint:staticcheck // Ignore SA1019. Need to keep deprecated package for compatibility.
12111211
cmd := createCommandHook(h)
12121212
config.Hooks[configs.Prestart] = append(config.Hooks[configs.Prestart], configs.NewCommandHook(cmd))
12131213
}

update.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ other options are ignored.
250250
}{
251251
{"memory", r.Memory.Limit},
252252
{"memory-swap", r.Memory.Swap},
253-
{"kernel-memory", r.Memory.Kernel},
253+
{"kernel-memory", r.Memory.Kernel}, //nolint:staticcheck // Ignore SA1019. Need to keep deprecated package for compatibility.
254254
{"kernel-memory-tcp", r.Memory.KernelTCP},
255255
{"memory-reservation", r.Memory.Reservation},
256256
} {
@@ -272,7 +272,7 @@ other options are ignored.
272272
r.Pids.Limit = int64(context.Int("pids-limit"))
273273
}
274274

275-
if *r.Memory.Kernel != 0 || *r.Memory.KernelTCP != 0 {
275+
if *r.Memory.Kernel != 0 || *r.Memory.KernelTCP != 0 { //nolint:staticcheck // Ignore SA1019. Need to keep deprecated package for compatibility.
276276
logrus.Warn("Kernel memory settings are ignored and will be removed")
277277
}
278278

vendor/github.com/opencontainers/runtime-spec/specs-go/config.go

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/opencontainers/runtime-spec/specs-go/features/features.go

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/opencontainers/runtime-spec/specs-go/version.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/modules.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ github.com/moby/sys/user
4242
# github.com/mrunalp/fileutils v0.5.1
4343
## explicit; go 1.13
4444
github.com/mrunalp/fileutils
45-
# github.com/opencontainers/runtime-spec v1.1.1-0.20230823135140-4fec88fd00a4
45+
# github.com/opencontainers/runtime-spec v1.2.0
4646
## explicit
4747
github.com/opencontainers/runtime-spec/specs-go
4848
github.com/opencontainers/runtime-spec/specs-go/features

0 commit comments

Comments
 (0)