Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/procctl.h
Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Lines | |||||
#define PROC_REAP_GETPIDS 5 /* get descendants */ | #define PROC_REAP_GETPIDS 5 /* get descendants */ | ||||
#define PROC_REAP_KILL 6 /* kill descendants */ | #define PROC_REAP_KILL 6 /* kill descendants */ | ||||
#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_STATUS 14 /* query ASLR 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 46 Lines • ▼ Show 20 Lines | |||||
#define REAPER_KILL_SUBTREE 0x00000002 | #define REAPER_KILL_SUBTREE 0x00000002 | ||||
#define PROC_TRACE_CTL_ENABLE 1 | #define PROC_TRACE_CTL_ENABLE 1 | ||||
#define PROC_TRACE_CTL_DISABLE 2 | #define PROC_TRACE_CTL_DISABLE 2 | ||||
#define PROC_TRACE_CTL_DISABLE_EXEC 3 | #define PROC_TRACE_CTL_DISABLE_EXEC 3 | ||||
#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_DISABLE 2 | |||||
#define PROC_ASLR_NOFORCE 3 | |||||
#define PROC_ASLR_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_ */ |