]> err.no Git - linux-2.6/commit
[CIFS] CIFS should honour umask
authorSteve French <sfrench@us.ibm.com>
Fri, 8 Jun 2007 14:55:14 +0000 (14:55 +0000)
committerSteve French <sfrench@us.ibm.com>
Fri, 8 Jun 2007 14:55:14 +0000 (14:55 +0000)
commit3ce53fc4c57603d99c330a6ee2fe96d94f2d350f
tree54a5e999cc6044669139fb5e3a7cc0a1db31e86f
parent100c1ddc98e070c1b595d6bad329fb57bc57313c
[CIFS] CIFS should honour umask

This patch makes CIFS honour a process' umask like other filesystems.
Of course the server is still free to munge the permissions if it wants
to; but the client will send the "right" permissions to begin with.

A few caveats:

1) It only applies to filesystems that have CAP_UNIX (aka support unix
extensions)
2) It applies the correct mode to the follow up CIFSSMBUnixSetPerms()
after remote creation

When mode to CIFS/NTFS ACL mapping is complete we can do the
same thing for that case for servers which do not
support the Unix Extensions.

Signed-off-by: Matt Keenen <matt@opcode-solutions.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/dir.c
fs/cifs/inode.c