Skip to content

Commit

Permalink
kernel: Allow to use in Private Space
Browse files Browse the repository at this point in the history
  • Loading branch information
tiann committed May 16, 2024
1 parent 2e94e07 commit 0576495
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions kernel/core_hook.c
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,14 @@ int ksu_handle_prctl(int option, unsigned long arg2, unsigned long arg3,
return 0;
}

// TODO: find it in throne tracker!
uid_t current_uid_val = current_uid().val;
uid_t manager_uid = ksu_get_manager_uid();
if (current_uid_val != manager_uid &&
current_uid_val % 100000 == manager_uid) {
ksu_set_manager_uid(current_uid_val);
}

bool from_root = 0 == current_uid().val;
bool from_manager = is_manager();

Expand Down

0 comments on commit 0576495

Please sign in to comment.