On 2009/05/31 20:44, patrick keshishian wrote:
> Greetings,
> 
> I'm not sure if ports@ is the right list for these questions,
> but I think it is a good place to start.
> 
> I have a PPTP VPN client that I'm trying to clean up for release.
> Part of my TODO list before release have to do with user-id to
> use and syslog.
> 
> Currently the client switches to _ppp user after it is done
> with root privilege and chroot(2)-s to /var/empty. Is this
> acceptable? Is there another user-id that is preferred?

You need to add a new unique user-id for the port (see
ports/infrastructure/db/user.list) and create it in PLIST
with @newuser/@newgroup. /var/empty is fine.

> Also, ATM every log message is going to stderr/stdout. I want
> to send certain messages to syslog, but I'm not sure which
> facility is appropriate to use: LOG_DAEMON or one of the
> LOG_LOCAL[0-7] ones?

I think probably LOG_DAEMON.

Reply via email to