userspace: Add nologin "shell"

This commit is contained in:
Bananymous 2025-06-02 12:26:16 +03:00
parent 755d41ca4e
commit e473118ec8
3 changed files with 17 additions and 0 deletions

View File

@ -23,6 +23,7 @@ set(USERSPACE_PROGRAMS
ls ls
meminfo meminfo
mkdir mkdir
nologin
nslookup nslookup
poweroff poweroff
ProgramLauncher ProgramLauncher

View File

@ -0,0 +1,9 @@
set(SOURCES
main.cpp
)
add_executable(nologin ${SOURCES})
banan_link_library(nologin ban)
banan_link_library(nologin libc)
install(TARGETS nologin OPTIONAL)

View File

@ -0,0 +1,7 @@
#include <stdio.h>
int main()
{
printf("This account is currently not available.\n");
return 1;
}