From 27ee5a204b8927adcc1e340b12d2edf1c70d9ba5 Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Mon, 26 Jan 2009 11:19:42 -0500 Subject: Add skeleton for PolicyKit back-end --- server/confdb/confdb.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'server/confdb/confdb.c') diff --git a/server/confdb/confdb.c b/server/confdb/confdb.c index f0290b471..945ac2b82 100644 --- a/server/confdb/confdb.c +++ b/server/confdb/confdb.c @@ -488,6 +488,22 @@ static int confdb_init_db(struct confdb_ctx *cdb) ret = confdb_add_param(cdb, false, "config/services", "activeServices", val); if (ret != EOK) goto done; +/* PolicyKit */ + /* Set the sssd_pk description */ + val[0] = "PolicyKit Backend Configuration"; + ret = confdb_add_param(cdb, false, "config/services/spk", "description", val); + if (ret != EOK) goto done; + + /* Set the sssd_info command path */ + val[0] = talloc_asprintf(tmp_ctx, "%s/sssd_pk", SSSD_LIBEXEC_PATH); + ret = confdb_add_param(cdb, false, "config/services/spk", "command", val); + if (ret != EOK) goto done; + + /* Add the InfoPipe to the list of active services */ + val[0] = "spk"; + ret = confdb_add_param(cdb, false, "config/services", "activeServices", val); + if (ret != EOK) goto done; + /* Domains */ val[0] = "Domains served by SSSD"; ret = confdb_add_param(cdb, false, "config/domains", "description", val); -- cgit