From a10ac1d0a7210def232205a48c53a075930e82f6 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Tue, 5 Aug 2014 13:52:48 +0200 Subject: SSSD: Load a user to run a service as from configuration Related: https://fedorahosted.org/sssd/ticket/2370 Adds a option, user to run as, that is specified in the [sssd] section. When this option is specified, SSSD will run as this user and his private group. When these are not specified, SSSD will run as the configure-time user and group (usually root). Currently all services and providers are started as root. There is a temporary svc_supported_as_nonroot() function that returns true for a service if that service runs and was tested as nonroot and false otherwise. Currently this function always returns false, but will be amended in future patches. Reviewed-by: Pavel Reichl Reviewed-by: Simo Sorce --- src/confdb/confdb.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/confdb') diff --git a/src/confdb/confdb.h b/src/confdb/confdb.h index 34d461065..159aa9f2c 100644 --- a/src/confdb/confdb.h +++ b/src/confdb/confdb.h @@ -69,6 +69,7 @@ #define CONFDB_MONITOR_KRB5_RCACHEDIR "krb5_rcache_dir" #define CONFDB_MONITOR_DEFAULT_DOMAIN "default_domain_suffix" #define CONFDB_MONITOR_OVERRIDE_SPACE "override_space" +#define CONFDB_MONITOR_USER_RUNAS "user" /* Both monitor and domains */ #define CONFDB_NAME_REGEX "re_expression" -- cgit