1
0
mirror of https://github.com/opencontainers/runtime-spec.git synced 2026-02-05 18:45:18 +01:00

1591 Commits

Author SHA1 Message Date
utam0k
36852b0d07 version: release v1.2.0
Signed-off-by: utam0k <k0ma@utam0k.jp>
v1.2.0
2024-01-26 21:55:39 +09:00
Akihiro Suda
68346ed538 Merge pull request #1197 from cyphar/image-spec-annotations
config: add support for org.opencontainers.image annotations
2023-12-03 10:37:04 +09:00
Akihiro Suda
99235413e0 Merge pull request #1224 from giuseppe/allow-empty-mapping-for-idmap
config.md: allow empty mappings for [r]idmap
2023-11-16 23:49:43 +09:00
Aleksa Sarai
cd10b85af8 merge #1205 into opencontainers/runtime-spec:main
Akihiro Suda (1):
  features: add potentiallyUnsafeConfigAnnotations

LGTMs: utam0k cyphar
2023-11-08 20:49:04 +11:00
Giuseppe Scrivano
021ba94151 config.md: allow empty mappings for [r]idmap
crun currently allows to specify an empty mapping for [r]idmap, and to
default to the mappings specified for the container user namespace.

Change the specifications to allow such behavior.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2023-10-24 10:59:12 +02:00
Akihiro Suda
5e98fec96d features: add potentiallyUnsafeConfigAnnotations
Fix issue 1202

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2023-10-22 22:43:23 +09:00
Qiang Huang
6331715093 Merge pull request #1233 from thaJeztah/go_kmem_deprecated
specs-go: mark LinuxMemory.Kernel as deprecated
2023-10-05 14:30:47 +08:00
Qiang Huang
ab2978519f Merge pull request #1232 from thaJeztah/go_prestarthook_deprecated
specs-go: add missing deprecation comment for Hooks.Prestart
2023-10-05 14:24:14 +08:00
Sebastiaan van Stijn
cabeea73c8 specs-go: mark LinuxMemory.Kernel as deprecated
Support for kernel-memory limits was deprecated in the kernel, and documented
as "NOT RECOMMENDED" (or "SHOULD NOT" use) in  v1.1.0-rc.1 through commit
f02cd4a427.

This patch marks the field as deprecated in the go implementation of the
spec, so that linters and editors produces a warning and consumers get
notified of its status.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2023-09-29 12:09:33 +02:00
Sebastiaan van Stijn
4005c81dd7 specs-go: add missing deprecation comment for Hooks.Prestart
Hooks.Prestart was deprecated in c1662686cf
(v1.0.2), but the field did not have a correctly formatted deprecation comment.

This patch updates the field's GoDoc to have a correctly formatted deprecation
comment, which will allow linters and IDEs to detect the deprecation status
of this feature.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2023-09-29 12:02:26 +02:00
Tianon Gravi
c0e90434df Merge pull request #1228 from kolyshkin/bind-mount
config: improve bind mount and propagation doc
2023-09-22 08:30:23 -07:00
Kir Kolyshkin
2f6b09003c config: improve bind mount and propagation doc
Current documentation talks about bind/rbind and various propagation
flags (shared, slave, private, unbindable etc.) as being filesystem-
specific options, and refers to mount(8) section describing
filesystem-specific options.

That is wrong, because bind mounts are a separate class of mounts,
not related to file systems.

Fix the confusion, and link to sharedsubtree.txt kernel document
as it happens to be the best source of information about the topic
(not counting the kernel sources).

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2023-09-21 15:02:14 -07:00
Tianon Gravi
989e5757e7 Merge pull request #1226 from amghazanfari/main
fix link to hooks in features
2023-09-14 08:23:31 -07:00
Andrew M. Ghazanfari
0ec4e6bbe7 fix link to hooks in features
Signed-off-by: Andrew M. Ghazanfari <a.m.ghazanfari76@gmail.com>
2023-09-14 18:14:45 +03:30
Tianon Gravi
418fb47fdc Merge pull request #1225 from kinvolk/rata/mount-rel-path
mount: Allow relative mount destinations on Linux
2023-09-09 21:07:17 -07:00
Rodrigo Campos
6ffddf6451 mount: Allow relative mount destinations on Linux
We tried to make runc enforce abs dest path several times, and always
had to revert it due to some tools not yet doing it. The last occurrence
is this one:
	https://github.com/opencontainers/runc/issues/3944#issuecomment-1669261383

