"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/monitor/monitor.c" between
sssd-2.4.1.tar.gz and sssd-2.4.2.tar.gz

About: SSSD is a system daemon to manage identity, authentication and authorization for centrally-managed systems. It provides several interfaces, including NSS and PAM modules or a D-Bus interface.

monitor.c  (sssd-2.4.1):monitor.c  (sssd-2.4.2)
skipping to change at line 907 skipping to change at line 907
return NULL; return NULL;
} }
static int get_service_user(struct mt_ctx *ctx) static int get_service_user(struct mt_ctx *ctx)
{ {
errno_t ret; errno_t ret;
char *user_str; char *user_str;
ret = confdb_get_string(ctx->cdb, ctx, CONFDB_MONITOR_CONF_ENTRY, ret = confdb_get_string(ctx->cdb, ctx, CONFDB_MONITOR_CONF_ENTRY,
CONFDB_MONITOR_USER_RUNAS, CONFDB_MONITOR_USER_RUNAS,
SSSD_USER, &user_str); "root", &user_str);
if (ret != EOK) { if (ret != EOK) {
DEBUG(SSSDBG_FATAL_FAILURE, "Failed to get the user to run as\n"); DEBUG(SSSDBG_FATAL_FAILURE, "Failed to get the user to run as\n");
return ret; return ret;
} }
ret = sss_user_by_name_or_uid(user_str, &ctx->uid, &ctx->gid); ret = sss_user_by_name_or_uid(user_str, &ctx->uid, &ctx->gid);
talloc_free(user_str); talloc_free(user_str);
if (ret != EOK) { if (ret != EOK) {
DEBUG(SSSDBG_FATAL_FAILURE, "Failed to set allowed UIDs.\n"); DEBUG(SSSDBG_FATAL_FAILURE, "Failed to set allowed UIDs.\n");
return ret; return ret;
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)