[lxc/lxc] 87ff1e: lxc/start: assume CLONE_PIDFD and clone3 are suppo...

Skip to first unread message

Stéphane Graber

unread,
Apr 22, 2026, 5:35:26 PM (6 days ago) Apr 22
to lxc-...@lists.linuxcontainers.org
Branch: refs/heads/main
Home: https://github.com/lxc/lxc
Commit: 87ff1e31ee543e5a1db619837e08601d1d742054
https://github.com/lxc/lxc/commit/87ff1e31ee543e5a1db619837e08601d1d742054
Author: Alexander Mikhalitsyn <aleksandr....@futurfusion.io>
Date: 2026-04-22 (Wed, 22 Apr 2026)

Changed paths:
M src/lxc/start.c

Log Message:
-----------
lxc/start: assume CLONE_PIDFD and clone3 are supported

We agreed to set 6.12 as a Linux kernel requirement for LXC 7.x line,
it was released in Nov 2024 [1].

Let's drop fallback code for cases when CLONE_PIDFD or clone3 are not supported.
CLONE_PIDFD was added in 5.2
clone3 was added in 5.3

I decided to keep fallback logic for non-supported CLONE_INTO_CGROUP for now, while
it was added in 5.7.

Link: https://github.com/torvalds/linux/commit/adc218676eef25575469234709c2d87185ca223a [1]
Signed-off-by: Alexander Mikhalitsyn <aleksandr....@futurfusion.io>


Commit: 9e541fa864af8fd70c014e2f64997553dcc45d4c
https://github.com/lxc/lxc/commit/9e541fa864af8fd70c014e2f64997553dcc45d4c
Author: Alexander Mikhalitsyn <aleksandr....@futurfusion.io>
Date: 2026-04-22 (Wed, 22 Apr 2026)

Changed paths:
M src/lxc/cgroups/cgfsng.c
M src/lxc/conf.c

Log Message:
-----------
lxc: assume fsopen/open_tree/mount_setattr syscalls are supported

fsopen and open_tree were added in 5.2
mount_setattr in 5.12

Signed-off-by: Alexander Mikhalitsyn <aleksandr....@futurfusion.io>


Commit: 57e4fff24bdf023d54a3deee74394f3a9785e208
https://github.com/lxc/lxc/commit/57e4fff24bdf023d54a3deee74394f3a9785e208
Author: Stéphane Graber <stgr...@stgraber.org>
Date: 2026-04-22 (Wed, 22 Apr 2026)

Changed paths:
M src/lxc/cgroups/cgfsng.c
M src/lxc/conf.c
M src/lxc/start.c

Log Message:
-----------
Merge pull request #4672 from mihalicyn/assume_new_enough_kernel

assume CLONE_PIDFD, clone3, new mount api are supported


Compare: https://github.com/lxc/lxc/compare/fe6b7ef01419...57e4fff24bdf

To unsubscribe from these emails, change your notification settings at https://github.com/lxc/lxc/settings/notifications
Reply all
Reply to author
Forward
0 new messages