diff options
author | Michal Koutný <mkoutny@suse.com> | 2020-08-26 15:37:21 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2020-08-27 16:13:09 +0200 |
commit | 94d21c2ef6cd6bb035d4c21c98ab001c0abd4cbe (patch) | |
tree | 15ddb0fe2abca1a44e53d1aa4aecd0f2ec328a8c | |
parent | test: remove executable bit from testsuite-52.service (diff) | |
download | systemd-94d21c2ef6cd6bb035d4c21c98ab001c0abd4cbe.tar.xz systemd-94d21c2ef6cd6bb035d4c21c98ab001c0abd4cbe.zip |
missing: Add new Linux capability
Yet another new capability coming in Linux kernel v5.9.
Make sure we can recongize them even when built with older kernel headers.
-rw-r--r-- | src/basic/missing_capability.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/basic/missing_capability.h b/src/basic/missing_capability.h index dd6bccd870..b31e736390 100644 --- a/src/basic/missing_capability.h +++ b/src/basic/missing_capability.h @@ -26,3 +26,11 @@ #undef CAP_LAST_CAP #define CAP_LAST_CAP CAP_BPF #endif + +/* 124ea650d3072b005457faed69909221c2905a1f (5.9) */ +#ifndef CAP_CHECKPOINT_RESTORE +#define CAP_CHECKPOINT_RESTORE 40 + +#undef CAP_LAST_CAP +#define CAP_LAST_CAP CAP_CHECKPOINT_RESTORE +#endif |