diff options
author | Gordon Ross <gwr@racktopsystems.com> | 2022-01-10 20:03:26 -0500 |
---|---|---|
committer | Toomas Soome <tsoome@me.com> | 2022-11-02 18:14:06 +0200 |
commit | 48f31ae786d40628787e82ea7955dca7c6ffbeae (patch) | |
tree | 4fba50b25afc54f876d9879177f1dfeaca87b99a /usr/src | |
parent | 6cd1873200c86b91025b7a2ed64da4fe509f8187 (diff) | |
download | illumos-gate-48f31ae786d40628787e82ea7955dca7c6ffbeae.tar.gz |
15099 WPTS BVT_SMB2Basic_ChangeNotify_ChangeSecurity
Reviewed by: Andy Stormont <astormont@racktopsystems.com>
Reviewed by: Joyce McIntosh <jmcintosh@racktopsystems.com>
Approved by: Dan McDonald <danmcd@mnx.io>
Diffstat (limited to 'usr/src')
-rw-r--r-- | usr/src/uts/common/fs/smbsrv/smb_fsops.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/usr/src/uts/common/fs/smbsrv/smb_fsops.c b/usr/src/uts/common/fs/smbsrv/smb_fsops.c index 1d46497877..ef58f15fa8 100644 --- a/usr/src/uts/common/fs/smbsrv/smb_fsops.c +++ b/usr/src/uts/common/fs/smbsrv/smb_fsops.c @@ -21,6 +21,7 @@ /* * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved. * Copyright 2012-2021 Tintri by DDN, Inc. All rights reserved. + * Copyright 2022 RackTop Systems, Inc. */ #include <sys/sid.h> @@ -2335,6 +2336,11 @@ smb_fsop_aclwrite(smb_request_t *sr, cred_t *cr, smb_node_t *snode, flags = ATTR_NOACLCHECK; error = smb_vop_acl_write(snode->vp, acl, flags, cr); + if (error == 0 && snode->n_dnode != NULL) { + // FILE_NOTIFY_CHANGE_SECURITY + smb_node_notify_change(snode->n_dnode, + FILE_ACTION_MODIFIED, snode->od_name); + } } if (dacl && sacl) |