1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-22 06:50:18 +03:00

capability-util: rename output argument of capability_gain_cap_setpcap()

This commit is contained in:
Yu Watanabe 2025-01-19 07:37:39 +09:00 committed by Luca Boccassi
parent ed8a737e08
commit 2cf9635511
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ static inline bool capability_is_set(uint64_t v) {
unsigned cap_last_cap(void);
int have_effective_cap(int value);
int capability_gain_cap_setpcap(cap_t *return_caps);
int capability_gain_cap_setpcap(cap_t *ret_before_caps);
int capability_bounding_set_drop(uint64_t keep, bool right_now);
int capability_bounding_set_drop_usermode(uint64_t keep);

View File

@ -5567,7 +5567,7 @@ int exec_invoke(
*
* Hence there is no security impact to raise it in the effective set before execve
*/
r = capability_gain_cap_setpcap(/* return_caps= */ NULL);
r = capability_gain_cap_setpcap(/* ret_before_caps = */ NULL);
if (r < 0) {
*exit_status = EXIT_CAPABILITIES;
return log_exec_error_errno(context, params, r, "Failed to gain CAP_SETPCAP for setting secure bits");