]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
missing: Add new Linux capabilities
authorMichal Koutný <mkoutny@suse.com>
Wed, 24 Jun 2020 10:43:22 +0000 (12:43 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 25 Jun 2020 07:02:43 +0000 (09:02 +0200)
Linux kernel v5.8 adds two new capabilities. Make sure we can recongize
them even when built with older kernel.

src/basic/missing_capability.h

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