]> git.ipfire.org Git - thirdparty/systemd.git/commit
core/exec-credential: do not pass CGroupContext deep down the stack
authorMike Yuan <me@yhndnzj.com>
Fri, 7 Nov 2025 20:49:38 +0000 (21:49 +0100)
committerMike Yuan <me@yhndnzj.com>
Mon, 10 Nov 2025 21:38:21 +0000 (22:38 +0100)
commit4338440c97cb0340376a9e696addaeced75d3f32
treec75a04a78980e069748d844e6f2b73497d3b352c
parentb131e8d3a478a793956ecd4ab2138e3c4ce5a284
core/exec-credential: do not pass CGroupContext deep down the stack

The repetitive re-evaluation of device_nodes_restricted() is wasteful.
Just pre-determine whether we need to always go by IPC and store it
in a bool.
src/core/exec-credential.c