martynas
9af00b1d73
Annotate a few more bounded functions: realpath(3) needs a buffer
of size at least PATH_MAX. pread(2), pwrite(2) and readlinkat(2)
also take the buffer and the bound. OK theo.
11 years ago
deraadt
a137f8a971
document a hack we want fixed later
11 years ago
rpe
998abefe00
- add chmod of seedfile in /etc
- use its return code for single/multiuser detection
ok deraadt
11 years ago
rpe
3617ad469e
re-use random_seed in shutdown section
ok deraadt
11 years ago
deraadt
e5be49c8bf
create a seed file for the bootloader in /etc/random.seed
11 years ago
deraadt
3722093477
nest random_seed() contents into a single redirection
idea from rpe
11 years ago
deraadt
c4a6c88868
re-do shutdown operations. Run the scripts if we may; take down carp
unconditionally, and then do the optional powerdown
discussed at length with rpe
11 years ago
deraadt
dd546f8037
/stand has not been used in decades
ok miod
11 years ago
deraadt
278b68e64a
when forcing a re-key, might as well toss in dmesg as additional seed
material
11 years ago
deraadt
9cfb3c5807
all the random devices have been the same for a while; so let us avoid
being obtuse and use /dev/random
11 years ago
espie
4802391ad7
make absence of pkg_scripts non silent, after nits from theo and halex.
okay rpe@, kirby@
11 years ago
eric
abf1c90f5d
constify data parameter in imsg_add() and imsg_compose()
ok deraadt@
11 years ago
tedu
d8bf2218c6
remove unneeded check for null context. ok deraadt gilles millert
11 years ago
tedu
daca58aea1
tweak comment
11 years ago
jmc
097b4e760e
fix double word error;
11 years ago
millert
d14d049245
Split out strncpy and strncat from strcpy and strcat manuals.
Requested by deraadt@
11 years ago
deraadt
bc8778bde6
pseudo-code corrections from Solar Designer <solar@openwall.com>
11 years ago
ajacoutot
63ce082e2f
Adapt nsd(1) comment to match the default daemon_flags of the rc.d script.
ok sthen@
11 years ago
halex
81d51a594f
Run spamd-setup from within /etc/rc.d/spamd, and take $spamd_black
into consideration.
Diff from Maurice Janssen, thanks!
ok rpe@ giovanni@
11 years ago
tedu
5ca9d3294f
remove popa3d etc tendrils
11 years ago
millert
270de5c380
Fix typo; 200809 not 20080 for __POSIX_VISIBLE. Noticed by jca@
11 years ago
zhuk
eea8ca989f
Zap some getdirentries() leftovers.
okay guenther@
11 years ago
brad
86608ec247
Have df(1) in the daily output show the inodes used/free.
a few developers thought this was a reasonable/good idea.
11 years ago
jca
6167db7df9
Use a correct pexp and unbreak stop/reload. The old and wrong pexp
in /var/run/rc.d/identd has to be manually removed.
Reported by Adam Jeanguenat (avj at voyager dot 6v6 dot org).
ok dcoppa@ lteo@
11 years ago
naddy
04a21957a1
Drop the f0, f1, f2 gettytab capabilities that were used to poke
magic numbers into sgttyb. The "modern" replacement for f# is the
set of i#, o#, c#, l# to poke magic numbers into termios.
ok miod@
11 years ago
naddy
1be57829f4
remove the final vestiges of the stty(), gtty(), and ftime() compatibility
interfaces; ok deraadt@
11 years ago
deraadt
dd897d4f2d
oops, sgtty.h stays for a little longer
11 years ago
jmc
7197069ae1
no more regexp(3), so point to regex(3);
as advised by deraadt
11 years ago
deraadt
de6fe00f6f
express final disapproval of the interfaces in libcompat, such as
them ftime(), gtty(), stty(), re_comp(), cuserid() and others.
Discussion and ongoing work to fix the ports tree from many, especially
naddy.
ok naddy
[There is a bit more cleanup possible after that, but this is considered
the current safe step]
11 years ago
sthen
f5ca212c7d
Stop security(8) whining about /etc/nsd.conf which has moved, pointed out
by Bjorn Ketelaars. Check that the /var/nsd/etc directory is protected
instead, it may contain zone-transfer keys etc.
11 years ago
krw
52fa874892
CIRCLEQ begone.
ok miller@
11 years ago
jasper
834f9b4a9e
kill /var/obj which has been commented out since -r1.1 in '95.
ok deraadt@
11 years ago
miod
9ab81ad8d7
Copy the bootblocks to the release directory and sha256 it; spotted by
aoyama@
11 years ago
deraadt
4c65102df3
fairly simple unsigned char casts for ctype
ok krw
11 years ago
sthen
cb56ad68eb
/etc/nsd.conf -> /var/nsd/etc/nsd.conf
11 years ago
sthen
d317a16f5e
install sample nsd config file to /var/nsd/etc not /etc, spotted by/ok deraadt
11 years ago
sthen
651586e715
update for NSD 4.0.0; generate keys for nsd-control if non-existent, and
use nsd-control to signal NSD.
11 years ago
sthen
0f470246a1
new sample config entries for NSD 4.0.0
11 years ago
sthen
dd7a41a6be
mtree changes for NSD 4.0
11 years ago
benno
bbbe1469c8
use u_char for buffers in yylex, for ctype calls
found by millert@, ok deraadt@
11 years ago
millert
6ba1b759a9
The getopt() prototype and externs don't belong in stdlib.h. Berkeley
moved them to unistd.h to match POSIX in 1995 but we never did.
The exception to this is getsubopt() which POSIX says should be in
stdlib.h. The non-standard suboptarg extern remains in the BSD-only
section of stdlib.h. Neither getsubopt() nor suboptarg belong in
unistd.h or getopt.h. They were only there to allow us to protect
all the getopt() bits from being multiply defined. OK guenther@
11 years ago
kettenis
58f4e3a1de
regen
11 years ago
kettenis
63836acca0
Change /dev/drm* permissions to 0600.
ok deraadt@, naddy@, ajacoutot@
11 years ago
matthieu
9a28a78424
Give /dev/drm0 to the user logged on the console to be able
to run OpenGL applications. ok kettenis@ naddy@
11 years ago
aoyama
c320b3544e
Delete unused `:0'.
"Good catch" miod@
11 years ago
matthieu
797bf6f637
Remove unused /dev/X0 entries. ok millert@
11 years ago
benno
9acc266dad
document that ibuf_write() and msgbuf_write() can now return EAGAIN
from and with deraadt@
11 years ago
benno
b7644de136
from sthen: handle msgbuf_write() returning EAGAIN
ok krw
11 years ago
benno
82969df044
original bug diagnosed by sthen: automatic retry in msgbuf_write on
EAGAIN causes spinning.
fix from claudio:
"Let msgbuf_write return -1 with errno EAGAIN. The users then must
check if this was the case and readd the event or poll again. The
current handling in the imsg code is wrong for sure."
ok gilles
11 years ago
deraadt
a728e0155c
avoid arithetic on void *
ok guenther otto
11 years ago