Skip to content

Commit 186b862

Browse files
koushChainsDD
authored andcommitted
shell uid always gets root.
Change-Id: Ic1d1a0eccf7fae96243c19bf8abc207b5b991200
1 parent f79e166 commit 186b862

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

su.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ int main(int argc, char *argv[])
355355
deny();
356356
}
357357

358-
if (su_from.uid == AID_ROOT)
358+
if (su_from.uid == AID_ROOT || su_from.uid == AID_SHELL)
359359
allow(shell);
360360

361361
if (stat(REQUESTOR_DATA_PATH, &st) < 0) {

0 commit comments

Comments
 (0)