summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/secdesc.c2
-rw-r--r--source3/lib/sharesec.c2
-rw-r--r--source3/lib/util_seaccess.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/source3/lib/secdesc.c b/source3/lib/secdesc.c
index 34954aa7a5..99f5c0cb12 100644
--- a/source3/lib/secdesc.c
+++ b/source3/lib/secdesc.c
@@ -24,7 +24,7 @@
/* Map generic permissions to file object specific permissions */
-struct generic_mapping file_generic_mapping = {
+const struct generic_mapping file_generic_mapping = {
FILE_GENERIC_READ,
FILE_GENERIC_WRITE,
FILE_GENERIC_EXECUTE,
diff --git a/source3/lib/sharesec.c b/source3/lib/sharesec.c
index 0363055a58..d30ccbe7eb 100644
--- a/source3/lib/sharesec.c
+++ b/source3/lib/sharesec.c
@@ -29,7 +29,7 @@ static TDB_CONTEXT *share_tdb; /* used for share security descriptors */
/* Map generic permissions to file object specific permissions */
-static struct generic_mapping file_generic_mapping = {
+static const struct generic_mapping file_generic_mapping = {
FILE_GENERIC_READ,
FILE_GENERIC_WRITE,
FILE_GENERIC_EXECUTE,
diff --git a/source3/lib/util_seaccess.c b/source3/lib/util_seaccess.c
index f725656085..8d49ea2c8b 100644
--- a/source3/lib/util_seaccess.c
+++ b/source3/lib/util_seaccess.c
@@ -146,7 +146,7 @@ static BOOL get_max_access( SEC_ACL *the_acl, const NT_USER_TOKEN *token, uint32
objects. Each type of object has its own mapping of generic to object
specific access rights. */
-void se_map_generic(uint32 *access_mask, struct generic_mapping *mapping)
+void se_map_generic(uint32 *access_mask, const struct generic_mapping *mapping)
{
uint32 old_mask = *access_mask;