]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/basic/missing_prctl.h
repart: Use CRYPT_ACTIVATE_PRIVATE
[thirdparty/systemd.git] / src / basic / missing_prctl.h
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 #pragma once
3
4 #include <linux/prctl.h>
5
6 #include "macro.h"
7
8 /* 58319057b7847667f0c9585b9de0e8932b0fdb08 (4.3) */
9 #ifndef PR_CAP_AMBIENT
10 #define PR_CAP_AMBIENT 47
11
12 #define PR_CAP_AMBIENT_IS_SET 1
13 #define PR_CAP_AMBIENT_RAISE 2
14 #define PR_CAP_AMBIENT_LOWER 3
15 #define PR_CAP_AMBIENT_CLEAR_ALL 4
16 #endif
17
18 /* b507808ebce23561d4ff8c2aa1fb949fe402bc61 (6.3) */
19 #ifndef PR_SET_MDWE
20 # define PR_SET_MDWE 65
21 #else
22 assert_cc(PR_SET_MDWE == 65);
23 #endif
24
25 #ifndef PR_MDWE_REFUSE_EXEC_GAIN
26 # define PR_MDWE_REFUSE_EXEC_GAIN 1
27 #else
28 assert_cc(PR_MDWE_REFUSE_EXEC_GAIN == 1);
29 #endif
30
31 #ifndef PR_SET_MEMORY_MERGE
32 # define PR_SET_MEMORY_MERGE 67
33 #else
34 assert_cc(PR_SET_MEMORY_MERGE == 67);
35 #endif