Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/procctl.h
Show First 20 Lines • Show All 59 Lines • ▼ Show 20 Lines | |||||
#define PROC_ASLR_CTL 13 /* en/dis ASLR */ | #define PROC_ASLR_CTL 13 /* en/dis ASLR */ | ||||
#define PROC_ASLR_STATUS 14 /* query ASLR status */ | #define PROC_ASLR_STATUS 14 /* query ASLR status */ | ||||
#define PROC_PROTMAX_CTL 15 /* en/dis implicit PROT_MAX */ | #define PROC_PROTMAX_CTL 15 /* en/dis implicit PROT_MAX */ | ||||
#define PROC_PROTMAX_STATUS 16 /* query implicit PROT_MAX status */ | #define PROC_PROTMAX_STATUS 16 /* query implicit PROT_MAX status */ | ||||
#define PROC_STACKGAP_CTL 17 /* en/dis stack gap on MAP_STACK */ | #define PROC_STACKGAP_CTL 17 /* en/dis stack gap on MAP_STACK */ | ||||
#define PROC_STACKGAP_STATUS 18 /* query stack gap */ | #define PROC_STACKGAP_STATUS 18 /* query stack gap */ | ||||
#define PROC_NO_NEW_PRIVS_CTL 19 /* disable setuid/setgid */ | #define PROC_NO_NEW_PRIVS_CTL 19 /* disable setuid/setgid */ | ||||
#define PROC_NO_NEW_PRIVS_STATUS 20 /* query suid/sgid disabled status */ | #define PROC_NO_NEW_PRIVS_STATUS 20 /* query suid/sgid disabled status */ | ||||
#define PROC_WXORX_CTL 21 /* control W^X */ | |||||
#define PROC_WXORX_STATUS 22 /* query W^X */ | |||||
/* Operations for PROC_SPROTECT (passed in integer arg). */ | /* Operations for PROC_SPROTECT (passed in integer arg). */ | ||||
#define PPROT_OP(x) ((x) & 0xf) | #define PPROT_OP(x) ((x) & 0xf) | ||||
#define PPROT_SET 1 | #define PPROT_SET 1 | ||||
#define PPROT_CLEAR 2 | #define PPROT_CLEAR 2 | ||||
/* Flags for PROC_SPROTECT (ORed in with operation). */ | /* Flags for PROC_SPROTECT (ORed in with operation). */ | ||||
#define PPROT_FLAGS(x) ((x) & ~0xf) | #define PPROT_FLAGS(x) ((x) & ~0xf) | ||||
▲ Show 20 Lines • Show All 64 Lines • ▼ Show 20 Lines | |||||
#define PROC_STACKGAP_ENABLE 0x0001 | #define PROC_STACKGAP_ENABLE 0x0001 | ||||
#define PROC_STACKGAP_DISABLE 0x0002 | #define PROC_STACKGAP_DISABLE 0x0002 | ||||
#define PROC_STACKGAP_ENABLE_EXEC 0x0004 | #define PROC_STACKGAP_ENABLE_EXEC 0x0004 | ||||
#define PROC_STACKGAP_DISABLE_EXEC 0x0008 | #define PROC_STACKGAP_DISABLE_EXEC 0x0008 | ||||
#define PROC_NO_NEW_PRIVS_ENABLE 1 | #define PROC_NO_NEW_PRIVS_ENABLE 1 | ||||
#define PROC_NO_NEW_PRIVS_DISABLE 2 | #define PROC_NO_NEW_PRIVS_DISABLE 2 | ||||
#define PROC_WXORX_DISABLE 0x0001 | |||||
#define PROC_WXORX_ENABLE_ON_EXEC 0x0002 | |||||
#define PROC_WXORX_ENFORCE 0x80000000 | |||||
#ifndef _KERNEL | #ifndef _KERNEL | ||||
__BEGIN_DECLS | __BEGIN_DECLS | ||||
int procctl(idtype_t, id_t, int, void *); | int procctl(idtype_t, id_t, int, void *); | ||||
__END_DECLS | __END_DECLS | ||||
#endif | #endif | ||||
#endif /* !_SYS_PROCCTL_H_ */ | #endif /* !_SYS_PROCCTL_H_ */ |