Home
last modified time | relevance | path

Searched refs:new_value (Results 1 – 2 of 2) sorted by relevance

/systemd-251/src/basic/
Dcapability-util.c496 cap_flag_value_t old_value, new_value; in capability_quintet_enforce() local
508 new_value = (q->inheritable & m) ? CAP_SET : CAP_CLEAR; in capability_quintet_enforce()
510 if (old_value != new_value) { in capability_quintet_enforce()
513 if (cap_set_flag(c, CAP_INHERITABLE, 1, &cv, new_value) < 0) in capability_quintet_enforce()
519 cap_flag_value_t old_value, new_value; in capability_quintet_enforce() local
528 new_value = (q->permitted & m) ? CAP_SET : CAP_CLEAR; in capability_quintet_enforce()
530 if (old_value != new_value) { in capability_quintet_enforce()
533 if (cap_set_flag(c, CAP_PERMITTED, 1, &cv, new_value) < 0) in capability_quintet_enforce()
539 cap_flag_value_t old_value, new_value; in capability_quintet_enforce() local
548 new_value = (q->effective & m) ? CAP_SET : CAP_CLEAR; in capability_quintet_enforce()
[all …]
/systemd-251/src/libsystemd/sd-device/
Dsd-device.c101 _cleanup_free_ char *new_key = NULL, *new_value = NULL, *old_key = NULL; in device_add_property_aux() local
112 new_value = strdup(value); in device_add_property_aux()
113 if (!new_value) in device_add_property_aux()
119 r = ordered_hashmap_replace(*properties, new_key, new_value); in device_add_property_aux()
124 TAKE_PTR(new_value); in device_add_property_aux()