summaryrefslogtreecommitdiffstats
path: root/src/providers/ipa/ipa_selinux.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_selinux.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_selinux.c')
-rw-r--r--src/providers/ipa/ipa_selinux.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/providers/ipa/ipa_selinux.c b/src/providers/ipa/ipa_selinux.c
index bec4948f9..df0efda18 100644
--- a/src/providers/ipa/ipa_selinux.c
+++ b/src/providers/ipa/ipa_selinux.c
@@ -645,8 +645,7 @@ ipa_get_selinux_maps_offline(struct tevent_req *req)
state->nmaps = nmaps;
/* read all the HBAC rules */
- ret = hbac_get_cached_rules(state, state->be_req->be_ctx->domain->sysdb,
- state->be_req->be_ctx->domain,
+ ret = hbac_get_cached_rules(state, state->be_req->be_ctx->domain,
&state->hbac_rule_count, &state->hbac_rules);
if (ret != EOK) {
DEBUG(SSSDBG_OP_FAILURE, ("hbac_get_cached_rules failed [%d]: %s\n",
@@ -793,8 +792,9 @@ static void ipa_get_selinux_maps_done(struct tevent_req *subreq)
access_name = state->be_req->be_ctx->bet_info[BET_ACCESS].mod_name;
selinux_name = state->be_req->be_ctx->bet_info[BET_SELINUX].mod_name;
if (strcasecmp(access_name, selinux_name) == 0) {
- ret = hbac_get_cached_rules(state, bctx->domain->sysdb, bctx->domain,
- &state->hbac_rule_count, &state->hbac_rules);
+ ret = hbac_get_cached_rules(state, bctx->domain,
+ &state->hbac_rule_count,
+ &state->hbac_rules);
/* Terminates the request */
goto done;
}