Searched refs:cap (Results 1 – 1 of 1) sorted by relevance
123 for (cap_value_t cap = 0; cap < kMaxCapabilities; cap++) { in DropPreExecPrivileges() local125 if (!CAP_IS_SUPPORTED(cap)) { in DropPreExecPrivileges()129 if (cap_get_flag(desired_capabilities, cap, CAP_PERMITTED, &value) == 0 && in DropPreExecPrivileges()131 if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_RAISE, cap, 0, 0) != 0) { in DropPreExecPrivileges()132 std::cerr << "Unable to raise capability " << cap in DropPreExecPrivileges()