From c2d6260f1042313ecb7540dd6ced1470db3001e9 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Fri, 25 Mar 2011 11:56:52 +0100 Subject: s3: only include lib/privileges.h where needed. This finally removes the global lsa.h inclusion. Guenther --- source3/include/includes.h | 1 - source3/include/proto.h | 17 ----------------- 2 files changed, 18 deletions(-) (limited to 'source3/include') diff --git a/source3/include/includes.h b/source3/include/includes.h index 9400c2d45f..297ec84a9f 100644 --- a/source3/include/includes.h +++ b/source3/include/includes.h @@ -534,7 +534,6 @@ typedef char fstring[FSTRING_LEN]; #include "../lib/util/charset/charset.h" #include "dynconfig.h" #include "debugparse.h" -#include "../libcli/security/privileges.h" #include "locking.h" #include "smb_perfcount.h" #include "smb.h" diff --git a/source3/include/proto.h b/source3/include/proto.h index d83d0d297c..54676e1d56 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -242,23 +242,6 @@ pid_t pidfile_pid(const char *name); void pidfile_create(const char *program_name); void pidfile_unlink(void); -/* 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 ); - /* The following definitions come from lib/recvfile.c */ ssize_t sys_recvfile(int fromfd, -- cgit