I don't see any reason to force abs dst paths on Linux, as far as I know
there is no security bug nor anything. Let's just relax the spec
wording, matching all the runtimes behavior when the paths is relative,
and be done with it.

Signed-off-by: Rodrigo Campos <rodrigoca@microsoft.com>
2023-09-08 12:36:35 +02:00
Toru Komatsu
305605aedd Merge pull request #1222 from cyphar/idmap-flag
config: add idmap and ridmap mount options
2023-08-25 21:35:43 +09:00
Aleksa Sarai
4fec88fd00 merge #1219 into main
Rodrigo Campos (1):
  features-linux: Expose idmap information

LGTMs: guiseppe AkihiroSuda cyphar
Closes #1219
2023-08-23 23:51:40 +10:00
Rodrigo Campos
f329913c57 features-linux: Expose idmap information
High level container runtimes sometimes need to know if the OCI runtime
supports idmap mounts or not, as the OCI runtime silently ignores
unknown fields.

This means that if it doesn't support idmap mounts, a container with
userns will be started, without idmap mounts, and the files created on
the volumes will have a "garbage" owner/group. Furthermore, as the
userns mapping is not guaranteed to be stable over time, it will be
completely unusable.

Let's expose idmap support in the features subcommand, so high level
container runtimes use the feature safely.

Signed-off-by: Rodrigo Campos <rodrigoca@microsoft.com>
2023-08-23 15:38:52 +02:00
Aleksa Sarai
7b8eb69836 config: add reference to mount_setattr(2) for idmapped mounts
The idmapped mounts sections do not make any reference to how the
mapping should be implemented. Add a reference to MOUNT_ATTR_IDMAP since
that is what runtimes are expected to use.

Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
2023-08-23 02:08:22 +10:00
Aleksa Sarai
2547bb0235 config: add idmap and ridmap mount options
Adding new fields for MOUNT_ATTR_IDMAP had the flaw that users
specifying these fields with older runtimes would result in the fields
being ignored and incorrect mounts being configured. In addition, there
is no text in the specification indicating whether MOUNT_ATTR_IDMAP
should be applied with AT_RECURSIVE (which matters for rbind idmapped
mounts).

In retrospect, the addition of the fields should've included new (dummy)
mount options that would cause errors on older runtimes. Unfortunately,
we have had a runtime-spec release since then so we cannot MUST these
new mount options, but we can SHOULD them.

