Skip to content

Commit

Permalink
libgpo: remove extension_guid and snapin_guid (the tool guid) from th…
Browse files Browse the repository at this point in the history
…e process callback.

Guenther

Signed-off-by: Günther Deschner <[email protected]>
Reviewed-by: Andreas Schneider <[email protected]>
  • Loading branch information
gd authored and cryptomilk committed Jan 7, 2014
1 parent a9cb303 commit 1010a01
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 18 deletions.
4 changes: 1 addition & 3 deletions libgpo/gpext/gpext.c
Original file line number Diff line number Diff line change
Expand Up @@ -823,9 +823,7 @@ NTSTATUS gpext_process_extension(TALLOC_CTX *mem_ctx,
root_key,
token,
deleted_gpo_list_filtered,
changed_gpo_list_filtered,
extension_guid,
snapin_guid);
changed_gpo_list_filtered);
if (!NT_STATUS_IS_OK(status)) {
ext->methods->shutdown();
}
Expand Down
4 changes: 1 addition & 3 deletions libgpo/gpext/gpext.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,7 @@ struct gp_extension_methods {
struct registry_key *root_key,
const struct security_token *token,
struct GROUP_POLICY_OBJECT *deleted_gpo_list,
struct GROUP_POLICY_OBJECT *changed_gpo_list,
const char *extension_guid,
const char *snapin_guid);
struct GROUP_POLICY_OBJECT *changed_gpo_list);

NTSTATUS (*get_reg_config)(TALLOC_CTX *mem_ctx,
struct gp_extension_reg_info **info);
Expand Down
6 changes: 2 additions & 4 deletions source3/libgpo/gpext/registry.c
Original file line number Diff line number Diff line change
Expand Up @@ -274,9 +274,7 @@ static NTSTATUS registry_process_group_policy(TALLOC_CTX *mem_ctx,
struct registry_key *root_key,
const struct security_token *token,
struct GROUP_POLICY_OBJECT *deleted_gpo_list,
struct GROUP_POLICY_OBJECT *changed_gpo_list,
const char *extension_guid,
const char *snapin_guid)
struct GROUP_POLICY_OBJECT *changed_gpo_list)
{
NTSTATUS status;
WERROR werr;
Expand All @@ -299,7 +297,7 @@ static NTSTATUS registry_process_group_policy(TALLOC_CTX *mem_ctx,
for (gpo = changed_gpo_list; gpo; gpo = gpo->next) {

gpext_debug_header(0, "registry_process_group_policy", flags,
gpo, extension_guid, snapin_guid);
gpo, GP_EXT_GUID_REGISTRY, NULL);

status = gpo_get_unix_path(mem_ctx, cache_path(GPO_CACHE_DIR),
gpo, &unix_path);
Expand Down
6 changes: 2 additions & 4 deletions source3/libgpo/gpext/scripts.c
Original file line number Diff line number Diff line change
Expand Up @@ -340,9 +340,7 @@ static NTSTATUS scripts_process_group_policy(TALLOC_CTX *mem_ctx,
struct registry_key *root_key,
const struct security_token *token,
struct GROUP_POLICY_OBJECT *deleted_gpo_list,
struct GROUP_POLICY_OBJECT *changed_gpo_list,
const char *extension_guid,
const char *snapin_guid)
struct GROUP_POLICY_OBJECT *changed_gpo_list)
{
NTSTATUS status;
WERROR werr;
Expand Down Expand Up @@ -373,7 +371,7 @@ static NTSTATUS scripts_process_group_policy(TALLOC_CTX *mem_ctx,
for (gpo = changed_gpo_list; gpo; gpo = gpo->next) {

gpext_debug_header(0, "scripts_process_group_policy", flags,
gpo, extension_guid, snapin_guid);
gpo, GP_EXT_GUID_SCRIPTS, NULL);

status = gpo_get_unix_path(mem_ctx, cache_path(GPO_CACHE_DIR),
gpo, &unix_path);
Expand Down
6 changes: 2 additions & 4 deletions source3/libgpo/gpext/security.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,7 @@ static NTSTATUS security_process_group_policy(TALLOC_CTX *mem_ctx,
struct registry_key *root_key,
const struct security_token *token,
struct GROUP_POLICY_OBJECT *deleted_gpo_list,
struct GROUP_POLICY_OBJECT *changed_gpo_list,
const char *extension_guid,
const char *snapin_guid)
struct GROUP_POLICY_OBJECT *changed_gpo_list)
{
NTSTATUS status;
char *unix_path = NULL;
Expand All @@ -168,7 +166,7 @@ static NTSTATUS security_process_group_policy(TALLOC_CTX *mem_ctx,
for (gpo = changed_gpo_list; gpo; gpo = gpo->next) {

gpext_debug_header(0, "security_process_group_policy", flags,
gpo, extension_guid, snapin_guid);
gpo, GP_EXT_GUID_SECURITY, NULL);

/* this handler processes the gpttmpl files and merge output to the
* registry */
Expand Down

0 comments on commit 1010a01

Please sign in to comment.