MCPcopy Create free account
hub / github.com/apache/mesos / setKeepCaps

Method setKeepCaps

src/linux/capabilities.cpp:398–405  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

396
397
398Try<Nothing> Capabilities::setKeepCaps()
399{
400 if (prctl(PR_SET_KEEPCAPS, 1) < 0) {
401 return ErrnoError("Failed to set PR_SET_KEEPCAPS for the process");
402 }
403
404 return Nothing();
405}
406
407
408std::set<Capability> Capabilities::getAllSupportedCapabilities()

Callers 2

executeMethod · 0.80
executeMethod · 0.80

Calls 2

ErrnoErrorClass · 0.85
NothingClass · 0.85

Tested by 1

executeMethod · 0.64