using rc.subr only by root restriction
Anthony Pankov
ap00 at mail.ru
Sat Jul 1 08:25:30 UTC 2017
> 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 at mail.ru
More information about the freebsd-hackers
mailing list