summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2010-08-30 14:17:02 +1000
committerAndrew Bartlett <abartlet@samba.org>2010-09-11 18:46:11 +1000
commit4080ff7af5eec946a01c52f8d9ba01f1ef81fe71 (patch)
treecc50d2c7d8460563788a98be4fcc7aaac9a918e8 /source3/lib
parent71832a404e5028c1c3933351c608a99e4fc80e42 (diff)
downloadsamba-4080ff7af5eec946a01c52f8d9ba01f1ef81fe71.tar.gz
samba-4080ff7af5eec946a01c52f8d9ba01f1ef81fe71.tar.bz2
samba-4080ff7af5eec946a01c52f8d9ba01f1ef81fe71.zip
s3-privs Make privilege_enum_sids() take an LUID, not a bitmap
This moves one more privileges call away from direct bitmap manipuation. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/privileges.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/privileges.c b/source3/lib/privileges.c
index 5988480cc0..436e456932 100644
--- a/source3/lib/privileges.c
+++ b/source3/lib/privileges.c
@@ -251,7 +251,7 @@ NTSTATUS privilege_enumerate_accounts(struct dom_sid **sids, int *num_sids)
Retrieve list of SIDs granted a particular privilege
*********************************************************************/
-NTSTATUS privilege_enum_sids(const uint64_t *mask, TALLOC_CTX *mem_ctx,
+NTSTATUS privilege_enum_sids(enum sec_privilege privilege, TALLOC_CTX *mem_ctx,
struct dom_sid **sids, int *num_sids)
{
struct db_context *db = get_account_pol_db();
@@ -263,7 +263,7 @@ NTSTATUS privilege_enum_sids(const uint64_t *mask, TALLOC_CTX *mem_ctx,
ZERO_STRUCT(priv);
- priv.privilege = *mask;
+ priv.privilege = sec_privilege_mask(privilege);
priv.mem_ctx = mem_ctx;
db->traverse_read(db, priv_traverse_fn, &priv);