/* Password lookups etc. may require roots, allow it. */
restrict_access_by_env(FALSE);
+ restrict_access_allow_coredumps(TRUE);
}
static void main_init(bool nodaemon)
#endif
str_append(str, " (core not dumped - is home dir set?)");
return;
+ case PROCESS_TYPE_AUTH:
+ case PROCESS_TYPE_AUTH_WORKER:
+ if (settings_root->auths->uid == 0)
+ break;
+#ifdef HAVE_PR_SET_DUMPABLE
+ str_printfa(str, " (core not dumped - "
+ "no permissions for auth user %s in %s?)",
+ settings_root->auths->user,
+ settings_root->defaults->base_dir);
+#else
+ str_append(str, " (core not dumped - auth user is not root)");
+#endif
+ return;
default:
break;
}