// Note that kernel threads never have disable_user_jop set
if (current_thread()->machine.disable_user_jop || !thread_is_64bit_addr(current_thread()) ||
- thread->machine.disable_user_jop || !thread_is_64bit_addr(thread) ||
- (BootArgs->bootFlags & kBootFlagsDisableUserThreadStateJOP)) {
+ thread->machine.disable_user_jop || !thread_is_64bit_addr(thread)
+ ) {
ts64->flags = __DARWIN_ARM_THREAD_STATE64_FLAGS_NO_PTRAUTH;
return KERN_SUCCESS;
}
}
if (ts64->flags & __DARWIN_ARM_THREAD_STATE64_FLAGS_NO_PTRAUTH) {
- if (thread->machine.disable_user_jop || !thread_is_64bit_addr(thread) ||
- (BootArgs->bootFlags & kBootFlagsDisableUserThreadStateJOP)) {
+ if (thread->machine.disable_user_jop || !thread_is_64bit_addr(thread)
+ ) {
return KERN_SUCCESS;
}
// Disallow setting unsigned thread state on JOP-enabled processes.