X7ROOT File Manager
Current Path:
/usr/share/doc/pam-devel-1.1.8/html
usr
/
share
/
doc
/
pam-devel-1.1.8
/
html
/
๐
..
๐
Linux-PAM_ADG.html
(8.41 KB)
๐
Linux-PAM_MWG.html
(8.59 KB)
๐
adg-author.html
(3.02 KB)
๐
adg-copyright.html
(3.54 KB)
๐
adg-example.html
(3.59 KB)
๐
adg-files.html
(2.18 KB)
๐
adg-glossary.html
(3.21 KB)
๐
adg-interface-by-app-expected.html
(61.01 KB)
๐
adg-interface-of-app-expected.html
(8.26 KB)
๐
adg-interface-programming-notes.html
(2.55 KB)
๐
adg-interface.html
(4.9 KB)
๐
adg-introduction-description.html
(3.29 KB)
๐
adg-introduction-synopsis.html
(2.62 KB)
๐
adg-introduction.html
(2.01 KB)
๐
adg-libpam-functions.html
(13.13 KB)
๐
adg-libpam_misc.html
(3.34 KB)
๐
adg-overview.html
(8.16 KB)
๐
adg-porting.html
(4.2 KB)
๐
adg-security-conv-function.html
(2.29 KB)
๐
adg-security-library-calls.html
(3.13 KB)
๐
adg-security-resources.html
(2.83 KB)
๐
adg-security-service-name.html
(4.43 KB)
๐
adg-security-user-identity.html
(5.38 KB)
๐
adg-security.html
(3.73 KB)
๐
adg-see-also.html
(2.16 KB)
๐
mwg-author.html
(3 KB)
๐
mwg-copyright.html
(3.52 KB)
๐
mwg-example.html
(1.96 KB)
๐
mwg-expected-by-module-item.html
(45.36 KB)
๐
mwg-expected-by-module-other.html
(8.15 KB)
๐
mwg-expected-by-module.html
(4.02 KB)
๐
mwg-expected-of-module-acct.html
(6.05 KB)
๐
mwg-expected-of-module-auth.html
(10.73 KB)
๐
mwg-expected-of-module-chauthtok.html
(7.8 KB)
๐
mwg-expected-of-module-overview.html
(6.28 KB)
๐
mwg-expected-of-module-session.html
(6.98 KB)
๐
mwg-expected-of-module.html
(4.27 KB)
๐
mwg-introduction-description.html
(3.88 KB)
๐
mwg-introduction-synopsis.html
(1.98 KB)
๐
mwg-introduction.html
(1.98 KB)
๐
mwg-see-also.html
(2.18 KB)
๐
mwg-see-options.html
(2.92 KB)
๐
mwg-see-programming-libs.html
(2.94 KB)
๐
mwg-see-programming-sec.html
(8.92 KB)
๐
mwg-see-programming-syslog.html
(4.63 KB)
๐
mwg-see-programming.html
(3 KB)
Editing: mwg-see-programming-syslog.html
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>5.2.ย Use of syslog(3)</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="Linux-PAM_MWG.html" title="The Linux-PAM Module Writers' Guide"><link rel="up" href="mwg-see-programming.html" title="Chapterย 5.ย Programming notes"><link rel="prev" href="mwg-see-programming-sec.html" title="5.1.ย Security issues for module creation"><link rel="next" href="mwg-see-programming-libs.html" title="5.3.ย Modules that require system libraries"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">5.2.ย Use of <span class="citerefentry"><span class="refentrytitle">syslog</span>(3)</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="mwg-see-programming-sec.html">Prev</a>ย </td><th width="60%" align="center">Chapterย 5.ย Programming notes</th><td width="20%" align="right">ย <a accesskey="n" href="mwg-see-programming-libs.html">Next</a></td></tr></table><hr></div><div class="section"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="mwg-see-programming-syslog"></a>5.2.ย Use of <span class="citerefentry"><span class="refentrytitle">syslog</span>(3)</span></h2></div></div></div><p> Only rarely should error information be directed to the user. Usually, this is to be limited to <span class="quote">โ<span class="quote"><span class="emphasis"><em>sorry you cannot login now</em></span></span>โ</span> type messages. Information concerning errors in the configuration file, <code class="filename">/etc/pam.conf</code>, or due to some system failure encountered by the module, should be written to <span class="citerefentry"><span class="refentrytitle">syslog</span>(3)</span> with <span class="emphasis"><em>facility-type</em></span> <span class="emphasis"><em>LOG_AUTHPRIV</em></span>. </p><p> With a few exceptions, the level of logging is, at the discretion of the module developer. Here is the recommended usage of different logging levels: </p><div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem"><p> As a general rule, errors encountered by a module should be logged at the <span class="emphasis"><em>LOG_ERR</em></span> level. However, information regarding an unrecognized argument, passed to a module from an entry in the <code class="filename">/etc/pam.conf</code> file, is <span class="emphasis"><em>required</em></span> to be logged at the <span class="emphasis"><em>LOG_ERR</em></span> level. </p></li><li class="listitem"><p> Debugging information, as activated by the <span class="command"><strong>debug</strong></span> argument to the module in <code class="filename">/etc/pam.conf</code>, should be logged at the <span class="emphasis"><em>LOG_DEBUG</em></span> level. </p></li><li class="listitem"><p> If a module discovers that its personal configuration file or some system file it uses for information is corrupted or somehow unusable, it should indicate this by logging messages at level, <span class="emphasis"><em>LOG_ALERT</em></span>. </p></li><li class="listitem"><p> Shortages of system resources, such as a failure to manipulate a file or <code class="function">malloc()</code> failures should be logged at level <span class="emphasis"><em>LOG_CRIT</em></span>. </p></li><li class="listitem"><p> Authentication failures, associated with an incorrectly typed password should be logged at level, <span class="emphasis"><em>LOG_NOTICE</em></span>. </p></li></ul></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="mwg-see-programming-sec.html">Prev</a>ย </td><td width="20%" align="center"><a accesskey="u" href="mwg-see-programming.html">Up</a></td><td width="40%" align="right">ย <a accesskey="n" href="mwg-see-programming-libs.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">5.1.ย Security issues for module creationย </td><td width="20%" align="center"><a accesskey="h" href="Linux-PAM_MWG.html">Home</a></td><td width="40%" align="right" valign="top">ย 5.3.ย Modules that require system libraries</td></tr></table></div></body></html>
Upload File
Create Folder