diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/include/proto.h | 6 | ||||
-rw-r--r-- | source3/lib/privileges.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h index f316a377dcd..03196c30ed9 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 5a54a140333..af4c0966f77 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; |