diff options
author | Andrew Bartlett <abartlet@samba.org> | 2010-08-30 15:27:40 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2010-09-11 18:46:11 +1000 |
commit | ad5ec58a714aba1f6c0894ca4e7207f1c5072949 (patch) | |
tree | a175fa95ba3251c95650addccb06ee3ca7ee64e3 /source3/include | |
parent | 4080ff7af5eec946a01c52f8d9ba01f1ef81fe71 (diff) | |
download | samba-ad5ec58a714aba1f6c0894ca4e7207f1c5072949.tar.gz samba-ad5ec58a714aba1f6c0894ca4e7207f1c5072949.tar.bz2 samba-ad5ec58a714aba1f6c0894ca4e7207f1c5072949.zip |
s3-privs Hide the bitmap-based grant_privilege and revoke_privilege
The new wrappers avoid anything but the core privileges code
dealing with the bitmap values directly.
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/proto.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h index 4081a82686..65a27dc404 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -637,10 +637,10 @@ bool get_privileges_for_sids(uint64_t *privileges, struct dom_sid *slist, int sc 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(const struct dom_sid *sid, const uint64_t priv_mask); +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_privilege(const struct dom_sid *sid, const uint64_t priv_mask); bool revoke_all_privileges( 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); NTSTATUS privilege_create_account(const struct dom_sid *sid ); NTSTATUS privilege_delete_account(const struct dom_sid *sid); |