summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Koutný <mkoutny@suse.com>2020-08-26 15:37:21 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-09-20 12:49:51 +0200
commit340200edefccbf779429cec81c989a2f49c88056 (patch)
tree2859de77b4965d225f5379933ef2eb95b74906d2
parent78a267e2e3f0fcc51e563964cfe61419b4f38587 (diff)
downloadsystemd-340200edefccbf779429cec81c989a2f49c88056.tar.gz
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. (cherry picked from commit 94d21c2ef6cd6bb035d4c21c98ab001c0abd4cbe) (cherry picked from commit 23529212447e6a836440e0729c3562d8e0d4c891) (cherry picked from commit 31d80185883792a9dad1519ee147a3c9e02f960c) (cherry picked from commit 34b4dc64c6358c4dd5989778db86c4d90dadb4c9)
-rw-r--r--src/basic/missing_capability.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/basic/missing_capability.h b/src/basic/missing_capability.h
index 1308a3d636..b31e736390 100644
--- a/src/basic/missing_capability.h
+++ b/src/basic/missing_capability.h
@@ -10,3 +10,27 @@
#undef CAP_LAST_CAP
#define CAP_LAST_CAP CAP_AUDIT_READ
#endif
+
+/* 980737282232b752bb14dab96d77665c15889c36 (5.8) */
+#ifndef CAP_PERFMON
+#define CAP_PERFMON 38
+
+#undef CAP_LAST_CAP
+#define CAP_LAST_CAP CAP_PERFMON
+#endif
+
+/* a17b53c4a4b55ec322c132b6670743612229ee9c (5.8) */
+#ifndef CAP_BPF
+#define CAP_BPF 39
+
+#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