[patch] get rlm_linelog syslog working with Solaris9

Alan DeKok aland at deployingradius.com
Wed Mar 4 13:54:15 CET 2009

Hermann Lauer wrote:
> according to the syslog call manpage (checked in Linux and Solaris 9)
> LOG_PID is only usable in the openlog call, so the current code
> needs the attached patch to get rlm_linelog syslog logging working 
> under Solaris 9.


> Hardcoding LOG_AUTHPRIV also makes not too much sense for me,
> as the syslog facility can be configured in the log section anyways.

  Hmm... the linelog module doesn't change the facility, but the log{}
section will cause openlog() to be called.

> Best of course would be to make it configurable per linelog instance using the
>  static const FR_NAME_NUMBER str2fac
> array defined in the src/main/mainconfig.c file.

  That's for later.

  I've added your patch, thanks.

  Alan DeKok.

More information about the Freeradius-Devel mailing list