Age | Commit message (Collapse) | Author | |
---|---|---|---|
2017-10-17 | add missing HISTORY; based on CVS logs and release announcements | Ingo Schwarze | |
2017-07-04 | consistently use the evtimer wrappers around the connection timeout. | Florian Obser | |
this is instead of setting the timeout up with event_set and event_add, but removing it with evtimer_del. this uses evtimer_set and evtimer_add. prompted by dlg's commit to identd OK dlg | |||
2017-05-26 | Sync the severity of the syslog_* functions shared between identd, slowcgi, | Florian Obser | |
tftp-proxy and tftpd to the severity used in log.c style loggers. This also fixes an issue where syslog_err and syslog_errx logged with different severities. Sure deraadt@ | |||
2016-09-04 | Add format attribute to logger functions. | Florian Obser | |
Fix format string while here. Input & OK benno@ | |||
2016-08-16 | As suggested by the FastCGI spec, zero-pad the response buffers to be | Reyk Floeter | |
aligned to 8 bytes. This matches what most other implementations are doing. While here, make sure that the allocated response buffers are zero'ed out. OK florian@ | |||
2015-11-20 | typo in error message: to -> too | tb | |
ok florian@ | |||
2015-11-05 | pledge(2) for slowcgi. | Florian Obser | |
After initialization slowcgi accepts from a AF_UNIX socket, forks and execs. After fork we only need to close(2), chdir(2) and exec. OK benno@ | |||
2015-11-05 | re-shuffle slowcgi_listen to run less code as root. | Florian Obser | |
OK benno@ | |||
2015-09-25 | Output the contents of the environment in debug mode which is | Todd C. Miller | |
most helpful in debugging interactions between httpd and slowcgi. OK florian@ | |||
2015-01-22 | Clean up includes, while here fix a white space which lead to a false | Florian Obser | |
positive during grep'ing. OK reyk | |||
2015-01-19 | The kernel doesn't actually care what a sockaddr's sa_len is on input, | Philip Guenther | |
so don't waste code setting it improvment and ok florian@ | |||
2015-01-16 | Replace <sys/param.h> with <limits.h> and other less dirty headers where | Theo de Raadt | |
possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol) | |||
2014-12-08 | read(2) returns ssize_t, not size_t | Bret Lambert | |
ok florian@ | |||
2014-12-05 | enable warnings | Florian Obser | |
2014-12-05 | Bail out if the buffer is too small to contain the length of a | Florian Obser | |
parameter value. Found while investigating a dead store pointed out by llvm scan-build. | |||
2014-12-05 | dead stores; pointed out by llvm scan-build; no binary change | Florian Obser | |
2014-12-05 | pause shadows global; pointed out by gcc; no binary change | Florian Obser | |
2014-12-05 | mode is unused; pointed out by gcc; no binary change | Florian Obser | |
2014-12-05 | declare lerr and lerrx __dead; unconfuses llvm scan-build | Florian Obser | |
2014-09-19 | Instead of doing the fcntl(2) and ioctl(2) song and dance just tell | Florian Obser | |
socket(2) and accept4(2) that we want non-blocking-close-on-exec sockets. OK benno@ | |||
2014-08-28 | fix previous, and add a SEE ALSO section for httpd; | Jason McIntyre | |
2014-08-26 | remove nginx references | Robert Nagy | |
2014-07-13 | Use lerrx instead of errx since the logging subsystem is already initialized. | Claudio Jeker | |
OK florian@ | |||
2014-06-10 | Implement -u (user to drop privs to) and -p flag (path to chroot to). | Florian Obser | |
This allows to run slowcgi non-chrooted with -p /, requested by at least ratchov@ and henning@. Input by many, OK ratchov@ on a previous diff, "looks good" millert@, man page bits tweak and OK schwarze@ (all some time ago); OK henning@ | |||
2014-06-10 | Cleanup socket creation. | Florian Obser | |
Input ajacoutot some time ago; OK henning@ | |||
2014-04-16 | My previous attempt to chdir(2) to the directory containing the cgi | Florian Obser | |
script was not quite right. slowcgi would try to chdir("") with a SCRIPT_NAME of /foo.cgi; chdir("/") in that case. I'm not sure how one would configure nginx/slowcgi to get to that point though. OK benno@ | |||
2014-04-14 | Calculate the length of name and value for parameters the right way | Florian Obser | |
around for the 4 byte encoding. With this QUERY_STRING can be longer than 127 bytes. Found the hard way while playing with smokeping. OK benno@ | |||
2014-04-13 | httpd(8) did a chdir(2) to the directory containing the cgi script. As | Florian Obser | |
there might be scripts depending on this do the same in slowcgi(8). pointed out and OK ratchov@ | |||
2014-03-17 | jturner pointed out that if one wants to run cgi scripts outside | Florian Obser | |
/cgi-bin SCRIPT_NAME doesn't cut it. The spec says: "The SCRIPT_NAME variable MUST be set to a URL path". Use SCRIPT_FILENAME which can be an absolute filesystem path for these cases and fall back to using SCRIPT_NAME if SCRIPT_FILENAME is not present. Details how to handle this worked out by jturner and sthen. Based on an erlier diff by jturner. Tested by jturner OK jturner, sthen | |||
2014-01-20 | Better explanation what slowcgi(8) is for. | Florian Obser | |
Room for improvements pointed out by deraadt@ Tweaks/OK jmc@ OK deraadt@ | |||
2014-01-19 | Wording improvements from Patrik Lundin | Theo de Raadt | |
2014-01-19 | fix reaper loop that could run indefinitely | Damien Miller | |
log execve() failures to syslog (very useful for debugging SCRIPT_NAME problems) ok florian@ | |||
2013-12-12 | Make it clear that slowcgi(8) drops privileges to user www. | Florian Obser | |
Pointed out some time ago by blambert. OK jmc, blambert | |||
2013-10-31 | Initialize sun_len, pointed out by deraadt@. | Florian Obser | |
While there also check length of socket path, more relevant now since an alternative socket can be specified. OK benno@ | |||
2013-10-29 | Fix a potential file descriptor overlap in exec_cgi() by making sure | Florian Obser | |
that file descriptors zero to two are always open when starting slowcgi. pointed out, with and looks good to deraadt@ | |||
2013-10-23 | We need to loop around waitpid to catch all exited children as we are | Florian Obser | |
not guaranteed to get one signal per child. pointed out by deraadt OK benno, blambert | |||
2013-10-21 | Do not leak fds in fork(2) error path. | Florian Obser | |
pointed out by deraadt@ | |||
2013-10-21 | Check for EINTR, too. | Florian Obser | |
pointed out by deraadt@ | |||
2013-10-21 | No need for volatile here. | Florian Obser | |
pointed out by deraadt@ | |||
2013-10-20 | spelling, spacing, etc | Theo de Raadt | |
2013-10-20 | reserve file descriptors for incoming connections so we | Sebastian Benoit | |
will be able to actually run the cgi for them later on. mirrored on relayd. ok florian@ blambert@ | |||
2013-10-19 | Keep track of which fds were closed before and only close those still | Florian Obser | |
open. Otherwise if there are parallel requests and the timing is just right we were closing random fds from other connections. OK blambert | |||
2013-10-18 | Do not fiddle with the response queue directly but go through | Florian Obser | |
a new slowcgi_add_response() function. This ensures that we always do an event_add. OK blambert | |||
2013-10-18 | Logging to syslog works better with openlog(3). | Florian Obser | |
OK blambert | |||
2013-10-18 | Use a dedicated socketpair for stdin, makes the code more symetric and | Florian Obser | |
gets rid of shutdown(2) which might cause problems. OK blambert | |||
2013-10-18 | Calculate correct pointer for fcgi_{begin,end}_request_body. | Florian Obser | |
input / OK blambert | |||
2013-10-18 | Calculate correct pointer for end_request; while there initialize | Florian Obser | |
reserved to zero. OK blambert | |||
2013-10-18 | set FD_CLOEXEC | Florian Obser | |
OK blambert | |||
2013-09-19 | adjust the names to more accurately reflect the names of structs | Bret Lambert | |
and functions as they relate to the FastCGI protocol style(9)ize some function declarations while here ok florian@ | |||
2013-09-11 | Sprinkle some comments which clarify the protocol/process flow. | Bret Lambert | |
ok florian@ |