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
This commit is contained in:
parent
9f2587c3b3
commit
2db91a3001
6 changed files with 53 additions and 104 deletions
|
|
@ -139,12 +139,6 @@ int create_silly_rename(
|
|||
IN const nfs41_fh *fh,
|
||||
OUT nfs41_component *silly);
|
||||
|
||||
void map_access_2_allowdeny(
|
||||
IN ULONG access_mask,
|
||||
IN ULONG access_mode,
|
||||
OUT uint32_t *allow,
|
||||
OUT uint32_t *deny);
|
||||
|
||||
bool_t multi_addr_find(
|
||||
IN const multi_addr4 *addrs,
|
||||
IN const netaddr4 *addr,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue