Debian Codegraph @

test cases/common/293 systemd regression/override/linux/keyctl.h

raw
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 #pragma once
3
4 #if 0 // removed for meson testsuite
5 #include_next <linux/keyctl.h> /* IWYU pragma: export */
6 #endif
7
8 #include <stdint.h>
9
10 /* From linux/key.h */
11 #ifndef KEY_POS_VIEW
12
13 typedef int32_t key_serial_t;
14
15 # define KEY_POS_VIEW 0x01000000
16 # define KEY_POS_READ 0x02000000
17 # define KEY_POS_WRITE 0x04000000
18 # define KEY_POS_SEARCH 0x08000000
19 # define KEY_POS_LINK 0x10000000
20 # define KEY_POS_SETATTR 0x20000000
21 # define KEY_POS_ALL 0x3f000000
22
23 # define KEY_USR_VIEW 0x00010000
24 # define KEY_USR_READ 0x00020000
25 # define KEY_USR_WRITE 0x00040000
26 # define KEY_USR_SEARCH 0x00080000
27 # define KEY_USR_LINK 0x00100000
28 # define KEY_USR_SETATTR 0x00200000
29 # define KEY_USR_ALL 0x003f0000
30
31 # define KEY_GRP_VIEW 0x00000100
32 # define KEY_GRP_READ 0x00000200
33 # define KEY_GRP_WRITE 0x00000400
34 # define KEY_GRP_SEARCH 0x00000800
35 # define KEY_GRP_LINK 0x00001000
36 # define KEY_GRP_SETATTR 0x00002000
37 # define KEY_GRP_ALL 0x00003f00
38
39 # define KEY_OTH_VIEW 0x00000001
40 # define KEY_OTH_READ 0x00000002
41 # define KEY_OTH_WRITE 0x00000004
42 # define KEY_OTH_SEARCH 0x00000008
43 # define KEY_OTH_LINK 0x00000010
44 # define KEY_OTH_SETATTR 0x00000020
45 # define KEY_OTH_ALL 0x0000003f
46 #else
47 static_assert(KEY_OTH_ALL == 0x0000003f, "");
48 #endif