diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/capabilities.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/capabilities.c b/src/capabilities.c index 5e02df3..3feed89 100644 --- a/src/capabilities.c +++ b/src/capabilities.c @@ -97,6 +97,12 @@ static bool need_cap_net_raw(void) { } static void set_cap(cap_t caps, cap_value_t cap) { + char *name = cap_to_name(cap); + if (name) { + pr_verbose("retaining %s", name); + cap_free(name); + } + if (cap_set_flag(caps, CAP_PERMITTED, 1, &cap, CAP_SET) < 0) exit_errno("cap_set_flags"); if (cap_set_flag(caps, CAP_EFFECTIVE, 1, &cap, CAP_SET) < 0) |