From: Dmitry V. Levin Date: Tue, 16 Jun 2015 10:53:25 +0000 (+0000) Subject: mount: update parser to match kernel behaviour X-Git-Tag: v4.11~504 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a8630727061625e4e5013f7037e732dfb6e41f40;p=strace mount: update parser to match kernel behaviour * mount.c (sys_mount): Do not decode type and data strings for MS_SHARED, MS_PRIVATE, MS_SLAVE, and MS_UNBINDABLE mount flags that do not imply valid strings. --- diff --git a/mount.c b/mount.c index 2f7f0cae..d980d75c 100644 --- a/mount.c +++ b/mount.c @@ -48,7 +48,8 @@ SYS_FUNC(mount) if (flags & MS_REMOUNT) ignore_type = true; - else if (flags & (MS_BIND | MS_MOVE)) + else if (flags & (MS_BIND | MS_MOVE | MS_SHARED + | MS_PRIVATE | MS_SLAVE | MS_UNBINDABLE)) ignore_type = ignore_data = true; printpath(tcp, tcp->u_arg[0]);