udev: String substitutions can be done in ENV, too
[systemd_ALT.git] / src / basic / missing_capability.h
blob5adda554e59aa539e0206024fcb99d24308f02af
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 #pragma once
4 #include <linux/capability.h>
6 /* 3a101b8de0d39403b2c7e5c23fd0b005668acf48 (3.16) */
7 #ifndef CAP_AUDIT_READ
8 # define CAP_AUDIT_READ 37
9 #endif
11 /* 980737282232b752bb14dab96d77665c15889c36 (5.8) */
12 #ifndef CAP_PERFMON
13 # define CAP_PERFMON 38
14 #endif
16 /* a17b53c4a4b55ec322c132b6670743612229ee9c (5.8) */
17 #ifndef CAP_BPF
18 # define CAP_BPF 39
19 #endif
21 /* 124ea650d3072b005457faed69909221c2905a1f (5.9) */
22 #ifndef CAP_CHECKPOINT_RESTORE
23 # define CAP_CHECKPOINT_RESTORE 40
24 #endif
26 #define SYSTEMD_CAP_LAST_CAP CAP_CHECKPOINT_RESTORE
28 #ifdef CAP_LAST_CAP
29 # if CAP_LAST_CAP > SYSTEMD_CAP_LAST_CAP
30 # if BUILD_MODE_DEVELOPER && defined(TEST_CAPABILITY_C)
31 # warning "The capability list here is outdated"
32 # endif
33 # else
34 # undef CAP_LAST_CAP
35 # endif
36 #endif
37 #ifndef CAP_LAST_CAP
38 # define CAP_LAST_CAP SYSTEMD_CAP_LAST_CAP
39 #endif