/mandos/release

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

« back to all changes in this revision

Viewing changes to plugins.d/password-prompt.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:
101
101
      when a password is given it then gets forwarded to
102
102
      <acronym>LUKS</acronym>.
103
103
    </para>
104
 
  </refsect1>
105
 
  
106
 
  <refsect1 id="options">
107
 
    <title>OPTIONS</title>
108
 
    <para>
109
 
      Commonly not invoked as command lines but from configuration
110
 
      file of plugin runner.
111
 
    </para>
112
104
 
113
105
    <variablelist>
114
106
      <varlistentry>
158
150
      </varlistentry>            
159
151
    </variablelist>
160
152
  </refsect1>
161
 
 
162
 
  <refsect1 id="exit_status">
163
 
    <title>EXIT STATUS</title>
164
 
    <para>
165
 
    </para>
166
 
  </refsect1>
167
 
 
168
 
  <refsect1 id="environment">
169
 
    <title>ENVIRONMENT</title>
170
 
    <para>
171
 
    </para>
172
 
  </refsect1>
173
 
 
174
 
  <refsect1 id="files">
175
 
    <title>FILES</title>
176
 
    <para>
177
 
    </para>
178
 
  </refsect1>
179
 
  
180
 
  <refsect1 id="bugs">
181
 
    <title>BUGS</title>
182
 
    <para>
183
 
    </para>
184
 
  </refsect1>  
185
 
 
186
 
  <refsect1 id="example">
187
 
    <title>EXAMPLE</title>
188
 
    <para>
189
 
    </para>
190
 
  </refsect1>
191
 
 
192
 
  <refsect1 id="security">
193
 
    <title>SECURITY</title>
194
 
    <para>
195
 
    </para>
196
 
  </refsect1>
197
 
 
198
 
  <refsect1 id="see_also">
199
 
    <title>SEE ALSO</title>
200
 
    <para>
201
 
      <citerefentry><refentrytitle>mandos</refentrytitle>
202
 
      <manvolnum>8</manvolnum></citerefentry>, <citerefentry>
203
 
      <refentrytitle>plugin-runner</refentrytitle>
204
 
      <manvolnum>8mandos</manvolnum></citerefentry> and <citerefentry>
205
 
      <refentrytitle>password-request</refentrytitle>
206
 
      <manvolnum>8mandos</manvolnum></citerefentry>
207
 
    </para>
208
 
  </refsect1>  
209
 
  
210
153
</refentry>