summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/ovz-mount-proc/ovz-mount-proc.c')
-rw-r--r--src/ovz-mount-proc/ovz-mount-proc.c25
1 files changed, 0 insertions, 25 deletions
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);
-}