Lines Matching refs:cv

367 int drop_capability(cap_value_t cv) {  in drop_capability()  argument
374 if ((cap_set_flag(tmp_cap, CAP_INHERITABLE, 1, &cv, CAP_CLEAR) < 0) || in drop_capability()
375 (cap_set_flag(tmp_cap, CAP_PERMITTED, 1, &cv, CAP_CLEAR) < 0) || in drop_capability()
376 (cap_set_flag(tmp_cap, CAP_EFFECTIVE, 1, &cv, CAP_CLEAR) < 0)) in drop_capability()
451 cap_value_t cv = (cap_value_t) i; in capability_quintet_enforce() local
457 if (cap_get_flag(c, cv, CAP_INHERITABLE, &old_value_inheritable) < 0) in capability_quintet_enforce()
459 if (cap_get_flag(c, cv, CAP_PERMITTED, &old_value_permitted) < 0) in capability_quintet_enforce()
465 if (cap_set_flag(c, CAP_INHERITABLE, 1, &cv, CAP_SET) < 0) in capability_quintet_enforce()
467 if (cap_set_flag(c, CAP_PERMITTED, 1, &cv, CAP_SET) < 0) in capability_quintet_enforce()
493 cap_value_t cv = (cap_value_t) i; in capability_quintet_enforce() local
498 if (cap_get_flag(c, cv, CAP_INHERITABLE, &old_value) < 0) { in capability_quintet_enforce()
513 if (cap_set_flag(c, CAP_INHERITABLE, 1, &cv, new_value) < 0) in capability_quintet_enforce()
521 if (cap_get_flag(c, cv, CAP_PERMITTED, &old_value) < 0) { in capability_quintet_enforce()
533 if (cap_set_flag(c, CAP_PERMITTED, 1, &cv, new_value) < 0) in capability_quintet_enforce()
541 if (cap_get_flag(c, cv, CAP_EFFECTIVE, &old_value) < 0) { in capability_quintet_enforce()
553 if (cap_set_flag(c, CAP_EFFECTIVE, 1, &cv, new_value) < 0) in capability_quintet_enforce()
563 cap_value_t cv = CAP_SETPCAP; in capability_quintet_enforce() local
569 if (cap_set_flag(modified, CAP_PERMITTED, 1, &cv, CAP_SET) < 0) in capability_quintet_enforce()
571 if (cap_set_flag(modified, CAP_EFFECTIVE, 1, &cv, CAP_SET) < 0) in capability_quintet_enforce()