Commit Graph
15 Commits
Author SHA1 Message Date
Jordan Liggitt b824ddc0b5 Handle []byte envvar value
Signed-off-by: Jordan Liggitt <liggitt@google.com>
2026-07-23 10:39:48 -04:00
Arjun Yogidas 970b5d46bc Fix TestCgroupNamespace failure on cgroups v1 hosts
Signed-off-by: Arjun Yogidas <arjunry@amazon.com>
2026-04-16 18:39:32 +00:00
HirazawaUi 7d7c56357a add unit tests
Signed-off-by: HirazawaUi <695097494plus@gmail.com>
2026-03-30 09:01:49 -05:00
Chris Henzie e15141a1fd Move cgroup namespace placement higher in spec builder
Moves cgroup namespace addition logic higher in buildLinuxSpec so it
runs before any custom spec adjusters (such as WithMounts).

This is necessary because subsequent spec adjusters may want to inspect
the set of namespaces to make decisions (e.g., configuring mount options
based on whether or not they are shared with the host).

Signed-off-by: Chris Henzie <chrishenzie@gmail.com>
2026-03-10 17:22:28 -07:00
Maksym Pavlenko 253fbe756a Cleanup unit tests
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2026-01-06 10:52:49 -08:00
Jin Dong 71958731e8 move security profile to cri/sputil pkg
Signed-off-by: Jin Dong <djdongjin95@gmail.com>
2025-02-20 19:15:58 +00:00
Jin Dong 222308416c Remove noinline in apparmor SpecOpts
Signed-off-by: Jin Dong <djdongjin95@gmail.com>
2025-01-17 12:29:56 -07:00
Jin Dong 2a4164ac86 Remove noinline in seccomp SpecOpts
Signed-off-by: Jin Dong <djdongjin95@gmail.com>
2025-01-17 12:29:56 -07:00
Austin Vazquez bee64b2b93 Remove loop variable copies
Signed-off-by: Austin Vazquez <macedonv@amazon.com>
2024-12-23 23:14:49 -07:00
Akihiro Suda 6f3833f258 CRI: remove disable_cgroup
`disable_cgroup` was implemenetd in containerd/cri PR 970 (Nov 2018)
for supporting very early version of Usernetes on cgroup v1 hosts,
when most distros were still not ready to support cgroup v2.

This configuration is no longer needed, as cgroup v2 delegation is
now supported on almost all distros.

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2024-08-15 06:08:30 +09:00
Shingo Omura 8bcffa9446 KEP-3619: Fine grained SupplementalGroups control
Signed-off-by: Shingo Omura <everpeace@gmail.com>
2024-06-12 09:10:40 +09:00
Evan Lezar 1b62224181 Bump tags.cncf.io/container-device-interface to v0.7.1
This includes migrating from cdi.GetRegistry() to cdi.Configure() and
using top-level cdi Refresh and InjectDevices functions as applicable.

Signed-off-by: Evan Lezar <elezar@nvidia.com>
2024-04-10 15:25:11 +02:00
Akihiro Suda 9077d13728 KEP-3857: Recursive Read-only (RRO) mounts
See kubernetes/enhancements issue 3857 (PR 3858).

Replaces PR 9713 `cri: make read-only mounts recursively read-only`

Unlike PR 9713, this PR does not automatically upgrade RO mounts to RRO.

Test depends on:
- kubernetes-sigs/cri-tools PR 1344

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2024-02-19 00:42:50 +09:00
Akihiro Suda 6670695836 Revert "cri: make read-only mounts recursively read-only"
Revert PR 9713, as it appeared to break the compatibility too much
https://github.com/kubernetes/enhancements/pull/3858#issuecomment-1925441072

This reverts commit b2f254fff0.

> Conflicts:
>	internal/cri/opts/spec_linux_opts.go

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2024-02-04 01:17:14 +09:00
Maksym Pavlenko bbac058cf3 Move CRI from pkg/ to internal/
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2024-02-02 10:12:08 -08:00