MS_SILENT flag cleaning up added to flags_to_propagation_type function. It was reported that bound mount propagation doesn't work in busybox as by default busybox mount applet sets the MS_SILENT flag for any mount operation. Moreover recently added flags_to_propagation_type function doesn't allow to do such operations as --make-[r]private --make-[r]shared etc. when MS_SILENT is on. The idea to clean MS_SILENT flag belongs to Denys Vlasenko <vda.linux@xxxxxxxxxxxxxx> Signed-off-by: Roman Borisov <ext-roman.borisov@xxxxxxxxx> --- fs/namespace.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fs/namespace.c b/fs/namespace.c index 60813f0..f219060 100644 --- a/fs/namespace.c +++ b/fs/namespace.c @@ -1423,7 +1423,7 @@ out_unlock: static int flags_to_propagation_type(int flags) { - int type = flags & ~MS_REC; + int type = flags & ~(MS_REC | MS_SILENT); /* Fail if any non-propagation flags are set */ if (type & ~(MS_SHARED | MS_PRIVATE | MS_SLAVE | MS_UNBINDABLE)) -- 1.7.0.4 -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html