]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[CIFS] CIFS currently allows for permissions to be changed on files, even
authorJeff Layton <jlayton@redhat.com>
Mon, 12 May 2008 22:23:49 +0000 (22:23 +0000)
committerSteve French <sfrench@us.ibm.com>
Mon, 12 May 2008 22:23:49 +0000 (22:23 +0000)
commitd0a9c078db4769f7305ff9774558776d12bfb25b
tree689bfe5a751c9b584202e8647ac03724eda0a378
parentc714a534d85576af21b06be605ca55cb2fb887ee
[CIFS] CIFS currently allows for permissions to be changed on files, even
when unix extensions and cifsacl support are disabled. These
permissions changes are "ephemeral" however. They are lost whenever
a share is mounted and unmounted, or when memory pressure forces
the inode out of the cache.

Because of this, we'd like to introduce a behavior change to make
CIFS behave more like local DOS/Windows filesystems. When unix
extensions and cifsacl support aren't enabled, then don't silently
ignore changes to permission bits that can't be reflected on the
server.

Still, there may be people relying on the current behavior for
certain applications. This patch adds a new "dynperm" (and a
corresponding "nodynperm") mount option that will be intended
to make the client fall back to legacy behavior when setting
these modes.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/cifs_fs_sb.h
fs/cifs/connect.c