kernel: use ksud as root shell instead of /system/bin/sh

This commit is contained in:
tiann
2023-04-03 20:29:10 +08:00
parent bdd5e31b6f
commit a3874dd089

View File

@@ -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)