Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/procctl.h
Show First 20 Lines • Show All 55 Lines • ▼ Show 20 Lines | |||||
#define PROC_TRAPCAP_CTL 9 /* trap capability errors */ | #define PROC_TRAPCAP_CTL 9 /* trap capability errors */ | ||||
#define PROC_TRAPCAP_STATUS 10 /* query trap capability status */ | #define PROC_TRAPCAP_STATUS 10 /* query trap capability status */ | ||||
#define PROC_PDEATHSIG_CTL 11 /* set parent death signal */ | #define PROC_PDEATHSIG_CTL 11 /* set parent death signal */ | ||||
#define PROC_PDEATHSIG_STATUS 12 /* get parent death signal */ | #define PROC_PDEATHSIG_STATUS 12 /* get parent death signal */ | ||||
#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_STATUS 18 /* query stack gap */ | |||||
/* 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 56 Lines • ▼ Show 20 Lines | |||||
#define PROC_ASLR_FORCE_DISABLE 2 | #define PROC_ASLR_FORCE_DISABLE 2 | ||||
#define PROC_ASLR_NOFORCE 3 | #define PROC_ASLR_NOFORCE 3 | ||||
#define PROC_ASLR_ACTIVE 0x80000000 | #define PROC_ASLR_ACTIVE 0x80000000 | ||||
#define PROC_PROTMAX_FORCE_ENABLE 1 | #define PROC_PROTMAX_FORCE_ENABLE 1 | ||||
#define PROC_PROTMAX_FORCE_DISABLE 2 | #define PROC_PROTMAX_FORCE_DISABLE 2 | ||||
#define PROC_PROTMAX_NOFORCE 3 | #define PROC_PROTMAX_NOFORCE 3 | ||||
#define PROC_PROTMAX_ACTIVE 0x80000000 | #define PROC_PROTMAX_ACTIVE 0x80000000 | ||||
#define PROC_STACKGAP_ENABLE 0x0001 | |||||
#define PROC_STACKGAP_DISABLE 0x0002 | |||||
#define PROC_STACKGAP_ENABLE_EXEC 0x0004 | |||||
#define PROC_STACKGAP_DISABLE_EXEC 0x0008 | |||||
#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_ */ |