]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/sys/imgact.h
xnu-1504.7.4.tar.gz
[apple/xnu.git] / bsd / sys / imgact.h
index 1bed0a7c5ee361791dd6aa67ba2790d3654710dd..fa9be04607e2c08d2d1bf926ee8194cd046d1e16 100644 (file)
@@ -99,12 +99,11 @@ struct image_params {
        char            *ip_p_comm;             /* optional alt p->p_comm */
        struct vfs_context      *ip_vfs_context;        /* VFS context */
        struct nameidata *ip_ndp;               /* current nameidata */
-       thread_t        ip_vfork_thread;        /* thread created, if vfork */
+       thread_t        ip_new_thread;          /* thread for spawn/vfork */
 
        struct label    *ip_execlabelp;         /* label of the executable */
        struct label    *ip_scriptlabelp;       /* label of the script */
        unsigned int    ip_csflags;             /* code signing flags */
-       int             ip_no_trans;            /* allow suid/sgid transition?*/
        void            *ip_px_sa;
        void            *ip_px_sfa;
        void            *ip_px_spa;
@@ -116,7 +115,11 @@ struct image_params {
 #define        IMGPF_NONE      0x00000000              /* No flags */
 #define        IMGPF_INTERPRET 0x00000001              /* Interpreter invoked */
 #define        IMGPF_POWERPC   0x00000002              /* ppc mode for x86 */
+#if CONFIG_EMBEDDED
+#undef IMGPF_POWERPC
+#endif
 #define        IMGPF_WAS_64BIT 0x00000004              /* exec from a 64Bit binary */
 #define        IMGPF_IS_64BIT  0x00000008              /* exec to a 64Bit binary */
+#define        IMGPF_SPAWN     0x00000010              /* spawn (without setexec) */
 
 #endif /* !_SYS_IMGACT */