]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
libcli/security: Make ‘replace_sid’ parameter const
authorJo Sutton <josutton@catalyst.net.nz>
Tue, 9 Jan 2024 02:33:38 +0000 (15:33 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 8 Feb 2024 02:48:44 +0000 (02:48 +0000)
Signed-off-by: Jo Sutton <josutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
libcli/security/access_check.c
libcli/security/access_check.h

index e3dfe3df49c91e38a72e0d216ac0aa3e76cde4ae..3dc982332da6e8dc4601e2b07ca9849b5fe8643a 100644 (file)
@@ -946,7 +946,7 @@ NTSTATUS sec_access_check_ds(const struct security_descriptor *sd,
                             uint32_t access_desired,
                             uint32_t *access_granted,
                             struct object_tree *tree,
-                            struct dom_sid *replace_sid)
+                            const struct dom_sid *replace_sid)
 {
        return sec_access_check_ds_implicit_owner(sd,
                                                  token,
index 7c424b9e05a268626ca7bdb7e1ee84920433e7d2..efe3d97f21084d8430325940010cb8504b9b89f0 100644 (file)
@@ -82,7 +82,7 @@ NTSTATUS sec_access_check_ds(const struct security_descriptor *sd,
                             uint32_t access_desired,
                             uint32_t *access_granted,
                             struct object_tree *tree,
-                            struct dom_sid *replace_sid);
+                            const struct dom_sid *replace_sid);
 
 bool insert_in_object_tree(TALLOC_CTX *mem_ctx,
                           const struct GUID *guid,