Skip to content

Commit

Permalink
Fix caplist
Browse files Browse the repository at this point in the history
  • Loading branch information
Moe-hacker committed Jun 7, 2024
1 parent 5108d69 commit 60dd39f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/caplist.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,9 @@ void build_caplist(cap_value_t caplist[], bool privileged, cap_value_t drop_capl
// Set default caplist to drop.
caplist[0] = INIT_VALUE;
if (!privileged) {
for (int i = 0; i <= CAP_LAST_CAP; i++) {
for (int i = 0; CAP_IS_SUPPORTED(i); i++) {
caplist[i] = i;
caplist[i + 1] = INIT_VALUE;
}
for (int i = 0; true; i++) {
if (keep_caplist_common[i] == INIT_VALUE) {
Expand Down

0 comments on commit 60dd39f

Please sign in to comment.