summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ovz-mount-proc/Makefile16
-rw-r--r--src/ovz-mount-proc/ovz-mount-proc.c25
2 files changed, 0 insertions, 41 deletions
diff --git a/src/ovz-mount-proc/Makefile b/src/ovz-mount-proc/Makefile
deleted file mode 100644
index 0859a49..0000000
--- a/src/ovz-mount-proc/Makefile
+++ /dev/null
@@ -1,16 +0,0 @@
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-CC = gcc
-LD = gcc
-
-TARGETS = ovz-mount-proc
-
-all: $(TARGETS)
-
-ovz-mount-proc: ovz-mount-proc.o
- $(CC) -static -Wall -o $@ $^
-
-clean:
- rm -f $(TARGETS)
- rm -f *.o *~
diff --git a/src/ovz-mount-proc/ovz-mount-proc.c b/src/ovz-mount-proc/ovz-mount-proc.c
deleted file mode 100644
index 866bcf6..0000000
--- a/src/ovz-mount-proc/ovz-mount-proc.c
+++ /dev/null
@@ -1,25 +0,0 @@
-/* Simple prog to mount /proc inside a VPS.
- * Can be statically compiled with dietlibc:
- * diet -Os gcc -static -s -o mount.proc mount.proc.c
- *
- * By Kir Kolyshkin <kir-at-sw-dot-ru>.
- * Licensed under GNU GPL version 2.
- */
-
-#include <sys/mount.h>
-#include <sys/stat.h>
-#include <sys/types.h>
-
-/* Taken from /usr/src/linux/include/fs.h */
-#define MS_POSIXACL (1<<16) /* VFS does not apply the umask */
-#define MS_ACTIVE (1<<30)
-#define MS_NOUSER (1<<31)
-
-int main(void)
-{
- /* "Normal" mount uses the same flags, so should we... */
- unsigned long flags = MS_POSIXACL|MS_ACTIVE|MS_NOUSER|0xec0000;
-
- mkdir("/proc", 0755);
- return mount("none", "/proc", "proc", flags, 0);
-}