]> git.ipfire.org Git - thirdparty/systemd.git/commit
capability-util: generalize helper to acquire local caps (#35403)
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 20 Dec 2024 02:52:24 +0000 (11:52 +0900)
committerGitHub <noreply@github.com>
Fri, 20 Dec 2024 02:52:24 +0000 (11:52 +0900)
commit8a135111cafc1e3889e03cdb2b17f7de56508c53
tree99bd35c3304f76a4ba3b94fc98e43212f7d0dbd8
parent5e837858e71efe4075daa7fae784b751e100552a
parent25b1a73f71d9a8103e812f802e9134b217b60dc7
capability-util: generalize helper to acquire local caps (#35403)

This generalizes and modernizes the code to acquire set of local caps,
based on the code for this in the condition logic. Uses PidRef, and
acquires the full quintuplet of caps.

This can be considered preparation to one day maybe build without
libcap.