[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: logging from PAM modules



>  1.  Can we omit openlog/closelog?  Manpage sais that them are

I don't think this is a good idea, as syslog() would use __progname
by default, and, for SUID applications that use PAM, this is under
the control of the user running them.

>      both optional.  Also consider:
>         syslog(pri|LOG_AUTH, "%s: %s", stack, msg);
>                   ^^^^^^^^^^

Yes, that can work, but wouldn't let us set the ident as well.

Signed,
Solar Designer





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []