git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5068c6
)
check for some more invalid bits in smb2 create
author
Andrew Tridgell
<tridge@samba.org>
Tue, 27 May 2008 04:07:11 +0000
(14:07 +1000)
committer
Andrew Tridgell
<tridge@samba.org>
Tue, 27 May 2008 04:07:11 +0000
(14:07 +1000)
source/ntvfs/posix/pvfs_open.c
patch
|
blob
|
history
diff --git
a/source/ntvfs/posix/pvfs_open.c
b/source/ntvfs/posix/pvfs_open.c
index 59b42fe751cf2ce6e628d295f9df829bbf23d3ee..328f064a573a0cde1bcc51b57f6c701ebda5f615 100644
(file)
--- a/
source/ntvfs/posix/pvfs_open.c
+++ b/
source/ntvfs/posix/pvfs_open.c
@@
-1147,6
+1147,15
@@
NTSTATUS pvfs_open(struct ntvfs_module_context *ntvfs,
return NT_STATUS_INVALID_PARAMETER;
}
+ if (access_mask & (SEC_MASK_INVALID | SEC_STD_SYNCHRONIZE)) {
+ return NT_STATUS_ACCESS_DENIED;
+ }
+
+ if (io->ntcreatex.in.file_attr & (FILE_ATTRIBUTE_DEVICE|
+ FILE_ATTRIBUTE_VOLUME)) {
+ return NT_STATUS_INVALID_PARAMETER;
+ }
+
/* resolve the cifs name to a posix name */
status = pvfs_resolve_name(pvfs, req, io->ntcreatex.in.fname,
PVFS_RESOLVE_STREAMS, &name);