X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/a991bd8d3e7fe02dbca0644054bab73c5b75324a..c3c9b80d004dbbfdf763edeb97968c6997e3b45b:/bsd/kern/kern_persona.c diff --git a/bsd/kern/kern_persona.c b/bsd/kern/kern_persona.c index b3470216a..31561cf42 100644 --- a/bsd/kern/kern_persona.c +++ b/bsd/kern/kern_persona.c @@ -998,8 +998,7 @@ persona_proc_adopt(proc_t p, struct persona *persona, kauth_cred_t auth_override /* Only Multiuser Mode needs to update the session login name to the persona name */ #if (TARGET_OS_IPHONE && !TARGET_OS_SIMULATOR) - volatile uint32_t *multiuser_flag_address = (volatile uint32_t *)(uintptr_t)(_COMM_PAGE_MULTIUSER_CONFIG); - uint32_t multiuser_flags = *multiuser_flag_address; + uint32_t multiuser_flags = COMM_PAGE_READ(uint32_t, MULTIUSER_CONFIG); /* set the login name of the session */ if (multiuser_flags) { struct session * sessp = proc_session(p);