summaryrefslogtreecommitdiff
path: root/server/polkit
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2009-03-20 11:10:56 -0400
committerSimo Sorce <ssorce@redhat.com>2009-03-20 11:14:57 -0400
commitde69927053fcc56a337af4ab0c93d24444eb6c24 (patch)
treedb4ee2b6d5aac4e217c2deb94d45cb0f09c08ade /server/polkit
parent7d5bf9a11d60e5330e12d5d94ebba8d6a4606eb0 (diff)
downloadsssd-de69927053fcc56a337af4ab0c93d24444eb6c24.tar.gz
sssd-de69927053fcc56a337af4ab0c93d24444eb6c24.tar.bz2
sssd-de69927053fcc56a337af4ab0c93d24444eb6c24.zip
Enhance server_setup
Now it can load from scratch default configuration that is valid for all daemons. First thing, make it possible for each daemon/provider to set its own debug level in its configuration entry.
Diffstat (limited to 'server/polkit')
-rw-r--r--server/polkit/sssd_polkit.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/polkit/sssd_polkit.c b/server/polkit/sssd_polkit.c
index 511a293c..a7a3d89d 100644
--- a/server/polkit/sssd_polkit.c
+++ b/server/polkit/sssd_polkit.c
@@ -28,6 +28,8 @@
#include "monitor/monitor_sbus.h"
#include "monitor/monitor_interfaces.h"
+#define SPK_CONF_ENTRY "config/services/pk"
+
struct spk_ctx {
struct tevent_context *ev;
struct confdb_ctx *cdb;
@@ -189,7 +191,7 @@ int main(int argc, const char *argv[])
poptFreeContext(pc);
/* set up things like debug , signals, daemonization, etc... */
- ret = server_setup("sssd[infp]", 0, &main_ctx);
+ ret = server_setup("sssd[pk]", 0, SPK_CONF_ENTRY, &main_ctx);
if (ret != EOK) return 2;
ret = spk_process_init(main_ctx,