diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2012-09-21 23:41:42 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2012-09-24 18:23:15 +0200 |
commit | 95f5e7963a36b7b68859ce91ae4b232088bbaa09 (patch) | |
tree | b5216b8dc726d1539d9960a43957cb9da2e1ebd1 /src/providers/ipa/ipa_selinux.c | |
parent | 77f445dbaecc8e792e1ad42e3742800ad141bee0 (diff) | |
download | sssd-95f5e7963a36b7b68859ce91ae4b232088bbaa09.tar.gz sssd-95f5e7963a36b7b68859ce91ae4b232088bbaa09.tar.xz sssd-95f5e7963a36b7b68859ce91ae4b232088bbaa09.zip |
SYSDB: Remove unnecessary domain parameter from several sysdb calls
The domain can be read from the sysdb object. Removing the domain string
makes the API more self-contained.
Diffstat (limited to 'src/providers/ipa/ipa_selinux.c')
-rw-r--r-- | src/providers/ipa/ipa_selinux.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/providers/ipa/ipa_selinux.c b/src/providers/ipa/ipa_selinux.c index 0adc0fd02..b64de90b1 100644 --- a/src/providers/ipa/ipa_selinux.c +++ b/src/providers/ipa/ipa_selinux.c @@ -255,7 +255,6 @@ static void ipa_get_selinux_connect_done(struct tevent_req *subreq) size_t count; struct ldb_message **msgs; struct sysdb_attrs **hosts; - struct sss_domain_info *domain; ret = sdap_id_op_connect_recv(subreq, &dp_error); talloc_zfree(subreq); @@ -275,9 +274,7 @@ static void ipa_get_selinux_connect_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) { - domain = sysdb_ctx_get_domain(bctx->sysdb); - host_dn = sysdb_custom_dn(bctx->sysdb, state, domain->name, - state->hostname, HBAC_HOSTS_SUBDIR); + host_dn = sysdb_custom_dn(bctx->sysdb, state, state->hostname, HBAC_HOSTS_SUBDIR); if (host_dn == NULL) { ret = ENOMEM; goto fail; |