Disable dev (MS_NODEV) on user mounts from cifs vfs
authorSteve French <sfrench@samba.org>
Tue, 17 Feb 2004 21:31:25 +0000 (21:31 +0000)
committerSteve French <sfrench@samba.org>
Tue, 17 Feb 2004 21:31:25 +0000 (21:31 +0000)
source/client/mount.cifs.c

index 7a51ee4b9b8ec8ec02708b5548193b1c49cc7a03..bb893d0106aea3ec7b2d44947ba329493a11a625 100755 (executable)
@@ -752,7 +752,7 @@ int main(int argc, char ** argv)
 #ifndef CIFS_ALLOW_USR_SUID
                        /* Do not allow user mounts to control suid flag
                        for mount unless explicitly built that way */
-                       flags |= MS_NOSUID;
+                       flags |= MS_NOSUID | MS_NODEV;
 #endif                                         
                } else {
                        printf("mount error: permission denied or not superuser and cifs.mount not installed SUID\n");