summaryrefslogtreecommitdiff
path: root/Userland/Libraries
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries')
-rw-r--r--Userland/Libraries/LibC/unistd.cpp15
-rw-r--r--Userland/Libraries/LibC/unistd.h2
2 files changed, 0 insertions, 17 deletions
diff --git a/Userland/Libraries/LibC/unistd.cpp b/Userland/Libraries/LibC/unistd.cpp
index 2b4beee700..fa22393b3e 100644
--- a/Userland/Libraries/LibC/unistd.cpp
+++ b/Userland/Libraries/LibC/unistd.cpp
@@ -763,21 +763,6 @@ int set_process_name(const char* name, size_t name_length)
__RETURN_WITH_ERRNO(rc, rc, -1);
}
-int chroot(const char* path)
-{
- return chroot_with_mount_flags(path, -1);
-}
-
-int chroot_with_mount_flags(const char* path, int mount_flags)
-{
- if (!path) {
- errno = EFAULT;
- return -1;
- }
- int rc = syscall(SC_chroot, path, strlen(path), mount_flags);
- __RETURN_WITH_ERRNO(rc, rc, -1);
-}
-
int pledge(const char* promises, const char* execpromises)
{
Syscall::SC_pledge_params params {
diff --git a/Userland/Libraries/LibC/unistd.h b/Userland/Libraries/LibC/unistd.h
index 20a856f2e0..e681ae1b6a 100644
--- a/Userland/Libraries/LibC/unistd.h
+++ b/Userland/Libraries/LibC/unistd.h
@@ -46,8 +46,6 @@ int execvp(const char* filename, char* const argv[]);
int execl(const char* filename, const char* arg, ...);
int execle(const char* filename, const char* arg, ...);
int execlp(const char* filename, const char* arg, ...);
-int chroot(const char* path);
-int chroot_with_mount_flags(const char* path, int mount_flags);
void sync();
__attribute__((noreturn)) void _exit(int status);
pid_t getsid(pid_t);