From 5d19966eda424bd71964c6913b84d705dce3b350 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Sun, 21 Sep 2014 13:52:05 +0200 Subject: NSS: Run as a user specified by monitor Adds the NSS responder to the list of services known to work as a non-root user and becomes the specified user after starting the NSS responder. Reviewed-by: Pavel Reichl Reviewed-by: Simo Sorce --- src/monitor/monitor.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/monitor') diff --git a/src/monitor/monitor.c b/src/monitor/monitor.c index 04702428..297648a6 100644 --- a/src/monitor/monitor.c +++ b/src/monitor/monitor.c @@ -1062,6 +1062,9 @@ static errno_t get_ping_config(struct mt_ctx *ctx, const char *path, */ static bool svc_supported_as_nonroot(const char *svc_name) { + if (strcmp(svc_name, "nss") == 0) { + return true; + } return false; } -- cgit