/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.conf

  • 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:
 
1
# This file must have exactly one section named "server".
 
2
[server]
 
3
 
 
4
# These are the default values for the server, uncomment and change
 
5
# them if needed.
 
6
 
 
7
 
 
8
# If "interface" is set, the server will only listen to a specific
 
9
# network interface.
 
10
;interface = 
 
11
 
 
12
 
 
13
# If "address" is set, the server will only listen to a specific
 
14
# address.  This must currently be an IPv6 address; an IPv4 address
 
15
# can be specified using the "::FFFF:192.0.2.3" syntax.  Also, if this
 
16
# is a link-local address, an interface should be set above.
 
17
;address =
 
18
 
 
19
 
 
20
# If "port" is set, the server to bind to that port. By default, the
 
21
# server will listen to an arbitrary port.
 
22
;port = 
 
23
 
 
24
 
 
25
# If "debug" is true, the server will run in the foreground and print
 
26
# a lot of debugging information.
 
27
;debug = False
 
28
 
 
29
 
 
30
# GnuTLS priority for the TLS handshake.  See gnutls_priority_init(3).
 
31
;priority = SECURE256:!CTYPE-X.509:+CTYPE-OPENPGP
 
32
 
 
33
 
 
34
# Zeroconf service name.  You need to change this if you for some
 
35
# reason want to run more than one server on the same *host*.
 
36
# If there are name collisions on the same *network*, the server will
 
37
# rename itself to "Mandos #2", etc.
 
38
;servicename = Mandos