Lines Matching refs:cap
25 #define CAP_MAP_ENTRY(cap) { #cap, CAP_##cap } argument
103 for (size_t cap = 0; cap <= last_valid_cap; ++cap) { in DropBoundingSet() local
104 if (cap < to_keep.size() && to_keep.test(cap)) { in DropBoundingSet()
108 if (cap_drop_bound(cap) == -1) { in DropBoundingSet()
109 PLOG(ERROR) << "cap_drop_bound(" << cap << ") failed"; in DropBoundingSet()
121 for (size_t cap = 0; cap < to_keep.size(); ++cap) { in SetProcCaps() local
122 if (to_keep.test(cap)) { in SetProcCaps()
123 value[0] = cap; in SetProcCaps()
126 PLOG(ERROR) << "cap_set_flag(INHERITABLE|PERMITTED, " << cap << ") failed"; in SetProcCaps()
150 for (size_t cap = 0; cap < to_raise.size(); ++cap) { in SetAmbientCaps() local
151 if (to_raise.test(cap)) { in SetAmbientCaps()
152 if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_RAISE, cap, 0, 0) != 0) { in SetAmbientCaps()
153 PLOG(ERROR) << "prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_RAISE, " << cap << ") failed"; in SetAmbientCaps()