diff options
Diffstat (limited to 'executor/common_linux.h')
| -rw-r--r-- | executor/common_linux.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/executor/common_linux.h b/executor/common_linux.h index 6e9f6a7d4..24f553848 100644 --- a/executor/common_linux.h +++ b/executor/common_linux.h @@ -4228,7 +4228,8 @@ static int do_sandbox_android(int sandbox_arg) prctl(PR_SET_PDEATHSIG, SIGKILL, 0, 0, 0); setfilecon(".", SELINUX_LABEL_APP_DATA_FILE); - setcon(SELINUX_CONTEXT_UNTRUSTED_APP); + if (uid == UNTRUSTED_APP_UID) + setcon(SELINUX_CONTEXT_UNTRUSTED_APP); loop(); doexit(1); |
