Skip to content

libct: deprecate libcontainer/devices in favour of moby/sys/devices#5142

Merged
kolyshkin merged 1 commit intoopencontainers:mainfrom
cyphar:deprecate-libct-devices
Apr 3, 2026
Merged

libct: deprecate libcontainer/devices in favour of moby/sys/devices#5142
kolyshkin merged 1 commit intoopencontainers:mainfrom
cyphar:deprecate-libct-devices

Conversation

@cyphar
Copy link
Copy Markdown
Member

@cyphar cyphar commented Mar 4, 2026

Draft until #5141 and moby/sys#212 are merged.


The libcontainer/devices package has been moved to moby/sys/devices, so
we can just point users to that and keep some compatibility shims around
until runc 1.6. We don't use it at all so there are no other changes
needed.

Signed-off-by: Aleksa Sarai aleksa@amutable.com

@cyphar cyphar added this to the 1.5.0 milestone Mar 4, 2026
@cyphar cyphar force-pushed the deprecate-libct-devices branch 2 times, most recently from 97ce3a3 to 783bf93 Compare March 5, 2026 11:51
@kolyshkin
Copy link
Copy Markdown
Contributor

The devices package is now part of moby/sys: https://github.com/moby/sys/releases/tag/devices%2Fv0.1.0.

I suggest to make this into v1.5.0rc2 and remove devices package from runc in v1.6.

@kolyshkin kolyshkin added the backport/1.5-todo A PR in main branch which needs to be backported to release-1.5 label Apr 2, 2026
@kolyshkin kolyshkin modified the milestones: 1.5.0, 1.5.0-rc.2 Apr 2, 2026
@cyphar
Copy link
Copy Markdown
Member Author

cyphar commented Apr 2, 2026

Oh, I forgot I already had a PR opened and so I opened #5213. 🤦

Let me close that one and push it here.

@cyphar cyphar force-pushed the deprecate-libct-devices branch 2 times, most recently from 3748ef2 to 1a1b485 Compare April 2, 2026 00:37
@cyphar cyphar marked this pull request as ready for review April 2, 2026 09:16
@cyphar cyphar changed the title [dnm] libct: deprecate libcontainer/devices in favour of moby/sys/devices libct: deprecate libcontainer/devices in favour of moby/sys/devices Apr 2, 2026
@cyphar cyphar requested a review from kolyshkin April 2, 2026 11:53
The libcontainer/devices package has been moved to moby/sys/devices, so
we can just point users to that and keep some compatibility shims around
until runc 1.6. We don't use it at all so there are no other changes
needed.

Signed-off-by: Aleksa Sarai <aleksa@amutable.com>
@cyphar cyphar force-pushed the deprecate-libct-devices branch from 1a1b485 to b345c78 Compare April 2, 2026 11:54
Copy link
Copy Markdown
Contributor

@kolyshkin kolyshkin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (one minor nit, feel free to ignore)

Comment on lines +1 to +2
//go:build !windows

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: I don't think this is needed, the file has _unix in its name already. Won't hurt either though.

@kolyshkin kolyshkin merged commit 7a1cae6 into opencontainers:main Apr 3, 2026
55 checks passed
@kolyshkin kolyshkin added backport/1.5-done A PR in main branch which has been backported to release-1.5 and removed backport/1.5-todo A PR in main branch which needs to be backported to release-1.5 labels Apr 3, 2026
@kolyshkin kolyshkin removed this from the 1.5.0-rc.2 milestone Apr 3, 2026
@cyphar cyphar deleted the deprecate-libct-devices branch April 3, 2026 02:53
@kolyshkin kolyshkin mentioned this pull request Apr 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport/1.5-done A PR in main branch which has been backported to release-1.5

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants