projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
664ff51
)
capability: also cap CAP_LAST_CAP at 63
author
Lennart Poettering
<lennart@poettering.net>
Thu, 21 Mar 2019 11:37:30 +0000
(12:37 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Thu, 21 Mar 2019 11:37:30 +0000
(12:37 +0100)
src/basic/capability-util.c
patch
|
blob
|
history
diff --git
a/src/basic/capability-util.c
b/src/basic/capability-util.c
index
2c17e26
..
03a6b66
100644
(file)
--- a/
src/basic/capability-util.c
+++ b/
src/basic/capability-util.c
@@
-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) {