asn1c/asn1c/webcgi
vlm 83b901d8e9 upgraded compatibility
git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@1389 59561ff5-6e30-0410-9f3c-9617f08c8826
2007-08-27 23:57:45 +00:00
..
Makefile.am oops, .cgi weren't included into the distribution 2004-09-19 19:51:12 +00:00
Makefile.in upgraded compatibility 2007-08-27 23:57:45 +00:00
README added web group and 4550 instead of 4555 mode 2004-09-22 03:33:56 +00:00
asn1c-suid-helper.c running arbitrary commands 2005-03-28 15:31:29 +00:00
asn1c.cgi sizes and line endings 2006-11-16 12:53:11 +00:00

README

This is the source of the CGI-based Web wrapper around asn1c compiler.

To install, execute the following steps in this directory

	CGIDIR=/path/where/webserver/CGIs/are/stored
	make				# Ensure the binary files are built
	cp asn1c.cgi asn1c-suid-helper $CGIDIR
	chgrp www $CGIDIR/asn1c-suid-helper	# Or whatever Web server has
	chown root $CGIDIR/asn1c-suid-helper
	chmod 4550 $CGIDIR/asn1c-suid-helper	# Make it setuid
	# edit the $CGIDIR/asn1c.cgi to set up a few preferences
	# in the beginning of that Perl script.

The chmod command makes the asn1c-suid-helper program setuid.
The asn1c-suid-helper is a tiny wrapper (look in the asn1c-suid-helper.c),
which has the single purpose of running the asn1c compiler under extremely
strict environment.
The root uid and 4555 mode actually _raise_ security of the whole ASN.1 CGI
system, so don't worry.
If you're still uncertain, just go read the source code, it's only a page long.