summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2010-06-30 10:39:43 +0200
committerSimo Sorce <idra@samba.org>2010-07-27 10:27:15 -0400
commitc3186f22c5d501cc6afed7556579906d27763251 (patch)
treed1a1ea4d6c799377529551ea588227536963ef2b /source3
parent1be454538b2e4d242be90e43fab9eb09f0b07a57 (diff)
downloadsamba-c3186f22c5d501cc6afed7556579906d27763251.tar.gz
samba-c3186f22c5d501cc6afed7556579906d27763251.tar.bz2
samba-c3186f22c5d501cc6afed7556579906d27763251.zip
s3-lib: Make the standard_mapping parameter const.
Signed-off-by: Jim McDonough <jmcd@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/include/proto.h2
-rw-r--r--source3/lib/util_seaccess.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 80adacdb27..8dbe758e20 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -1339,7 +1339,7 @@ bool pull_reg_multi_sz(TALLOC_CTX *mem_ctx, const DATA_BLOB *blob, const char **
void se_map_generic(uint32 *access_mask, const struct generic_mapping *mapping);
void security_acl_map_generic(struct security_acl *sa, const struct generic_mapping *mapping);
-void se_map_standard(uint32 *access_mask, struct standard_mapping *mapping);
+void se_map_standard(uint32 *access_mask, const struct standard_mapping *mapping);
NTSTATUS se_access_check(const struct security_descriptor *sd, const NT_USER_TOKEN *token,
uint32 acc_desired, uint32 *acc_granted);
diff --git a/source3/lib/util_seaccess.c b/source3/lib/util_seaccess.c
index e5562b5289..b81db43d03 100644
--- a/source3/lib/util_seaccess.c
+++ b/source3/lib/util_seaccess.c
@@ -82,7 +82,7 @@ void security_acl_map_generic(struct security_acl *sa,
objects. Each type of object has its own mapping of standard to object
specific access rights. */
-void se_map_standard(uint32 *access_mask, struct standard_mapping *mapping)
+void se_map_standard(uint32 *access_mask, const struct standard_mapping *mapping)
{
uint32 old_mask = *access_mask;