summaryrefslogtreecommitdiffstats
path: root/source3/lib/privileges.h
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2011-03-25 11:56:52 +0100
committerGünther Deschner <gd@samba.org>2011-03-30 01:13:10 +0200
commitc2d6260f1042313ecb7540dd6ced1470db3001e9 (patch)
treef7bf8bd96d65a76864b71b1122474be23ec3ed66 /source3/lib/privileges.h
parent643b08dd25f9b1891b55d6653d0b04403d9b8ea0 (diff)
downloadsamba-c2d6260f1042313ecb7540dd6ced1470db3001e9.tar.gz
samba-c2d6260f1042313ecb7540dd6ced1470db3001e9.tar.xz
samba-c2d6260f1042313ecb7540dd6ced1470db3001e9.zip
s3: only include lib/privileges.h where needed.
This finally removes the global lsa.h inclusion. Guenther
Diffstat (limited to 'source3/lib/privileges.h')
-rw-r--r--source3/lib/privileges.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/source3/lib/privileges.h b/source3/lib/privileges.h
new file mode 100644
index 00000000000..13bc3eb0830
--- /dev/null
+++ b/source3/lib/privileges.h
@@ -0,0 +1,18 @@
+#include "../libcli/security/privileges.h"
+
+/* The following definitions come from lib/privileges.c */
+
+bool get_privileges_for_sids(uint64_t *privileges, struct dom_sid *slist, int scount);
+NTSTATUS get_privileges_for_sid_as_set(TALLOC_CTX *mem_ctx, PRIVILEGE_SET **privileges, struct dom_sid *sid);
+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( 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(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);
+bool is_privileged_sid( const struct dom_sid *sid );
+bool grant_all_privileges( const struct dom_sid *sid );