From: Daniel Hokka Zakrisson Date: Tue, 23 Jun 2009 18:16:53 +0000 (+0000) Subject: Add mount flags that are "recent". X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a8dc4bb25bee0d14ff8f8b7f88e35db86d263190;p=util-vserver.git Add mount flags that are "recent". git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2840 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- diff --git a/src/exec-remount.c b/src/exec-remount.c index d2b693c..caa5970 100644 --- a/src/exec-remount.c +++ b/src/exec-remount.c @@ -40,6 +40,10 @@ #define CMD_VERSION 0x1001 #define CMD_MTAB 0x2001 +#ifndef MNT_DETACH +#define MNT_DETACH 0x0002 +#endif + static struct option const CMDLINE_OPTIONS[] = { { "help", no_argument, 0, CMD_HELP }, diff --git a/src/secure-mount.c b/src/secure-mount.c index 3ef6edf..3ca4257 100644 --- a/src/secure-mount.c +++ b/src/secure-mount.c @@ -112,7 +112,19 @@ CMDLINE_OPTIONS[] = { }; #ifndef MS_REC -# define MS_REC 0x4000 +#define MS_REC 0x4000 +#endif +#ifndef MS_UNBINDABLE +#define MS_UNBINDABLE (1<<17) +#endif +#ifndef MS_PRIVATE +#define MS_PRIVATE (1<<18) +#endif +#ifndef MS_SLAVE +#define MS_SLAVE (1<<19) +#endif +#ifndef MS_SHARED +#define MS_SHARED (1<<20) #endif static struct FstabOption {