Lines Matching defs:keep
152 int capability_bounding_set_drop(uint64_t keep, bool right_now) {
193 if (!(keep & (UINT64_C(1) << i))) {
232 static int drop_from_file(const char *fn, uint64_t keep) {
252 after = current & keep;
269 int capability_bounding_set_drop_usermode(uint64_t keep) {
272 r = drop_from_file("/proc/sys/kernel/usermodehelper/inheritable", keep);
276 r = drop_from_file("/proc/sys/kernel/usermodehelper/bset", keep);
289 * here, since we want to run as user but want to keep some
301 /* Ensure we keep the permitted caps across the setresuid() */
303 return log_error_errno(errno, "Failed to enable keep capabilities flag: %m");
310 return log_error_errno(errno, "Failed to disable keep capabilities flag: %m");