ms-nfs41-client/daemon
Olga Kornievskaia 2db91a3001 deny setattr for size if not opened for write
proposes an alternate solution for attempts to set file size without an open sta
teid.  instead of acquiring one by sending OPEN, fail the request with ACCESS_DE
NIED

according the MS File System Algorithms documentation for setting FileAllocation
Information and FileEndOfFileInformation [http://msdn.microsoft.com/en-us/librar
y/ff469355%28v=PROT.10%29.aspx]:
"If Open.GrantedAccess does not contain FILE_WRITE_DATA, the operation MUST be f
ailed with STATUS_ACCESS_DENIED"

-removes open_owner_id, access_mask, access_mode from setattr upcall arguments
-moves map_access_2_allowdeny() back to open.c as a static function, since handl
e_setattr() was its only other call site
2011-06-27 14:51:15 -04:00
..
acl.c printing received nfs4 access mask 2011-04-14 20:14:48 -04:00
callback_server.c callback: replay cache for back channel 2011-04-12 15:32:47 -04:00
callback_xdr.c callback: replay cache for back channel 2011-04-12 15:32:47 -04:00
daemon_debug.c [cosmetic] fixing line-endings in rpc_error_string 2011-06-02 13:20:52 -04:00
daemon_debug.h [cosmetic] adding gssauth_string for debug 2011-05-19 12:02:06 -04:00
from_kernel.h adding query for FileInternalInformation infoclass 2011-04-12 14:06:13 -04:00
getattr.c moving session and open_state in upcall header 2011-04-13 20:07:37 -04:00
idmap.c adding --noldap startup option 2010-12-02 17:43:12 -05:00
idmap.h idmap.c for ldap caching and configuration 2010-11-08 12:54:40 -05:00
list.h fresh git tree for public release 2010-10-12 10:15:48 -04:00
lock.c lock: address differences in lock semantics 2011-06-13 12:02:59 -04:00
lookup.c OP_GETATTR queries OWNER and OWNER_GROUP 2011-03-08 13:34:25 -05:00
makefile fresh git tree for public release 2010-10-12 10:15:48 -04:00
mount.c moving session and open_state in upcall header 2011-04-13 20:07:37 -04:00
name_cache.c name cache: no longer copies fh for negative entries 2011-06-14 12:36:07 -04:00
name_cache.h name cache: insert supports negative entries 2010-10-12 10:35:43 -04:00
namespace.c memory leak in nfs41_root_create 2010-12-02 14:22:06 -05:00
nfs41.h cache volume attrs with superblock 2011-06-20 10:49:53 -04:00
nfs41_callback.h callback: replay cache for back channel 2011-04-12 15:32:47 -04:00
nfs41_client.c getdomainname stores machine's domain name 2011-04-12 15:40:26 -04:00
nfs41_compound.c ensuring exactly once semantics for open 2011-05-24 12:33:58 -04:00
nfs41_compound.h recovery: avoid recursive state recovery 2010-12-06 14:29:01 -05:00
nfs41_const.h asking for persistent session from a server 2011-05-23 16:35:38 -04:00
nfs41_daemon.c dont call upcall_cleanup if versions were mismatched 2011-04-27 16:47:40 -04:00
nfs41_ops.c pnfs: fix for BADLAYOUT error from LAYOUTGET 2011-06-20 10:50:16 -04:00
nfs41_ops.h pnfs: fix for BADLAYOUT error from LAYOUTGET 2011-06-20 10:50:16 -04:00
nfs41_rpc.c handling rpc_autherr 2011-06-20 12:15:25 -04:00
nfs41_server.c propagate errors from nfs41_name_cache_create() 2011-01-10 15:16:17 -05:00
nfs41_session.c asking for persistent session from a server 2011-05-23 16:35:38 -04:00
nfs41_superblock.c cache volume attrs with superblock 2011-06-20 10:49:53 -04:00
nfs41_types.h xdr encode decode acl and dacl attributes 2011-04-12 14:07:24 -04:00
nfs41_xdr.c namedattr: xdr for OPENATTR 2011-06-14 11:57:52 -04:00
nfs41_xdr.h xdr encode decode acl and dacl attributes 2011-04-12 14:07:24 -04:00
open.c deny setattr for size if not opened for write 2011-06-27 14:51:15 -04:00
pnfs.h pnfs: new locking model for layouts 2011-03-22 14:49:25 -04:00
pnfs_debug.c fresh git tree for public release 2010-10-12 10:15:48 -04:00
pnfs_device.c pnfs: readwrite uses pnfs_layout_state 2011-03-22 14:49:24 -04:00
pnfs_io.c pnfs: readwrite uses pnfs_layout_state 2011-03-22 14:49:24 -04:00
pnfs_layout.c pnfs: fix for BADLAYOUT error from LAYOUTGET 2011-06-20 10:50:16 -04:00
readdir.c moving session and open_state in upcall header 2011-04-13 20:07:37 -04:00
readwrite.c moving session and open_state in upcall header 2011-04-13 20:07:37 -04:00
service.c warnings from WDK 6000 2010-10-19 11:17:29 -04:00
service.h first stab at nfsd as a service 2010-10-12 10:36:03 -04:00
setattr.c deny setattr for size if not opened for write 2011-06-27 14:51:15 -04:00
sources idmap.c for ldap caching and configuration 2010-11-08 12:54:40 -05:00
symlink.c moving session and open_state in upcall header 2011-04-13 20:07:37 -04:00
tree.h replace rbtree implementation with tree.h from freebsd 2010-12-01 10:25:29 -05:00
upcall.c dont call upcall_cleanup if versions were mismatched 2011-04-27 16:47:40 -04:00
upcall.h deny setattr for size if not opened for write 2011-06-27 14:51:15 -04:00
util.c deny setattr for size if not opened for write 2011-06-27 14:51:15 -04:00
util.h deny setattr for size if not opened for write 2011-06-27 14:51:15 -04:00
volume.c cache volume attrs with superblock 2011-06-20 10:49:53 -04:00