ajacoutot
643ff62e07
After starting, unconditionally wait up to $daemon_timeout seconds to check that
the daemon is actually running (instead of only when using rc_bg).
This *may* trigger the following side effect: if a daemon starts then stops
right away (because of a config parsing issue for e.g.), then it will slow down
the boot process because rc will wait a bit before considering the start action
failed. But at least it will allow us to detect those daemons and fix them or
their rc.d(8) script.
At least as far as I can tell, all base daemons should cope with it just fine.
ok sthen@ robert@ on an earlier diff
9 years ago
reyk
b8496badea
Move log_sockaddr() to from log.c to util.c as it is a local addition
and actually not a "logging" function. No functional change.
9 years ago
ajacoutot
55908109a4
Child will not return a config parsing error to the parent so rc.d will lie and
tell you that the daemon succesfully started; prevent this by running a config
check first.
Note that we only do this for those particular daemons, not all that support a
config test mode.
ok benno@ phessler@
9 years ago
ajacoutot
da0a0680c3
Tidy up _rc_wait().
ok sthen@ robert@
9 years ago
ajacoutot
d156959a8d
Tweak pexp.
9 years ago
tb
90b17882f1
Simplify return call of rand() and rand_r() to make it easier to read.
This is slightly less robust, but RAND_MAX must be one below a power
of two in both variants anyway.
Based on a suggestion by Matthew Martin.
ok tedu@
9 years ago
ajacoutot
1e90611816
Drop the now useless multicast setup comment.
prodded by tim@, ok mpi@
9 years ago
ajacoutot
3628daa062
Simplify multicast option handling (10 less lines) by matching /etc/rc behavior
towards other YES|NO options and drop the error warning.
with and ok tim@, ok rpe@ on an earlier diff
9 years ago
ratchov
0dbf1530bb
Add _sndiop user and group for (future) privileged sndiod process.
ok deraadt
9 years ago
jturner
84f196c498
Add pexp match otherwise rcctl stop vmd doesn't work. OK deraadt@
9 years ago
sthen
e8c24d0335
add commented-out unbound.conf entries for dns64 (sitting in my tree and ok'd
some time ago by phessler and IIRC also mikeb), and for qname-minimisation
9 years ago
deraadt
d697a492aa
automatic HOSTALIASES setup is a bad idea
9 years ago
tedu
acb3665fb0
tiny sanity check on file size
9 years ago
bcook
a1172a2c6e
bump the major for libcrypto/ssl/tls for a CRYPTO_chacha_20 ABI change
ok jsing@, deraadt@, beck@
9 years ago
tb
a02ad43121
Add a cast to silence a compiler warning by clang on FreeBSD.
From Craig Rodrigues.
ok tedu@
9 years ago
deraadt
eb43e0a37f
vmm node only needs mode 600
9 years ago
tedu
1bd8c9e70f
Integrate two patches originally from Daniel Micay.
1. Optionally add random "canaries" to the end of an allocation. This
requires increasing the internal size of the allocation slightly, which
probably results in a large effective increase with current power of two
sizing. Therefore, this option is only enabled via 'C'.
2. When writing junk (0xdf) to freed chunks (current default behavior),
check that the junk is still intact when finally freeing the delayed chunk
to catch some potential use after free. This should be pretty cheap so
there's no option to control it separately.
ok deraadt tb
9 years ago
deraadt
c73606106c
libexec/smtpd dir no longer needed; ok gilles
9 years ago
sunil
fe815f777e
Use mailwrapper path instead of smtpd.
Ok tb@ jung@
9 years ago
reyk
67ade0d215
Previously forgot another /var in the comment
9 years ago
reyk
c107e6cdeb
/var/vm is a terrible idea, the images are filled on demand, they are
not backed by blocks until used.
So I'll use /home/vm instead.
Pointed out by deraadt@
9 years ago
reyk
07eac4e2f3
Add initial vm.conf(5) example. But please note that the grammar is
not fixed yet.
9 years ago
sunil
a1901af870
Now that makemap(8)/newaliases(8) are merged into smtpctl(8), update
the paths.
Ok gilles@, jung@
9 years ago
rpe
4281692bf7
Add missing rc bits for rebound.
rc-wise OK aja@ jasper@
9 years ago
ajacoutot
38163061a4
multicast_router -> multicast
9 years ago
mpi
d372622fa0
It does not make sense to insert a specific route for 224/4 when the
default one is good enough.
So merge rc.conf(8)'s 'multicast_router' and 'multicast_host' into a
single 'multicast'. If set to YES the reject route for 224/4 is not
inserted by netstart(8).
Manual bits from jmc@
ok henning@, ajacoutot@
9 years ago
claudio
d6e39ab1f4
EAGAIN handling for imsg_read. OK henning@ benno@
9 years ago
claudio
a3ecc333c4
Do not loop on EAGAIN in imsg_read(). Better to return the error to the
caller and let him do another poll loop. This fixes spinning relayd
processes seen on busy TLS relays. OK benno@ henning@
9 years ago
jasper
defd0fdf0b
add rcscript for vmd
ok mlarkin@
prompted by deraadt@
9 years ago
tedu
50650f2a7b
remove doas.conf since the permission check is too onerous.
the doas program itself will refuse to use an insecure config file.
(changelist will continue to watch for changes, as well.)
9 years ago
rpe
c3b3b643ef
Since version 1.467 of /etc/rc, it was no longer possible to add
shlib_dirs using /etc/rc.conf.local.
Fix from Jan Johansson, thanks.
OK krw@, halex@
9 years ago
deraadt
d6a94a221b
Send Aviion to same place as Nova II
9 years ago
deraadt
c12490e447
Send Aviion to same place as Nova II
discussed with jsg
9 years ago
deraadt
8808d80c07
create new independent uid/gid for tftp_proxy and ftp_proxy.
They should not share a uid. Leave the proxy uid for later mop-up
(sysmerge does not handle uid renamings well enough)
ok dlg, ok aja a while back
9 years ago
mmcc
11bd1912a3
Phrase allocation failure more clearly. ok deraadt@
9 years ago
jturner
a21aed8fa4
Add rebound rc.d script.
ok benno@ requested by tedu@
9 years ago
jmc
d892e4384e
change Xrs from now-defunct db(3) to dbopen(3); this wasn;t a
straight replace: thanks both to schwarze and maja for feedback
on how to rewrite parts;
i've snuck in an rcs id->openbsd id change in dev_mkdb too;
9 years ago
deraadt
ad315a6f1a
yppasswd went away
9 years ago
mmcc
e95c7e3634
Remove three NULL-checks before free(). ok millert@
9 years ago
millert
af62780c97
Use the backchannel for all error messages instead of syslog(3).
OK deraadt@ beck@
9 years ago
deraadt
f1d90ba852
Disable by default the *.emerg block; ok millert beck
9 years ago
guenther
c7b217f282
Wrap <icdb.h> so that calls go direct and the symbols are all weak
ok tedu@
9 years ago
daniel
bc3b5c8183
Document that these functions are now in strings.h.
ok millert@
9 years ago
bentley
490b2e24b5
Don't fake a bulleted list by prefixing items with 'o'.
ok jmc@
9 years ago
deraadt
531d870924
Cache values from getpwnam() done at initialization, which need to be
used by the constraint processes setup later (chroot, setuid...)
[late getpwnam discovered during a further audit]
ok millert
9 years ago
millert
8c8787aac5
POSIX says that ffs(), strcasecmp(), strncasecmp(), r?index() and
the b* byte functions belong in strings.h, not string.h so break
them out of string.h into a new strings.h. As long as there is no
POSIX or X/OPEN define in use string.h will pull in strings.h.
OK naddy@ deraadt@
9 years ago
tedu
4c1a084e50
use RMS for jitter. we're linking with enough libraries that libm is tiny.
ok deraadt
9 years ago
mmcc
c3ad325375
Simplify all instances of get_string() and get_data() using malloc() and
strndup().
ok millert@
9 years ago
tedu
7a4ef21e60
add a version field to prevent mayhem if different data gets stored
9 years ago
tedu
b15fab3fb6
update for new symbols and code
9 years ago