mirror of
https://github.com/systemd/systemd.git
synced 2025-02-04 21:47:31 +03:00
capability: also cap CAP_LAST_CAP at 63
This commit is contained in:
parent
664ff517d3
commit
46eda04373
@ -61,7 +61,7 @@ unsigned long cap_last_cap(void) {
|
||||
}
|
||||
|
||||
/* fall back to syscall-probing for pre linux-3.2 */
|
||||
p = (unsigned long) CAP_LAST_CAP;
|
||||
p = MIN((unsigned long) CAP_LAST_CAP, 63U);
|
||||
|
||||
if (prctl(PR_CAPBSET_READ, p) < 0) {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user