From 94d21c2ef6cd6bb035d4c21c98ab001c0abd4cbe Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michal=20Koutn=C3=BD?= Date: Wed, 26 Aug 2020 15:37:21 +0200 Subject: [PATCH] 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. --- src/basic/missing_capability.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/basic/missing_capability.h b/src/basic/missing_capability.h index dd6bccd8700..b31e7363902 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 -- 2.47.3