]> git.ipfire.org Git - thirdparty/systemd.git/commit
capability-util: generalize helper to acquire local caps
authorLennart Poettering <lennart@poettering.net>
Thu, 28 Nov 2024 11:59:21 +0000 (12:59 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 17 Dec 2024 18:06:54 +0000 (19:06 +0100)
commit1184626a269e38dcdfcd1042975a31d4eb30cd5e
tree7cce55237bc42414c35bca69792a8db0fe7f8917
parent8d08f18b52363095f8fa6465216d5d2a349c8fce
capability-util: generalize helper to acquire local caps

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.
src/basic/capability-util.c
src/basic/capability-util.h
src/shared/condition.c
src/test/test-capability.c