summaryrefslogtreecommitdiffstats
path: root/src/providers/ipa/ipa_access.c
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2013-01-09 21:11:45 -0500
committerJakub Hrozek <jhrozek@redhat.com>2013-01-21 22:17:33 +0100
commit28c0e7ebc857bf488bbc043c9574de6abc1efea7 (patch)
tree957de671ee63bcd27f57498684cda91b39319f6c /src/providers/ipa/ipa_access.c
parente0404de84c31d2387bb244d018a5cac8d01f8b19 (diff)
downloadsssd-28c0e7ebc857bf488bbc043c9574de6abc1efea7.tar.gz
sssd-28c0e7ebc857bf488bbc043c9574de6abc1efea7.tar.xz
sssd-28c0e7ebc857bf488bbc043c9574de6abc1efea7.zip
Remove sysdb argument from hbac_get_cached_rules()
Diffstat (limited to 'src/providers/ipa/ipa_access.c')
-rw-r--r--src/providers/ipa/ipa_access.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/providers/ipa/ipa_access.c b/src/providers/ipa/ipa_access.c
index a0158f53b..f4bdf2b91 100644
--- a/src/providers/ipa/ipa_access.c
+++ b/src/providers/ipa/ipa_access.c
@@ -596,8 +596,7 @@ void ipa_hbac_evaluate_rules(struct hbac_ctx *hbac_ctx)
struct hbac_info *info;
/* Get HBAC rules from the sysdb */
- ret = hbac_get_cached_rules(hbac_ctx, hbac_ctx_sysdb(hbac_ctx),
- hbac_ctx->be_req->domain,
+ ret = hbac_get_cached_rules(hbac_ctx, hbac_ctx->be_req->domain,
&hbac_ctx->rule_count, &hbac_ctx->rules);
if (ret != EOK) {
DEBUG(1, ("Could not retrieve rules from the cache\n"));
@@ -642,7 +641,6 @@ void ipa_hbac_evaluate_rules(struct hbac_ctx *hbac_ctx)
}
errno_t hbac_get_cached_rules(TALLOC_CTX *mem_ctx,
- struct sysdb_ctx *sysdb,
struct sss_domain_info *domain,
size_t *_rule_count,
struct sysdb_attrs ***_rules)
@@ -679,7 +677,7 @@ errno_t hbac_get_cached_rules(TALLOC_CTX *mem_ctx,
goto done;
}
- ret = sysdb_search_custom(tmp_ctx, sysdb, domain, filter,
+ ret = sysdb_search_custom(tmp_ctx, domain->sysdb, domain, filter,
HBAC_RULES_SUBDIR, attrs,
&rule_count, &msgs);
if (ret != EOK && ret != ENOENT) {