Searched refs:to_keep (Results 1 - 2 of 2) sorted by relevance

/system/core/init/
H A Dcapabilities.cpp95 static bool DropBoundingSet(const CapSet& to_keep) { argument
104 if (cap < to_keep.size() && to_keep.test(cap)) {
116 static bool SetProcCaps(const CapSet& to_keep, bool add_setpcap) { argument
121 for (size_t cap = 0; cap < to_keep.size(); ++cap) {
122 if (to_keep.test(cap)) {
142 PLOG(ERROR) << "cap_set_proc(" << to_keep.to_ulong() << ") failed";
181 bool SetCapsForExec(const CapSet& to_keep) { argument
184 if (!SetProcCaps(to_keep, add_setpcap)) {
189 if (!DropBoundingSet(to_keep)) {
[all...]
H A Dcapabilities.h48 bool SetCapsForExec(const CapSet& to_keep);

Completed in 53 milliseconds