diff options
author | Steve French <sfrench@samba.org> | 2004-02-17 21:31:25 +0000 |
---|---|---|
committer | Steve French <sfrench@samba.org> | 2004-02-17 21:31:25 +0000 |
commit | d5ad8c5099f0106660302df66fd8c8e9dd26c054 (patch) | |
tree | 8e321e629a6eb9723d051bac541c4f0bc07cdfa5 | |
parent | 8f3507338e3bb31c96e9073c2a894c72518388c3 (diff) | |
download | samba-d5ad8c5099f0106660302df66fd8c8e9dd26c054.tar.gz samba-d5ad8c5099f0106660302df66fd8c8e9dd26c054.tar.bz2 samba-d5ad8c5099f0106660302df66fd8c8e9dd26c054.zip |
Disable dev (MS_NODEV) on user mounts from cifs vfs
(This used to be commit 9b0d1072bc66d05d0e9afcbe0da349ccaa99ba6e)
-rwxr-xr-x | source3/client/mount.cifs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/client/mount.cifs.c b/source3/client/mount.cifs.c index 7a51ee4b9b..bb893d0106 100755 --- a/source3/client/mount.cifs.c +++ b/source3/client/mount.cifs.c @@ -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"); |