/mandos/trunk

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/trunk

« back to all changes in this revision

Viewing changes to plugins.d/password-request.xml

  • Committer: Teddy Hogeborn
  • Date: 2008-08-16 03:29:08 UTC
  • Revision ID: teddy@fukt.bsnet.se-20080816032908-ihw7c05r2mnyk389
Add feature to specify custom environment variables for plugins.

* plugin-runner.c (plugin): New members "environ" and "envc" to
                            contain possible custom environment.
  (getplugin): Return NULL on failure instead of doing exit(); all
               callers changed.
  (add_to_char_array): New helper function for "add_argument" and
                       "add_environment".
  (addargument): Renamed to "add_argument".  Return bool.  Call
                 "add_to_char_array" to actually do things.
  (add_environment): New; analogous to "add_argument".
  (addcustomargument): Renamed to "add_to_argv" to avoid confusion
                       with "add_argument".
  (main): New options "--global-envs" and "--envs-for" to specify
          custom environment for plugins.  Print environment for
          plugins in debug mode.  Use asprintf instead of strcpy and
          strcat.  Use execve() for plugins with custom environments.
          Free environment for plugin when freeing plugin list.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
        "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
6
6
<!ENTITY VERSION "1.0">
7
7
<!ENTITY COMMANDNAME "password-request">
8
 
<!ENTITY TIMESTAMP "2008-08-29">
9
8
]>
10
9
 
11
10
<refentry>
12
11
  <refentryinfo>
13
 
    <title>Mandos Manual</title>
 
12
    <title>&COMMANDNAME;</title>
14
13
    <!-- NWalsh's docbook scripts use this to generate the footer: -->
15
 
    <productname>Mandos</productname>
 
14
    <productname>&COMMANDNAME;</productname>
16
15
    <productnumber>&VERSION;</productnumber>
17
 
    <date>&TIMESTAMP;</date>
18
16
    <authorgroup>
19
17
      <author>
20
18
        <firstname>Björn</firstname>
107
105
      passwords given is automaticly decrypted and passed to
108
106
      cryptsetup.
109
107
    </para>
110
 
  </refsect1>  
111
 
  
112
 
  <refsect1 id="options">
113
 
    <title>OPTIONS</title>
114
 
    <para>
115
 
      Commonly not invoked as command lines but from configuration
116
 
      file of plugin runner.
117
 
    </para>
118
108
 
119
109
    <variablelist>
120
110
      <varlistentry>
122
112
        IP</replaceable></literal></term>
123
113
        <listitem>
124
114
          <para>
125
 
            Connect directly to a specified mandos server
 
115
            Connect directly to a sepcified mandos server
126
116
          </para>
127
117
        </listitem>
128
118
      </varlistentry>
224
214
      </varlistentry>            
225
215
    </variablelist>
226
216
  </refsect1>
227
 
 
228
 
  <refsect1 id="exit_status">
229
 
    <title>EXIT STATUS</title>
230
 
    <para>
231
 
    </para>
232
 
  </refsect1>
233
 
 
234
 
  <refsect1 id="environment">
235
 
    <title>ENVIRONMENT</title>
236
 
    <para>
237
 
    </para>
238
 
  </refsect1>  
239
 
 
240
 
  <refsect1 id="file">
241
 
    <title>FILES</title>
242
 
    <para>
243
 
    </para>
244
 
  </refsect1>  
245
 
  
246
 
  <refsect1 id="bugs">
247
 
    <title>BUGS</title>
248
 
    <para>
249
 
    </para>
250
 
  </refsect1>  
251
 
 
252
 
  <refsect1 id="example">
253
 
    <title>EXAMPLE</title>
254
 
    <para>
255
 
    </para>
256
 
  </refsect1>
257
 
 
258
 
  <refsect1 id="security">
259
 
    <title>SECURITY</title>
260
 
    <para>
261
 
    </para>
262
 
  </refsect1>
263
 
 
264
 
  <refsect1 id="see_also">
265
 
    <title>SEE ALSO</title>
266
 
    <para>
267
 
      <citerefentry><refentrytitle>mandos</refentrytitle>
268
 
      <manvolnum>8</manvolnum></citerefentry>,
269
 
      <citerefentry><refentrytitle>password-prompt</refentrytitle>
270
 
      <manvolnum>8mandos</manvolnum></citerefentry>,
271
 
      <citerefentry><refentrytitle>plugin-runner</refentrytitle>
272
 
      <manvolnum>8mandos</manvolnum></citerefentry>
273
 
    </para>
274
 
    <itemizedlist>
275
 
      <listitem><para>
276
 
        <ulink url="http://www.zeroconf.org/">Zeroconf</ulink>
277
 
      </para></listitem>
278
 
      
279
 
      <listitem><para>
280
 
        <ulink url="http://www.avahi.org/">Avahi</ulink>
281
 
      </para></listitem>
282
 
      
283
 
      <listitem><para>
284
 
        <ulink
285
 
            url="http://www.gnu.org/software/gnutls/">GnuTLS</ulink>
286
 
      </para></listitem>
287
 
      
288
 
      <listitem><para>
289
 
        <ulink
290
 
        url="http://www.gnupg.org/related_software/gpgme/">
291
 
        GPGME</ulink>
292
 
      </para></listitem>
293
 
      
294
 
      <listitem><para>
295
 
        <citation>RFC 4880: <citetitle>OpenPGP Message
296
 
        Format</citetitle></citation>
297
 
      </para></listitem>
298
 
      
299
 
      <listitem><para>
300
 
        <citation>RFC 5081: <citetitle>Using OpenPGP Keys for
301
 
        Transport Layer Security</citetitle></citation>
302
 
      </para></listitem>
303
 
      
304
 
      <listitem><para>
305
 
        <citation>RFC 4291: <citetitle>IP Version 6 Addressing
306
 
        Architecture</citetitle>, section 2.5.6, Link-Local IPv6
307
 
        Unicast Addresses</citation>
308
 
      </para></listitem>
309
 
    </itemizedlist>
310
 
  </refsect1>
311
 
 
312
217
</refentry>
313
 
<!-- Local Variables: -->
314
 
<!-- time-stamp-start: "<!ENTITY TIMESTAMP [\"']" -->
315
 
<!-- time-stamp-end: "[\"']>" -->
316
 
<!-- time-stamp-format: "%:y-%02m-%02d" -->
317
 
<!-- End: -->