Skip to content

Commit

Permalink
capabilities: add 3 missing capabilities
Browse files Browse the repository at this point in the history
add the missing PERFMON, BPF, CHECKPOINT_RESTORE capabilities.

Signed-off-by: Giuseppe Scrivano <[email protected]>
  • Loading branch information
giuseppe committed Mar 25, 2022
1 parent e54ebae commit 6c80e92
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/capabilities/capabilities.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,14 @@ var (
35: "WAKE_ALARM",
36: "BLOCK_SUSPEND",
37: "AUDIT_READ",
38: "PERFMON",
39: "BPF",
40: "CHECKPOINT_RESTORE",
}

// FullCAPs represents the value of a bitmask with a full capability
// set.
FullCAPs = uint64(0x3FFFFFFFFF)
FullCAPs = uint64(0x1FFFFFFFFFF)
)

// TranslateMask iterates over mask and returns a slice of corresponding
Expand Down

0 comments on commit 6c80e92

Please sign in to comment.