Fixes: 9d1130dc3b ("IDMapping field for mount point")
Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
2023-08-23 02:08:21 +10:00
Akihiro Suda
e8c413418e Merge pull request #1213 from AkihiroSuda/propose-v1.1.0
Release v1.1.0
2023-07-22 12:40:19 +09:00
Akihiro Suda
3f552ce17e version: release v1.1.0+dev
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2023-06-28 22:32:16 +09:00
Akihiro Suda
06252546d1 version: release v1.1.0
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
v1.1.0
2023-06-28 22:32:16 +09:00
Akihiro Suda
d56ba70811 ChangeLog: squash v1.1.0-rc.1...v1.1.0
Co-Authored-By: H. Vetinari <h.vetinari@gmx.com>
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2023-06-28 22:32:16 +09:00
Akihiro Suda
5430e36750 ChangeLog: Document changes since v1.1.0-rc.3
Through 07dd1f4141 (2023-06-23)

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2023-06-26 04:56:55 +09:00
Giuseppe Scrivano
07dd1f4141 Merge pull request #1210 from AkihiroSuda/update-readme-chat
README.md: update chat information
2023-06-23 18:01:20 +02:00
Giuseppe Scrivano
db5c1c0b2f Merge pull request #1211 from AkihiroSuda/remove-meeting-ics
Remove outdated meeting.ics
2023-06-23 18:00:14 +02:00
Toru Komatsu
da13364b70 Merge pull request #1212 from AkihiroSuda/features-annotations-avoid-confusion
features.md: add a note to avoid confusion about annotations
2023-06-23 23:31:13 +09:00
Akihiro Suda
2bd22fa556 features.md: add a note to avoid confusion about annotations
The "annotations" property in features.md is not expected to
enumerate the possible values of the "annotation" property in config.md.

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2023-06-23 21:14:44 +09:00
Akihiro Suda
5612d21a05 Remove outdated meeting.ics
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2023-06-23 21:10:58 +09:00
Akihiro Suda
085728af89 README.md: update chat information
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2023-06-23 13:44:38 +09:00
Akihiro Suda
48415de180 Merge pull request #1208 from AkihiroSuda/propose-v1.1.0-rc.3
Release v1.1.0-rc.3
2023-06-10 16:31:35 +09:00
Akihiro Suda
8b4cadd2ae version: v1.1.0-rc.3+dev
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2023-05-22 23:13:49 +09:00
Akihiro Suda
ae35e390d3 version: release v1.1.0-rc.3
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
v1.1.0-rc.3
2023-05-22 23:13:49 +09:00
Akihiro Suda
d8be1e33bc ChangeLog: Document changes since v1.1.0-rc.2
Through 720792f25a (2023-05-22)

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2023-05-22 23:13:49 +09:00
Akihiro Suda
720792f25a Merge pull request #1207 from utam0k/codeowner-utam0k
CODEOWNER: Add Toru Komatsu(@utam0) to sync with MAINTAINERS
2023-05-22 22:43:10 +09:00
utam0k
1beaf684cb CODEOWNER: Add Toru Komatsu(@utam0) to sync with MAINTAINERS
Signed-off-by: utam0k <k0ma@utam0k.jp>
2023-05-22 13:15:08 +00:00
Toru Komatsu
55ae2744e3 Merge pull request #1206 from giuseppe/fix-definition-io-priority
schema: fix definition for ioPriority
2023-05-22 22:11:24 +09:00
Giuseppe Scrivano
d46c8b28bb schema: fix definition for ioPriority
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2023-05-22 14:53:06 +02:00
Toru Komatsu
9447d3c4f9 Merge pull request #1198 from cyphar/release-dev-suffix
releases: use +dev as in-development suffix
2023-05-22 21:33:59 +09:00
Akihiro Suda
8e0dce84f7 Merge pull request #1191 from utam0k/io-prio
Add I/O Priority Configuration for process group in Linux Containers
2023-05-22 20:13:49 +09:00
utam0k
504f70ef81 Add I/O Priority Configuration for Process Group in Linux Containers
Signed-off-by: utam0k <k0ma@utam0k.jp>
2023-05-19 10:24:58 +00:00
Akihiro Suda
7529d1078c Merge pull request #1201 from AkihiroSuda/maintainers-add-utam0k
MAINTAINERS: add Toru Komatsu (utam0k)
2023-05-19 09:32:46 +09:00
Sebastiaan van Stijn
2937ddd383 Merge pull request #1203 from AkihiroSuda/glossary-features
glossary: s/features document/Features structure/g
2023-05-17 09:07:04 +01:00
Akihiro Suda
5c87a1ce57 Merge pull request #1204 from AkihiroSuda/features-example-202305
features: update Example
2023-05-17 16:41:44 +09:00
Akihiro Suda
05563eac88 features: update Example
The previous example was using an invalid value of `ociVersionMax`.

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2023-05-16 19:52:22 +09:00
Akihiro Suda
d89ef1e610 glossary: s/features document/Features structure/g
Because "document" sounds like a human-readable document

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2023-05-16 19:49:40 +09:00
Akihiro Suda
0983f1d9e0 Merge pull request #1188 from giuseppe/add-scheduler
spec: add scheduler entity
2023-05-11 17:58:24 +09:00
Akihiro Suda
39bd2ef9df MAINTAINERS: add Toru Komatsu (utam0k)
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2023-05-01 20:21:23 +09:00