Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Jul 2017 11:25:18 +0300
From:      Anthony Pankov <ap00@mail.ru>
To:        Jilles Tjoelker <jilles@stack.nl>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: using rc.subr only by root restriction
Message-ID:  <1656711497.20170701112518@mail.ru>
In-Reply-To: <20170630222709.GA74602@stack.nl>
References:  <1599987034.20170623182536@mail.ru> <20170630222709.GA74602@stack.nl>

next in thread | previous in thread | raw e-mail | index | archive | help

> I don't like that this starts id -u many times during startup.
I  also think that proposed patch is far away from beautiful solution.
My  second  suggestion was to not apply login class until it explicity
specified but this is also not a clear way.

> Perhaps
> you can use the id invocation in the code block that unsets $_user if
> running as that user.

Sorry, I didn't catch.

> By the way, that code block seems to indicate that it was definitely
> supposed to work to use rc.subr without root privileges. The concern
> about resource limits and other context not matching normal boot is
> valid, though.



-- 
Best regards,
 Anthony                          mailto:ap00@mail.ru




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1656711497.20170701112518>