chiark / gitweb /
www-cgi/: Decentralize the whitelist of environment variables.
authorMark Wooding <mdw@distorted.org.uk>
Wed, 30 Jan 2013 00:23:08 +0000 (00:23 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 2 Feb 2013 13:31:03 +0000 (13:31 +0000)
commita8e8db26410497a781ca36f59951201d55711f3a
tree41269bb1eec91feb14487d9ed84ee86c3ef42a2b
parentf601a2c663d9135dec19172a593502864d10393e
www-cgi/: Decentralize the whitelist of environment variables.

There's no great need for `ucgi' to have a fierce whitelist of
environment variables to be passed to the service.  We'll assume that
the webserver hasn't put any critical secrets in its environment with
unfortunate names; and the service shouldn't put any trust in the
caller's filtering anyway.  If the webserver end takes a more relaxed
approach, we can leave questions of policy regarding environment
filtering largely up to the service -- which is the bit that users
actually have some control over.

To this end, therefore, move the main whitelist to `ucgitarget.c', and
put small list, containing some wildcard patterns, in `ucgi.c'.
www-cgi/ucgi.c
www-cgi/ucgi.h
www-cgi/ucgicommon.c
www-cgi/ucgitarget.c