| 396 | |
| 397 | |
| 398 | Try<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 | |
| 408 | std::set<Capability> Capabilities::getAllSupportedCapabilities() |