]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/execute.c
core/execute: also check cg_is_threaded for clone3() 32263/head
authorMike Yuan <me@yhndnzj.com>
Sat, 13 Apr 2024 14:42:22 +0000 (22:42 +0800)
committerMike Yuan <me@yhndnzj.com>
Sun, 14 Apr 2024 15:22:13 +0000 (23:22 +0800)
commit58ff2f1e38dc2acf2e0e5a48d47b8fa381567051
tree77802963b4e37fb2baa583fa7fa5f19ced72c6ec
parentad68a4e58a5b0794e031c48e91336c1f8a75c9e9
core/execute: also check cg_is_threaded for clone3()

Prompted by #32259

We already have this check in exec_invoke(), i.e. child.
But if CLONE_INTO_CGROUP is used, the failure would
occur on parent's side, so do the check there too.
src/basic/process-util.c
src/core/exec-invoke.c
src/core/execute.c