diff options
author | Michal Zidek <mzidek@redhat.com> | 2014-10-09 17:21:30 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2014-10-22 15:44:28 +0200 |
commit | 0887c35bdb85adf0a4376dc8963294ea5a9d6da6 (patch) | |
tree | 40b0c10c3509a85a7cd15dc4f1a5b5aad4dc59bc /src/monitor | |
parent | 579e5d4b7a3ca161ea7518b2996905fa22c15995 (diff) | |
download | sssd-0887c35bdb85adf0a4376dc8963294ea5a9d6da6.tar.gz sssd-0887c35bdb85adf0a4376dc8963294ea5a9d6da6.tar.xz sssd-0887c35bdb85adf0a4376dc8963294ea5a9d6da6.zip |
SYSDB: Allow calling chown on the sysdb file from monitor
Sysdb must be accessible for the nonroot sssd
processes.
Reviewed-by: Pavel Reichl <preichl@redhat.com>
Reviewed-by: Simo Sorce <simo@redhat.com>
Diffstat (limited to 'src/monitor')
-rw-r--r-- | src/monitor/monitor.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/monitor/monitor.c b/src/monitor/monitor.c index 37f6e928b..04702428c 100644 --- a/src/monitor/monitor.c +++ b/src/monitor/monitor.c @@ -2312,7 +2312,8 @@ static int monitor_process_init(struct mt_ctx *ctx, if (!tmp_ctx) { return ENOMEM; } - ret = sysdb_init(tmp_ctx, ctx->domains, true); + ret = sysdb_init_ext(tmp_ctx, ctx->domains, true, + true, ctx->uid, ctx->gid); if (ret != EOK) { SYSDB_VERSION_ERROR_DAEMON(ret); return ret; |