From a3874dd089176c1ae8231de52e58d8121ae6d2f5 Mon Sep 17 00:00:00 2001 From: tiann Date: Mon, 3 Apr 2023 20:29:10 +0800 Subject: [PATCH] kernel: use ksud as root shell instead of /system/bin/sh --- kernel/sucompat.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/sucompat.c b/kernel/sucompat.c index ef294a54..e3078df7 100644 --- a/kernel/sucompat.c +++ b/kernel/sucompat.c @@ -15,6 +15,7 @@ #include "allowlist.h" #include "arch.h" #include "klog.h" // IWYU pragma: keep +#include "ksud.h" #define SU_PATH "/system/bin/su" #define SH_PATH "/system/bin/sh" @@ -95,7 +96,7 @@ int ksu_handle_execveat_sucompat(int *fd, struct filename **filename_ptr, void *argv, void *envp, int *flags) { struct filename *filename; - const char sh[] = SH_PATH; + const char sh[] = KSUD_PATH; const char su[] = SU_PATH; if (!filename_ptr)