Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/procctl.h
Show First 20 Lines • Show All 53 Lines • ▼ Show 20 Lines | |||||
#define PROC_TRACE_CTL 7 /* en/dis ptrace and coredumps */ | #define PROC_TRACE_CTL 7 /* en/dis ptrace and coredumps */ | ||||
#define PROC_TRACE_STATUS 8 /* query tracing status */ | #define PROC_TRACE_STATUS 8 /* query tracing status */ | ||||
#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_STATUS 16 /* query implicit PROT_MAX status */ | |||||
/* 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 51 Lines • ▼ Show 20 Lines | |||||
#define PROC_TRAPCAP_CTL_ENABLE 1 | #define PROC_TRAPCAP_CTL_ENABLE 1 | ||||
#define PROC_TRAPCAP_CTL_DISABLE 2 | #define PROC_TRAPCAP_CTL_DISABLE 2 | ||||
#define PROC_ASLR_FORCE_ENABLE 1 | #define PROC_ASLR_FORCE_ENABLE 1 | ||||
#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_DISABLE 2 | |||||
#define PROC_PROTMAX_NOFORCE 3 | |||||
#define PROC_PROTMAX_ACTIVE 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_ */ |