diff options
author | dzwdz | 2022-08-01 14:12:34 +0200 |
---|---|---|
committer | dzwdz | 2022-08-01 14:12:34 +0200 |
commit | aaf76cb6139267482aeef9215d514229058f0042 (patch) | |
tree | 68feabaeb09a31659d6fe5ab8c128c491534f619 /src/user/app/shell/shell.c | |
parent | a5333b094198487c68ad5bc43a67683030e04ed9 (diff) |
user/shell: add a whitelist builtin
Diffstat (limited to 'src/user/app/shell/shell.c')
-rw-r--r-- | src/user/app/shell/shell.c | 6 |
1 files changed, 6 insertions, 0 deletions
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 <stdlib.h> #include <string.h> #include <unistd.h> +#include <user/lib/fs/misc.h> 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); } |