From aaf76cb6139267482aeef9215d514229058f0042 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Mon, 1 Aug 2022 14:12:34 +0200 Subject: user/shell: add a whitelist builtin --- src/user/app/shell/shell.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/user/app/shell/shell.c') diff --git a/src/user/app/shell/shell.c b/src/user/app/shell/shell.c index f47dc8d..35450a8 100644 --- a/src/user/app/shell/shell.c +++ b/src/user/app/shell/shell.c @@ -7,6 +7,7 @@ #include #include #include +#include int main(); @@ -49,6 +50,11 @@ static void run(char *cmd) { // TODO process groups _syscall_mount(-1, argv[1], strlen(argv[1])); return; + } else if (!strcmp(argv[0], "whitelist")) { + MOUNT_AT("/") { + fs_whitelist(&argv[1]); + } + return; } else if (!strcmp(argv[0], "exit")) { exit(0); } -- cgit v1.2.3