| 1 |
'\" t |
| 2 |
.\" Title: pam_syslog |
| 3 |
.\" Author: [FIXME: author] [see http://www.docbook.org/tdg5/en/html/author] |
| 4 |
.\" Generator: DocBook XSL Stylesheets v1.79.2 <http://docbook.sf.net/> |
| 5 |
.\" Date: 06/29/2025 |
| 6 |
.\" Manual: Linux-PAM Manual |
| 7 |
.\" Source: Linux-PAM |
| 8 |
.\" Language: English |
| 9 |
.\" |
| 10 |
.TH "PAM_SYSLOG" "3" "06/29/2025" "Linux\-PAM" "Linux\-PAM Manual" |
| 11 |
.\" ----------------------------------------------------------------- |
| 12 |
.\" * Define some portability stuff |
| 13 |
.\" ----------------------------------------------------------------- |
| 14 |
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 15 |
.\" http://bugs.debian.org/507673 |
| 16 |
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html |
| 17 |
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 18 |
.ie \n(.g .ds Aq \(aq |
| 19 |
.el .ds Aq ' |
| 20 |
.\" ----------------------------------------------------------------- |
| 21 |
.\" * set default formatting |
| 22 |
.\" ----------------------------------------------------------------- |
| 23 |
.\" disable hyphenation |
| 24 |
.nh |
| 25 |
.\" disable justification (adjust text to left margin only) |
| 26 |
.ad l |
| 27 |
.\" ----------------------------------------------------------------- |
| 28 |
.\" * MAIN CONTENT STARTS HERE * |
| 29 |
.\" ----------------------------------------------------------------- |
| 30 |
.SH "NAME" |
| 31 |
pam_syslog, pam_vsyslog \- send messages to the system logger |
| 32 |
.SH "SYNOPSIS" |
| 33 |
.sp |
| 34 |
.ft B |
| 35 |
.nf |
| 36 |
#include <syslog\&.h> |
| 37 |
.fi |
| 38 |
.ft |
| 39 |
.sp |
| 40 |
.ft B |
| 41 |
.nf |
| 42 |
#include <security/pam_ext\&.h> |
| 43 |
.fi |
| 44 |
.ft |
| 45 |
.HP \w'void\ pam_syslog('u |
| 46 |
.BI "void pam_syslog(const\ pam_handle_t\ *" "pamh" ", int\ " "priority" ", const\ char\ *" "fmt" ", " "\&.\&.\&." ");" |
| 47 |
.HP \w'void\ pam_vsyslog('u |
| 48 |
.BI "void pam_vsyslog(const\ pam_handle_t\ *" "pamh" ", int\ " "priority" ", const\ char\ *" "fmt" ", va_list\ " "args" ");" |
| 49 |
.SH "DESCRIPTION" |
| 50 |
.PP |
| 51 |
The |
| 52 |
\fBpam_syslog\fR |
| 53 |
function logs messages using |
| 54 |
\fBsyslog\fR(3) |
| 55 |
and is intended for internal use by Linux\-PAM and PAM service modules\&. The |
| 56 |
\fIpriority\fR |
| 57 |
argument is formed by ORing the facility and the level values as documented in the |
| 58 |
\fBsyslog\fR(3) |
| 59 |
manual page\&. |
| 60 |
.PP |
| 61 |
The |
| 62 |
\fBpam_vsyslog\fR |
| 63 |
function performs the same task as |
| 64 |
\fBpam_syslog()\fR |
| 65 |
with the difference that it takes a set of arguments which have been obtained using the |
| 66 |
\fBstdarg\fR(3) |
| 67 |
variable argument list macros\&. |
| 68 |
.SH "SEE ALSO" |
| 69 |
.PP |
| 70 |
\fBpam\fR(7) |
| 71 |
.SH "STANDARDS" |
| 72 |
.PP |
| 73 |
The |
| 74 |
\fBpam_syslog\fR |
| 75 |
and |
| 76 |
\fBpam_vsyslog\fR |
| 77 |
functions are Linux\-PAM extensions\&. |