1 #include "../libcli/security/privileges.h"
3 /* The following definitions come from lib/privileges.c */
5 bool get_privileges_for_sids(uint64_t *privileges
, struct dom_sid
*slist
, int scount
);
6 NTSTATUS
get_privileges_for_sid_as_set(TALLOC_CTX
*mem_ctx
, PRIVILEGE_SET
**privileges
, struct dom_sid
*sid
);
7 NTSTATUS
privilege_enumerate_accounts(struct dom_sid
**sids
, int *num_sids
);
8 NTSTATUS
privilege_enum_sids(enum sec_privilege privilege
, TALLOC_CTX
*mem_ctx
,
9 struct dom_sid
**sids
, int *num_sids
);
10 bool grant_privilege_set(const struct dom_sid
*sid
, struct lsa_PrivilegeSet
*set
);
11 bool grant_privilege_by_name( const struct dom_sid
*sid
, const char *name
);
12 bool revoke_all_privileges( const struct dom_sid
*sid
);
13 bool revoke_privilege_set(const struct dom_sid
*sid
, struct lsa_PrivilegeSet
*set
);
14 bool revoke_privilege_by_name(const struct dom_sid
*sid
, const char *name
);
15 NTSTATUS
privilege_create_account(const struct dom_sid
*sid
);
16 NTSTATUS
privilege_delete_account(const struct dom_sid
*sid
);
17 bool is_privileged_sid( const struct dom_sid
*sid
);
18 bool grant_all_privileges( const struct dom_sid
*sid
);