]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
missing: Add new Linux capability
authorMichal Koutný <mkoutny@suse.com>
Wed, 26 Aug 2020 13:37:21 +0000 (15:37 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 27 Aug 2020 14:13:09 +0000 (16:13 +0200)
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

index dd6bccd8700526181822265b85f6ad6cf861afbb..b31e736390274c74e371a0b3b1f12a021f64b2bc 100644 (file)
 #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