| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
to privsep_procid.
ok mortimer
|
|
|
|
|
| |
from Ross L Richardson <openbsd AT rlr DOT id DOT au>, Thanks
ok claudio@
|
|
|
|
| |
Found by Ross L Richardson, Thanks.
|
|
|
|
|
|
|
| |
proc_init(). As a consequence httpd(8) and relayd(8) child processes
did not detach from the terminal anymore. Dup /dev/null to the
stdio file descriptors in the children.
OK benno@
|
|
|
|
|
| |
From Hiltjo Posthuma hiltjo -AT codemadness -DOT- org, thanks!
ok florian, claudio
|
|
|
|
|
|
| |
the servers config for its rekeying handling. Without this no rekeying happens
and httpd stops working. Learned the hard way by me and beck@
OK reyk@
|
|
|
|
|
|
|
| |
tls ticket lifetime default
to turn it on with a 2h ticket lifetime.
Rekeying happens after a quarter of that time.
OK reky@ and bob@
|
|
|
|
| |
upon "inet". Adjust the 4 programs that care about this.
|
|
|
|
|
|
|
|
| |
This replaces log_verbose() and "extern int verbose" with the two functions
log_setverbose() and log_getverbose().
Pointed out by benno@
OK krw@ eric@ gilles@ (OK gilles@ for the snmpd bits as well)
|
| |
|
|
|
|
|
|
|
|
| |
receiving side of proc_connect(). Move some code from main into
proc_init(), the function is now called by parent and children, not
just the parent and it is less copy + paste for other daemons.
OK florian@
|
|
|
|
|
|
|
|
| |
This commit implemented the basic functions to proc.c to make it not rely
on global variables, malloc()ed memory and CLOEXEC pipes.
Fix child proc titles from reyk@
ok reyk@, florian@
|
|
|
|
|
|
|
| |
kill()ing child process.
"Looks good to me" millert@
ok benno@
|
|
|
|
|
|
|
| |
We got the same information in ps_instances[proc] (more accurate) and
we avoid allocating unnecessary memory for pipe storage.
ok reyk@
|
|
|
|
| |
ok natano reyk
|
|
|
|
| |
Pointed out by Frank Schoep, thanks!
|
|
|
|
|
|
| |
from Hiltjo Posthuma
"do." deraadt
|
|
|
|
|
|
| |
titles (including flags) to distinguish between daemons, this makes it
possible to manage multiple copies of a daemon using the normal infrastructure
by symlinking rc.d scripts to a new name. ok jung@ ajacoutot@, smtpd ok gilles@
|
|
|
|
| |
From Jan Schreiber
|
|
|
|
| |
from Gregor Best, discussed with florian
|
| |
|
|
|
|
|
|
| |
As done in iked and snmpd.
OK jung@
|
|
|
|
|
|
|
| |
include the process name, and replace all calls of fatal*(NULL) with
fatal(__func__) for better debugging.
OK benno@
|
|
|
|
| |
both daemons are now sharing the same file. No functional changes.
|
|
|
|
|
|
| |
strndup().
ok millert@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1) The main process listens on sockets and accepts connections. It
creates and opens log files, creates and kills child processes. On
start up and on receiving a HUP signal it parses the configuration. It
passes on file descriptors for logging or requests to it's children.
2) The logger process writes log messages to a file descriptor passed
in from the main process.
3) The server process reads the request from a file descriptor passed
in from the main process. It reads a file or creates a directory index
to send a response.
Additionally this process handles fastcgi requests. It connects to
AF_UNIX, AF_INET or AF_INET6 sockets. A re-factoring might make it
possible to drop the additional fastcgi privileges when only static
files are served.
with deraadt@ some time ago
prodding & OK deraadt@
tweaks and OK reyk@
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
diff from Denis Fondras
ok reyk
|
| |
|
|
|
|
| |
From Michael McConville
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
of u_intN_t) and replace u_int with unsigned int. Mixing both
variants is a bad style and most contributors seem to prefer this
style; it also helps us to get used to it, portability, and
standardization.
Theoretically no binary change, except one in practice: httpd.o has a
different checksum because gcc with -O2 pads/optimizes "struct
privsep" differently when using "unsigned int" instead "u_int" for the
affected members. "u_int" is just a typedef of "unsigned int", -O0
doesn't build the difference and clang with -O2 doesn't do it either -
it is just another curiosity from gcc-land.
OK semarie@
|
|
|
|
|
|
| |
eg. default type text/html.
OK florian@
|
|
|
|
|
| |
is non-portable. Also add missing asprintf() return value checks.
OK deraadt@ guenther@ doug@
|
|
|
|
|
|
| |
process on shutdown.
Found while working on tame(2).
OK benno@
|
|
|
|
|
|
| |
block return 301 "http://www.example.com/$REQUEST_URI"
OK tedu@ florian@
|
|
|
|
| |
url_decode(). No functional change.
|
|
|
|
|
| |
Problem pointed out by remco AT d-compu.dyndns.org some time ago.
Input / OK reyk@
|
| |
|
|
|
|
|
|
|
|
|
| |
needed by its ancestor. jsg@, include-what-you-use, and some manual
review helped to cleanup the headers (take iwyu with a grain of salt).
Based on common practice, httpd.h now also includes the necessary
headers for itself.
OK florian@
|
|
|
|
| |
OK florian@
|
|
|
|
|
|
|
|
|
| |
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)
|
|
|
|
|
|
| |
stop at the '/' marking the beginning of the filename.
This allows to configure a Content-Type for a filename without a dot.
OK reyk@
|
|
|
|
| |
from Max Fillinger
|
| |
|
| |
|
|
|
|
|
|
|
| |
fixed as /logs within the chroot. As this httpd is properly privesp'ed this
has the nice property of allowing us to put the logs outside the chroot if
we want to.
ok reyk@
|
|
|
|
|
| |
Tested by ajacoutot@ and others
OK doug@
|
| |
|