X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/0a7de7458d150b5d4dffc935ba399be265ef0a1a..HEAD:/bsd/sys/imgact.h diff --git a/bsd/sys/imgact.h b/bsd/sys/imgact.h index 8d5da2872..30cabc1f9 100644 --- a/bsd/sys/imgact.h +++ b/bsd/sys/imgact.h @@ -95,6 +95,8 @@ struct image_params { char *ip_strings; /* base address for strings */ char *ip_strendp; /* current end pointer */ + char *ip_subsystem_root_path; /* filepath for the subsystem root */ + int ip_argspace; /* remaining space of NCARGS limit (argv+envv) */ int ip_strspace; /* remaining total string space */ @@ -118,10 +120,16 @@ struct image_params { void *ip_px_spa; void *ip_px_smpx; /* MAC-specific spawn attrs. */ void *ip_px_persona; /* persona args */ + void *ip_px_pcred_info; /* posix cred args */ void *ip_cs_error; /* codesigning error reason */ + char *ip_inherited_shared_region_id; /* inherited shared region id for ptr auth */ uint64_t ip_dyld_fsid; uint64_t ip_dyld_fsobjid; + uint64_t ip_inherited_jop_pid; + unsigned int ip_simulator_binary; /* simulator binary flags */ + + ipc_port_t ip_sc_port; /* SUID port. */ }; /* @@ -139,6 +147,18 @@ struct image_params { #define IMGPF_EXEC 0x00000100 /* exec */ #define IMGPF_HIGH_BITS_ASLR 0x00000200 /* randomize high bits of ASLR slide */ #define IMGPF_IS_64BIT_DATA 0x00000400 /* exec to a 64Bit register state */ +#define IMGPF_DRIVER 0x00000800 /* exec of a driver binary (no LC_MAIN) */ +#define IMGPF_RESLIDE 0x000001000 /* reslide the shared cache */ +#define IMGPF_PLUGIN_HOST_DISABLE_A_KEYS 0x000002000 /* process hosts plugins, disable ptr auth A keys */ +#define IMGPF_NOJOP 0x80000000 + + +/* + * Simulator binary flags + */ +#define IMGPF_SB_DEFAULT 0 /* Default value, did not check if it is a simulator binary */ +#define IMGPF_SB_TRUE 1 /* Binary is a simulator binary */ +#define IMGPF_SB_FALSE 2 /* Binary is not a simulator binary */ #endif /* !_SYS_IMGACT */