asn1c/asn1c/webcgi
vlm e43659ab28 CGI environment for online ASN.1 compilation
git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@355 59561ff5-6e30-0410-9f3c-9617f08c8826
2004-09-19 19:40:52 +00:00
..
Makefile.am CGI environment for online ASN.1 compilation 2004-09-19 19:40:52 +00:00
Makefile.in CGI environment for online ASN.1 compilation 2004-09-19 19:40:52 +00:00
README CGI environment for online ASN.1 compilation 2004-09-19 19:40:52 +00:00
asn1c-suid-helper.c CGI environment for online ASN.1 compilation 2004-09-19 19:40:52 +00:00
asn1c.cgi CGI environment for online ASN.1 compilation 2004-09-19 19:40:52 +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
	chmod 4555 $CGIDIR/asn1c-suid-helper
	chown root $CGIDIR/asn1c-suid-helper
	# 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.