summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGordon Ross <gwr@racktopsystems.com>2022-01-10 19:11:01 -0500
committerToomas Soome <tsoome@me.com>2022-11-02 18:12:41 +0200
commit6cd1873200c86b91025b7a2ed64da4fe509f8187 (patch)
tree26919d0d3bd3cf26aa2c7ecffe1bee9aa762aa3d
parentb202d9e70f4ebef67c6d2e0e86348704df24fc30 (diff)
downloadillumos-joyent-6cd1873200c86b91025b7a2ed64da4fe509f8187.tar.gz
15098 WPTS BVT_SMB2Basic_ChangeNotify_NoFileListDirectoryInGrantedAccess
Reviewed by: Andy Stormont <astormont@racktopsystems.com> Reviewed by: Joyce McIntosh <jmcintosh@racktopsystems.com> Reviewed by: Matt Barden <mbarden@tintri.com> Approved by: Dan McDonald <danmcd@mnx.io>
-rw-r--r--usr/src/uts/common/fs/smbsrv/smb_notify.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/usr/src/uts/common/fs/smbsrv/smb_notify.c b/usr/src/uts/common/fs/smbsrv/smb_notify.c
index 602fa1db3b..4a79026b8b 100644
--- a/usr/src/uts/common/fs/smbsrv/smb_notify.c
+++ b/usr/src/uts/common/fs/smbsrv/smb_notify.c
@@ -22,6 +22,7 @@
/*
* Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
* Copyright 2020 Tintri by DDN, Inc. All rights reserved.
+ * Copyright 2022 RackTop Systems, Inc.
*/
/*
@@ -198,6 +199,9 @@ smb_notify_act1(smb_request_t *sr, uint32_t buflen, uint32_t filter)
return (NT_STATUS_INVALID_PARAMETER);
}
+ if ((of->f_granted_access & FILE_LIST_DIRECTORY) == 0)
+ return (NT_STATUS_ACCESS_DENIED);
+
mutex_enter(&of->f_mutex);
/*