diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2014-10-06 16:28:13 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2014-10-20 21:43:40 +0200 |
commit | ac40d2f2b2b2fc35c95389f5e28febd580bd2b7a (patch) | |
tree | 865e8082df8d8c40208ed7db21fd4c29707daac3 /src/monitor | |
parent | 9c47c8c59b5c9078f342f82367cd0ad7857acef8 (diff) | |
download | sssd-ac40d2f2b2b2fc35c95389f5e28febd580bd2b7a.tar.gz sssd-ac40d2f2b2b2fc35c95389f5e28febd580bd2b7a.tar.xz sssd-ac40d2f2b2b2fc35c95389f5e28febd580bd2b7a.zip |
SSSD: Add the options to specify a UID and GID to run as
Adds new command line options --uid and --gid to all SSSD servers,
making it possible to switch to another user ID if needed.
So far all code still runs as root.
Reviewed-by: Pavel Reichl <preichl@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 624e45026..edd1c2dfc 100644 --- a/src/monitor/monitor.c +++ b/src/monitor/monitor.c @@ -2855,7 +2855,8 @@ int main(int argc, const char *argv[]) ret = close(STDIN_FILENO); if (ret != EOK) return 6; - ret = server_setup(MONITOR_NAME, flags, monitor->conf_path, &main_ctx); + ret = server_setup(MONITOR_NAME, flags, 0, 0, + monitor->conf_path, &main_ctx); if (ret != EOK) return 2; monitor->is_daemon = !opt_interactive; |