1 // SPDX-License-Identifier: GPL-2.0-or-later 2 /* 3 * Copyright (c) 2018 FUJITSU LIMITED. All rights reserved. 4 * Author: Xiao Yang <yangx.jy@cn.fujitsu.com> 5 */ 6 7 #ifndef LAPI_PRCTL_H__ 8 # define LAPI_PRCTL_H__ 9 10 #include <sys/prctl.h> 11 12 #ifndef PR_SET_NAME 13 # define PR_SET_NAME 15 14 # define PR_GET_NAME 16 15 #endif 16 17 #ifndef PR_SET_SECCOMP 18 # define PR_GET_SECCOMP 21 19 # define PR_SET_SECCOMP 22 20 #endif 21 22 #ifndef PR_SET_TIMERSLACK 23 # define PR_SET_TIMERSLACK 29 24 # define PR_GET_TIMERSLACK 30 25 #endif 26 27 #ifndef PR_SET_CHILD_SUBREAPER 28 # define PR_SET_CHILD_SUBREAPER 36 29 # define PR_GET_CHILD_SUBREAPER 37 30 #endif 31 32 #ifndef PR_SET_NO_NEW_PRIVS 33 # define PR_SET_NO_NEW_PRIVS 38 34 # define PR_GET_NO_NEW_PRIVS 39 35 #endif 36 37 #ifndef PR_SET_THP_DISABLE 38 # define PR_SET_THP_DISABLE 41 39 # define PR_GET_THP_DISABLE 42 40 #endif 41 42 #ifndef PR_CAP_AMBIENT 43 # define PR_CAP_AMBIENT 47 44 # define PR_CAP_AMBIENT_IS_SET 1 45 # define PR_CAP_AMBIENT_RAISE 2 46 # define PR_CAP_AMBIENT_LOWER 3 47 # define PR_CAP_AMBIENT_CLEAR_ALL 4 48 #endif 49 50 #ifndef PR_GET_SPECULATION_CTRL 51 # define PR_GET_SPECULATION_CTRL 52 52 # define PR_SET_SPECULATION_CTRL 53 53 #endif 54 55 #endif /* LAPI_PRCTL_H__ */ 56