/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 mandos.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:
104
104
      clients. Any authenticated client is then given its encrypted
105
105
      password.
106
106
    </para>
107
 
  </refsect1>  
108
 
  
109
 
  <refsect1 id="options">
110
 
    <title>OPTIONS</title>
111
107
 
112
108
    <variablelist>
113
109
      <varlistentry>
207
203
          </para>
208
204
        </listitem>
209
205
      </varlistentry>      
 
206
      
210
207
    </variablelist>
211
208
  </refsect1>
212
 
 
213
 
  <refsect1 id="exit_status">
214
 
    <title>EXIT STATUS</title>
215
 
    <para>
216
 
    </para>
217
 
  </refsect1>
218
 
 
219
 
  <refsect1 id="file">
220
 
    <title>FILES</title>
221
 
    <para>
222
 
    </para>
223
 
  </refsect1>  
224
 
 
225
 
  <refsect1 id="notes">
226
 
    <title>NOTES</title>
227
 
    <para>
228
 
    </para>
229
 
  </refsect1>
230
 
  
231
 
  <refsect1 id="bugs">
232
 
    <title>BUGS</title>
233
 
    <para>
234
 
    </para>
235
 
  </refsect1>  
236
 
 
237
 
  <refsect1 id="examples">
238
 
    <title>EXAMPLES</title>
239
 
    <para>
240
 
    </para>
241
 
  </refsect1>
242
 
 
243
 
  <refsect1 id="security">
244
 
    <title>SECURITY</title>
245
 
    <para>
246
 
    </para>
247
 
  </refsect1>
248
 
 
249
 
  <refsect1 id="see_also">
250
 
    <title>SEE ALSO</title>
251
 
    <para>
252
 
      <citerefentry><refentrytitle>plugin-runner</refentrytitle>
253
 
      <manvolnum>8mandos</manvolnum></citerefentry>, <citerefentry>
254
 
      <refentrytitle>password-request</refentrytitle>
255
 
      <manvolnum>8mandos</manvolnum></citerefentry> and <citerefentry>
256
 
      <refentrytitle>password-prompt</refentrytitle>
257
 
      <manvolnum>8mandos</manvolnum></citerefentry>
258
 
    </para>
259
 
  </refsect1>
260
 
  
261
209
</refentry>