mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 00:14:44 +01:00
parser: Add support for CAP_CHECKPOINT_RESTORE
Linux 5.9 added CAP_CHECKPOINT_RESTORE add it to the set of supported capabilities. MR: https://gitlab.com/apparmor/apparmor/-/merge_requests/654 Signed-off-by: John Johansen <john.johansen@canonical.com> Acked-by: Seth Arnold <seth.arnold@canonical.com>
This commit is contained in:
parent
71a51fcb18
commit
644a473971
2 changed files with 6 additions and 0 deletions
|
@ -8,6 +8,8 @@
|
|||
|
||||
{"bpf", CAP_BPF, CAP_SYS_ADMIN, CAPFLAG_BASE_FEATURE},
|
||||
|
||||
{"checkpoint_restore", CAP_CHECKPOINT_RESTORE, CAP_SYS_ADMIN, CAPFLAG_BASE_FEATURE},
|
||||
|
||||
{"chown", CAP_CHOWN, NO_BACKMAP_CAP, CAPFLAG_BASE_FEATURE},
|
||||
|
||||
{"dac_override", CAP_DAC_OVERRIDE, NO_BACKMAP_CAP, CAPFLAG_BASE_FEATURE},
|
||||
|
|
|
@ -29,6 +29,10 @@
|
|||
#define CAP_BPF 39
|
||||
#endif
|
||||
|
||||
#ifndef CAP_CHECKPOINT_RESTORE
|
||||
#define CAP_CHECKPOINT_RESTORE 40
|
||||
#endif
|
||||
|
||||
typedef enum capability_flags {
|
||||
CAPFLAGS_CLEAR = 0,
|
||||
CAPFLAG_BASE_FEATURE = 1,
|
||||
|
|
Loading…
Add table
Reference in a new issue