summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2010-09-03 20:30:50 +1000
committerAndrew Bartlett <abartlet@samba.org>2010-09-11 18:46:12 +1000
commite3edd7ca3ad73ff81a6ffddfeae208b930766e86 (patch)
tree7e63003ec0d04e5506ae86be5deecfb75ea5e371
parent4bf09967a40814619199a1ec6c7424612a767071 (diff)
downloadsamba-e3edd7ca3ad73ff81a6ffddfeae208b930766e86.tar.gz
samba-e3edd7ca3ad73ff81a6ffddfeae208b930766e86.tar.bz2
samba-e3edd7ca3ad73ff81a6ffddfeae208b930766e86.zip
s3-privs Add const
Signed-off-by: Andrew Tridgell <tridge@samba.org>
-rw-r--r--source3/include/proto.h6
-rw-r--r--source3/lib/privileges.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index f316a377dc..03196c30ed 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -639,10 +639,10 @@ NTSTATUS privilege_enumerate_accounts(struct dom_sid **sids, int *num_sids);
NTSTATUS privilege_enum_sids(enum sec_privilege privilege, TALLOC_CTX *mem_ctx,
struct dom_sid **sids, int *num_sids);
bool grant_privilege_set(const struct dom_sid *sid, struct lsa_PrivilegeSet *set);
-bool grant_privilege_by_name(struct dom_sid *sid, const char *name);
-bool revoke_all_privileges( struct dom_sid *sid );
+bool grant_privilege_by_name( const struct dom_sid *sid, const char *name);
+bool revoke_all_privileges( const struct dom_sid *sid );
bool revoke_privilege_set(const struct dom_sid *sid, struct lsa_PrivilegeSet *set);
-bool revoke_privilege_by_name(struct dom_sid *sid, const char *name);
+bool revoke_privilege_by_name(const struct dom_sid *sid, const char *name);
NTSTATUS privilege_create_account(const struct dom_sid *sid );
NTSTATUS privilege_delete_account(const struct dom_sid *sid);
NTSTATUS privilege_set_init(PRIVILEGE_SET *priv_set);
diff --git a/source3/lib/privileges.c b/source3/lib/privileges.c
index 5a54a14033..af4c0966f7 100644
--- a/source3/lib/privileges.c
+++ b/source3/lib/privileges.c
@@ -344,7 +344,7 @@ static bool grant_privilege_bitmap(const struct dom_sid *sid, const uint64_t pri
Add a privilege based on its name
*********************************************************************/
-bool grant_privilege_by_name(struct dom_sid *sid, const char *name)
+bool grant_privilege_by_name(const struct dom_sid *sid, const char *name)
{
uint64_t mask;
@@ -411,7 +411,7 @@ bool revoke_privilege_set(const struct dom_sid *sid, struct lsa_PrivilegeSet *se
Revoke all privileges
*********************************************************************/
-bool revoke_all_privileges( struct dom_sid *sid )
+bool revoke_all_privileges( const struct dom_sid *sid )
{
return revoke_privilege_bitmap( sid, SE_ALL_PRIVS);
}
@@ -420,7 +420,7 @@ bool revoke_all_privileges( struct dom_sid *sid )
Add a privilege based on its name
*********************************************************************/
-bool revoke_privilege_by_name(struct dom_sid *sid, const char *name)
+bool revoke_privilege_by_name(const struct dom_sid *sid, const char *name)
{
uint64_t mask;