Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/elf_common.h
Show First 20 Lines • Show All 756 Lines • ▼ Show 20 Lines | |||||
#define LL_DELTA 0x20 | #define LL_DELTA 0x20 | ||||
/* Values for n_type used in executables. */ | /* Values for n_type used in executables. */ | ||||
#define NT_FREEBSD_ABI_TAG 1 | #define NT_FREEBSD_ABI_TAG 1 | ||||
#define NT_FREEBSD_NOINIT_TAG 2 | #define NT_FREEBSD_NOINIT_TAG 2 | ||||
#define NT_FREEBSD_ARCH_TAG 3 | #define NT_FREEBSD_ARCH_TAG 3 | ||||
#define NT_FREEBSD_FEATURE_CTL 4 | #define NT_FREEBSD_FEATURE_CTL 4 | ||||
/* NT_FREEBSD_FEATURE_CTL desc[0] bits */ | |||||
#define NT_FREEBSD_FCTL_NO_ASLR 0x00000001 | |||||
emaste: For ASLR having only opt-out is reasonable, IMO.
For other bits (max_prot, W^X, etc.)… | |||||
Not Done Inline ActionsDiscussed on IRC, suggest either NT_FREEBSD_FCTL_ASLR_DIS or NT_FREEBSD_FCTL_ASLR_DISABLE - doesn't matter so much for this in isolation but want something that will have a regular pattern when we add MAX_PROT and other feature bits. emaste: Discussed on IRC, suggest either `NT_FREEBSD_FCTL_ASLR_DIS` or `NT_FREEBSD_FCTL_ASLR_DISABLE`… | |||||
Not Done Inline ActionsFlag name LGTM emaste: Flag name LGTM | |||||
/* Values for n_type. Used in core files. */ | /* Values for n_type. Used in core files. */ | ||||
#define NT_PRSTATUS 1 /* Process status. */ | #define NT_PRSTATUS 1 /* Process status. */ | ||||
#define NT_FPREGSET 2 /* Floating point registers. */ | #define NT_FPREGSET 2 /* Floating point registers. */ | ||||
#define NT_PRPSINFO 3 /* Process state info. */ | #define NT_PRPSINFO 3 /* Process state info. */ | ||||
#define NT_THRMISC 7 /* Thread miscellaneous info. */ | #define NT_THRMISC 7 /* Thread miscellaneous info. */ | ||||
#define NT_PROCSTAT_PROC 8 /* Procstat proc data. */ | #define NT_PROCSTAT_PROC 8 /* Procstat proc data. */ | ||||
#define NT_PROCSTAT_FILES 9 /* Procstat files data. */ | #define NT_PROCSTAT_FILES 9 /* Procstat files data. */ | ||||
#define NT_PROCSTAT_VMMAP 10 /* Procstat vmmap data. */ | #define NT_PROCSTAT_VMMAP 10 /* Procstat vmmap data. */ | ||||
▲ Show 20 Lines • Show All 641 Lines • Show Last 20 Lines |
For ASLR having only opt-out is reasonable, IMO.
For other bits (max_prot, W^X, etc.) initially we probably want both opt-in and opt-out, as there may be some time before we can enable features by default.