summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/providers/ipa/ipa_access.c6
-rw-r--r--src/providers/ipa/ipa_access.h7
2 files changed, 3 insertions, 10 deletions
diff --git a/src/providers/ipa/ipa_access.c b/src/providers/ipa/ipa_access.c
index 39bbfb74..03011c31 100644
--- a/src/providers/ipa/ipa_access.c
+++ b/src/providers/ipa/ipa_access.c
@@ -340,7 +340,7 @@ static int hbac_get_host_info_step(struct hbac_ctx *hbac_ctx)
}
req = ipa_host_info_send(hbac_ctx,
- hbac_ctx_ev(hbac_ctx),
+ hbac_ctx->be_req->be_ctx->ev,
sdap_id_op_handle(hbac_ctx->sdap_op),
hbac_ctx_sdap_id_ctx(hbac_ctx)->opts,
hostname,
@@ -374,7 +374,7 @@ static void hbac_get_service_info_step(struct tevent_req *req)
/* Get services and service groups */
req = ipa_hbac_service_info_send(hbac_ctx,
- hbac_ctx_ev(hbac_ctx),
+ hbac_ctx->be_req->be_ctx->ev,
sdap_id_op_handle(hbac_ctx->sdap_op),
hbac_ctx_sdap_id_ctx(hbac_ctx)->opts,
hbac_ctx->search_bases);
@@ -439,7 +439,7 @@ static void hbac_get_rule_info_step(struct tevent_req *req)
/* Get the list of applicable rules */
req = ipa_hbac_rule_info_send(hbac_ctx,
hbac_ctx->get_deny_rules,
- hbac_ctx_ev(hbac_ctx),
+ hbac_ctx->be_req->be_ctx->ev,
sdap_id_op_handle(hbac_ctx->sdap_op),
hbac_ctx_sdap_id_ctx(hbac_ctx)->opts,
hbac_ctx->search_bases,
diff --git a/src/providers/ipa/ipa_access.h b/src/providers/ipa/ipa_access.h
index 551a17a0..8f330625 100644
--- a/src/providers/ipa/ipa_access.h
+++ b/src/providers/ipa/ipa_access.h
@@ -75,13 +75,6 @@ struct hbac_ctx {
struct sysdb_attrs **servicegroups;
};
-/* Get tevent context associated with HBAC context */
-static inline struct tevent_context *hbac_ctx_ev(struct hbac_ctx *hbac_ctx)
-{
- struct be_ctx *be_ctx = hbac_ctx->be_req->be_ctx;
- return be_ctx != NULL ? be_ctx->ev : NULL;
-}
-
/* Get sdap_id_ctx associated with HBAC context */
static inline struct sdap_id_ctx *hbac_ctx_sdap_id_ctx(struct hbac_ctx *hbac_ctx)
{