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-libs.html
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>5.3.ย Modules that require system libraries</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-syslog.html" title="5.2.ย Use of syslog(3)"><link rel="next" href="mwg-example.html" title="Chapterย 6.ย An example module"></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.3.ย Modules that require system libraries</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="mwg-see-programming-syslog.html">Prev</a>ย </td><th width="60%" align="center">Chapterย 5.ย Programming notes</th><td width="20%" align="right">ย <a accesskey="n" href="mwg-example.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-libs"></a>5.3.ย Modules that require system libraries</h2></div></div></div><p> Writing a module is much like writing an application. You have to provide the "conventional hooks" for it to work correctly, like <code class="function">pam_sm_authenticate()</code> etc., which would correspond to the <code class="function">main()</code> function in a normal function. </p><p> Typically, the author may want to link against some standard system libraries. As when one compiles a normal program, this can be done for modules too: you simply append the <em class="parameter"><code>-l</code></em><span class="emphasis"><em>XXX</em></span> arguments for the desired libraries when you create the shared module object. To make sure a module is linked to the <span class="command"><strong>libwhatever.so</strong></span> library when it is <code class="function">dlopen()</code>ed, try: </p><pre class="programlisting"> % gcc -shared -o pam_module.so pam_module.o -lwhatever </pre><p> </p></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="mwg-see-programming-syslog.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-example.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">5.2.ย Use of <span class="citerefentry"><span class="refentrytitle">syslog</span>(3)</span>ย </td><td width="20%" align="center"><a accesskey="h" href="Linux-PAM_MWG.html">Home</a></td><td width="40%" align="right" valign="top">ย Chapterย 6.ย An example module</td></tr></table></div></body></html>
Upload File
Create Folder