diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-12-04 07:57:41 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-12-04 08:34:46 +0100 |
commit | 2a03bb3e65327c73008f1db485ffc75c432dc6b2 (patch) | |
tree | 014563d4bdd07fbfff6d4f6185d0ab94d0a92a6a | |
parent | missing: move statx related definitions to missing_stat.h (diff) | |
download | systemd-2a03bb3e65327c73008f1db485ffc75c432dc6b2.tar.xz systemd-2a03bb3e65327c73008f1db485ffc75c432dc6b2.zip |
missing: move prctl related entries to missing_prctl.h
-rw-r--r-- | src/basic/meson.build | 1 | ||||
-rw-r--r-- | src/basic/missing.h | 41 | ||||
-rw-r--r-- | src/basic/missing_prctl.h | 14 |
3 files changed, 16 insertions, 40 deletions
diff --git a/src/basic/meson.build b/src/basic/meson.build index 5d03c68a07..43ce25cb64 100644 --- a/src/basic/meson.build +++ b/src/basic/meson.build @@ -103,6 +103,7 @@ basic_sources = files(''' missing_keyctl.h missing_magic.h missing_network.h + missing_prctl.h missing_securebits.h missing_stat.h missing_syscall.h diff --git a/src/basic/missing.h b/src/basic/missing.h index c35621cf2b..fdf8d4105c 100644 --- a/src/basic/missing.h +++ b/src/basic/missing.h @@ -186,30 +186,6 @@ struct sockaddr_vm { #define SCM_SECURITY 0x03 #endif -#ifndef PR_SET_NO_NEW_PRIVS -#define PR_SET_NO_NEW_PRIVS 38 -#endif - -#ifndef PR_SET_CHILD_SUBREAPER -#define PR_SET_CHILD_SUBREAPER 36 -#endif - -#ifndef PR_SET_MM_ARG_START -#define PR_SET_MM_ARG_START 8 -#endif - -#ifndef PR_SET_MM_ARG_END -#define PR_SET_MM_ARG_END 9 -#endif - -#ifndef PR_SET_MM_ENV_START -#define PR_SET_MM_ENV_START 10 -#endif - -#ifndef PR_SET_MM_ENV_END -#define PR_SET_MM_ENV_END 11 -#endif - #ifndef DM_DEFERRED_REMOVE #define DM_DEFERRED_REMOVE (1 << 17) #endif @@ -327,22 +303,6 @@ struct sockaddr_vm { #define KCMP_FILE 0 #endif -#ifndef PR_CAP_AMBIENT -#define PR_CAP_AMBIENT 47 -#endif - -#ifndef PR_CAP_AMBIENT_IS_SET -#define PR_CAP_AMBIENT_IS_SET 1 -#endif - -#ifndef PR_CAP_AMBIENT_RAISE -#define PR_CAP_AMBIENT_RAISE 2 -#endif - -#ifndef PR_CAP_AMBIENT_CLEAR_ALL -#define PR_CAP_AMBIENT_CLEAR_ALL 4 -#endif - #if !HAVE_CHAR32_T #define char32_t uint32_t #endif @@ -394,5 +354,6 @@ struct sockaddr_vm { #include "missing_input.h" #include "missing_magic.h" #include "missing_network.h" +#include "missing_prctl.h" #include "missing_syscall.h" diff --git a/src/basic/missing_prctl.h b/src/basic/missing_prctl.h new file mode 100644 index 0000000000..f80cd17f34 --- /dev/null +++ b/src/basic/missing_prctl.h @@ -0,0 +1,14 @@ +/* SPDX-License-Identifier: LGPL-2.1+ */ +#pragma once + +#include <linux/prctl.h> + +/* 58319057b7847667f0c9585b9de0e8932b0fdb08 (4.3) */ +#ifndef PR_CAP_AMBIENT +#define PR_CAP_AMBIENT 47 + +#define PR_CAP_AMBIENT_IS_SET 1 +#define PR_CAP_AMBIENT_RAISE 2 +#define PR_CAP_AMBIENT_LOWER 3 +#define PR_CAP_AMBIENT_CLEAR_ALL 4 +#endif |