Skip to content

Commit

Permalink
Update kernel/allowlist.c
Browse files Browse the repository at this point in the history
Co-authored-by: LoveSy <[email protected]>
  • Loading branch information
5ec1cff and yujincheng08 authored Mar 28, 2024
1 parent 4467587 commit dc340e9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions kernel/allowlist.c
Original file line number Diff line number Diff line change
Expand Up @@ -295,12 +295,11 @@ bool __ksu_is_allow_uid(uid_t uid)
bool ksu_uid_should_umount(uid_t uid)
{
struct app_profile profile = { .current_uid = uid };
bool found;
if (likely(ksu_is_manager_uid_valid()) && unlikely(ksu_get_manager_uid() == uid)) {
// we should not umount on manager!
return false;
}
found = ksu_get_app_profile(&profile);
bool found = ksu_get_app_profile(&profile);
if (!found) {
// no app profile found, it must be non root app
return default_non_root_profile.umount_modules;
Expand Down

0 comments on commit dc340e9

Please sign in to comment.