Home
last modified time | relevance | path

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

/system/core/init/
Dcapabilities.cpp104 static bool DropBoundingSet(const CapSet& to_keep) { in DropBoundingSet() argument
113 if (cap < to_keep.size() && to_keep.test(cap)) { in DropBoundingSet()
125 static bool SetProcCaps(const CapSet& to_keep, bool add_setpcap) { in SetProcCaps() argument
130 for (size_t cap = 0; cap < to_keep.size(); ++cap) { in SetProcCaps()
131 if (to_keep.test(cap)) { in SetProcCaps()
151 PLOG(ERROR) << "cap_set_proc(" << to_keep.to_ulong() << ") failed"; in SetProcCaps()
190 bool SetCapsForExec(const CapSet& to_keep) { in SetCapsForExec() argument
193 if (!SetProcCaps(to_keep, add_setpcap)) { in SetCapsForExec()
198 if (!DropBoundingSet(to_keep)) { in SetCapsForExec()
204 if (!SetProcCaps(to_keep, add_setpcap)) { in SetCapsForExec()
[all …]
Dcapabilities.h48 bool SetCapsForExec(const CapSet& to_keep);