X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fsecure-mount.c;h=3ca425719565dcad8ac9a2fd572c30e7673cb375;hb=7f353bd2735388d987b0a9afb484ae044639cd33;hp=a58edf35098d9b907aaee16af3d02f6b542249e8;hpb=46fa9a5ebe8b30b44fd52be890fe29fd0346edf2;p=util-vserver.git diff --git a/src/secure-mount.c b/src/secure-mount.c index a58edf3..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 { @@ -418,6 +430,8 @@ canHandleInternal(struct MountInfo const *mnt) if (!mnt) return false; else if ((mnt->flag & (MS_BIND|MS_MOVE))) return true; + else if ((mnt->flag & (MS_SHARED|MS_SLAVE|MS_PRIVATE| + MS_UNBINDABLE))) return true; else if (mnt->type==0) return false; for (i=FS+0; *i!=0; ++i)