s3:smbd: make psbuf arg to make_default_acl_posix() const
authorRalph Boehme <slow@samba.org>
Fri, 18 May 2018 11:14:57 +0000 (13:14 +0200)
committerJeremy Allison <jra@samba.org>
Fri, 18 May 2018 17:03:25 +0000 (19:03 +0200)
Bug: https://bugzilla.samba.org/show_bug.cgi?id=13175

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/posix_acls.c
source3/smbd/proto.h

index 8d42535d877122272b7da0c9d916d9f89b7af157..6396f818176115c6800bd3c954262841eab61512 100644 (file)
@@ -4779,7 +4779,7 @@ int posix_sys_acl_blob_get_fd(vfs_handle_struct *handle,
 
 static NTSTATUS make_default_acl_posix(TALLOC_CTX *ctx,
                                       const char *name,
-                                      SMB_STRUCT_STAT *psbuf,
+                                      const SMB_STRUCT_STAT *psbuf,
                                       struct security_descriptor **ppdesc)
 {
        struct dom_sid owner_sid, group_sid;
@@ -4886,7 +4886,7 @@ static NTSTATUS make_default_acl_posix(TALLOC_CTX *ctx,
 
 static NTSTATUS make_default_acl_windows(TALLOC_CTX *ctx,
                                         const char *name,
-                                        SMB_STRUCT_STAT *psbuf,
+                                        const SMB_STRUCT_STAT *psbuf,
                                         struct security_descriptor **ppdesc)
 {
        struct dom_sid owner_sid, group_sid;
@@ -4958,7 +4958,7 @@ static NTSTATUS make_default_acl_windows(TALLOC_CTX *ctx,
 
 static NTSTATUS make_default_acl_everyone(TALLOC_CTX *ctx,
                                          const char *name,
-                                         SMB_STRUCT_STAT *psbuf,
+                                         const SMB_STRUCT_STAT *psbuf,
                                          struct security_descriptor **ppdesc)
 {
        struct dom_sid owner_sid, group_sid;
@@ -5022,7 +5022,7 @@ NTSTATUS make_default_filesystem_acl(
        TALLOC_CTX *ctx,
        enum default_acl_style acl_style,
        const char *name,
-       SMB_STRUCT_STAT *psbuf,
+       const SMB_STRUCT_STAT *psbuf,
        struct security_descriptor **ppdesc)
 {
        NTSTATUS status;
index bee7acadeeafb757724907bbf9af24a345422146..262338d81e4625266bca2c125e00571977d4aae0 100644 (file)
@@ -819,7 +819,7 @@ NTSTATUS make_default_filesystem_acl(
        TALLOC_CTX *ctx,
        enum default_acl_style acl_style,
        const char *name,
-       SMB_STRUCT_STAT *psbuf,
+       const SMB_STRUCT_STAT *psbuf,
        struct security_descriptor **ppdesc);
 
 /* The following definitions come from smbd/process.c  */