ajacoutot
f6d70a88c8
This isn't C.
10 years ago
ajacoutot
7edabab9f8
Only set kern.securelevel=1 if it was not lowered nor bumped by
rc.securelevel,
with deraadt@
10 years ago
ajacoutot
60cf083fe4
Consistency.
10 years ago
ajacoutot
85bae20714
Do not output anything by default, to be consistent with the other
site-specific rc.* files, the comment is enough.
ok deraadt@
10 years ago
ajacoutot
7648d2dc9b
/etc/rc already takes care of creating /var/run/utmp.
ok deraadt@ giovanni@
10 years ago
deraadt
68f7c0883b
rc.{local,securelevel,shutdown} become examples. If versions of them
are created in /etc, they are executed (they used to be sourced) to
avoid polluting the rc variable space. The powerdown= and securelevel=
features are removed; they are likely only used by 2 people. the
secureleve is now always raised; this is the only sensible default.
ok ajacoutot
10 years ago
pelikan
c78cad8ccc
international currency locale rules as per POSIX.1-2008
required for libc++
ok guenther afresh1
10 years ago
guenther
fbc71be3ba
Update for arc4random and syslog changes
10 years ago
deraadt
2dfe92794b
check for existance of rc.shutdown, before sourcing it
10 years ago
deraadt
f135be3190
enter libressl for make includes
10 years ago
tedu
1d810a359a
include stdint.h for standard ints. from Jean-Philippe Ouellet
10 years ago
claudio
3234bbf1ae
Add iscsid_flags to rc.conf so we do not try to start iscsid all the time.
Noticed by naddy@
10 years ago
tedu
37a5836398
oops, i deleted the wrong word
10 years ago
tedu
13ffbefb0f
remove a lie spotted by guenther
10 years ago
tedu
d3e68c8356
once srandomdev() is called, switch to using arc4random() but mask off the
high bit as required by posix. wouldn't want to break any standards.
idea and ok deraadt
10 years ago
rpe
9bc3ff3e5f
- move the ntpd.conf file to examples directory
- move it from BIN1 to EXAMPLES in src/etc/Makefile
- change the installer to create the file instead of editing it
- add a '+' to the corresponding changelist entry
suggested by and OK deraadt@
OK for the installer change krw@
10 years ago
deraadt
1efcd9909f
Use dl_iterate_phdr() to iterate over the segments and throw the addresses
into the hash; hoping the system has some ASLR or PIE. This replaces and
substantially improves upon &main which proved problematic with some picky
linkers.
Work with kettenis, testing by beck
10 years ago
deraadt
757bd836f8
Provide a link to the canonical API specification.
ok beck
10 years ago
ajacoutot
4287f8a51a
Mismatch between the sets list and what's in DESTDIR should not be fatal
to sysmerge sum files generation.
discussed by deraadt@
10 years ago
ajacoutot
0dc60495c0
Install some config files with mode 0600 as they were before the move to
/etc/examples.
ok deraadt@
10 years ago
claudio
5d638f514c
rc bits for iscsid. Start iscsid as early as possible. Use the new -N
flag for fsck and mount to check and mount the iscsi file systems (marked
with option net) right after the mount -a.
"Get it in" deraadt@
rpe@ is OK with this going in but it may need further changes
10 years ago
claudio
6ff056777f
Add iscsid to the rc.d files to install
10 years ago
claudio
1368d9b148
rc.d script for iscsid.
10 years ago
beck
6289d57278
While we thought this would make portable life easier it actually
makes it much harder.
ok bcook@ kettenis@
10 years ago
beck
7f965a2eac
Take away the use of the address of main as a source of entropy. Causes
distractions to people testing and seeing link errors in some setups.
This will come back in another form
ok deraadt@
10 years ago
ajacoutot
e89bd4d1a0
egsum -> examplessum to make it more obvious.
req. by deraadt@
10 years ago
ajacoutot
e17286978f
Simplify checksum generation for sysmerge.
no objection from deraadt@
10 years ago
wouter
455c599158
getentropy on Windows. It compiles but has not been thoroughly tested yet.
OK: beck@
10 years ago
wouter
ca0c9eb852
Remove signed/unsigned warning, statement before declaration and
add a function to use function pointers that does not take sizeof(fptr).
OK beck@
10 years ago
miod
9b1d48d8cc
Remove private_{Camellia,RC4}_set_key FIPS indirection tentacles, as has been
done for other symmetric algorithms recently.
10 years ago
deraadt
30150934f0
Wrap "thread_private.h" with #ifdef __OpenBSD__ so that other systems
can copy this file (plus chacha_private.h) directly and reuse it
trivially. Well, as long as they have a getentropy() as well..
ok beck
10 years ago
guenther
0086861d08
Tackle the endian.h mess. Make it so that:
* you can #include <sys/endian.h> instead of <machine/endian.h>,
and ditto <endian.h> (fixes code that pulls in <sys/endian.h> first)
* those will always export the symbols that POSIX specified for
<endian.h>, including the new {be,le}{16,32,64}toh() set. c.f.
http://austingroupbugs.net/view.php?id=162
if __BSD_VISIBLE then you also get the symbols that our <machine/endian.h>
currently exports (ntohs, NTOHS, dlg's bemtoh*, etc)
* when doing POSIX compiles (not __BSD_VISIBLE), then <netinet/in.h> and
<arpa/inet.h> will *stop* exporting the extra symbols like BYTE_ORDER
and betoh*
ok deraadt@
10 years ago
ajacoutot
1a81db2985
cksum -> sha256
That means sysmerge(8) may be a little more interactive the next time you
run it.
10 years ago
beck
279cc5b646
guard inclusion of sys/sysctl.h so we can detect at compile time and
keep linux distros happy that don't have it.
ok bcook@
10 years ago
ajacoutot
04b73346bd
Create the examples checksum for sysmerge at release time.
"move ahead" deraadt@
10 years ago
robert
602dc15331
replace the heavy shell magic in quirks to handle backward compat with simpler
methods
10 years ago
ajacoutot
1c302c3dfd
Shuffle more stuffs around, remove most commented blocks, just sort by
number and make the file easier on the eyes.
discussed with deraadt@
10 years ago
deraadt
bf34b69892
remove gratuitous differences, ok beck
10 years ago
deraadt
96303f230c
remove gratuitous differences, ok beck bcook
10 years ago
stsp
c70fe6e8c1
Fix netstart after autoconf6 change so 'rtsol' lines in hostname.if work again.
found by pelikan@; ok pelikan@ henning@
10 years ago
ajacoutot
d6d8504fd9
Sync with IANA.
"fine" claudio@ deraadt@
10 years ago
deraadt
3f9dd576c8
Split arc4random_uniform into it's own file, to assist other projects
now using this as upstream code. The particular problem is systems
that contain older arc4random derivations lacking arc4random_uniform().
ok tedu miod
10 years ago
beck
a99ff4bd9f
Solaris uses a symbolic link for /dev/urandom which harms best practice of
using O_NOFOLLOW - cope with it as best as possible by trying two
different paths. - written by deraadt@ and kettenis@
10 years ago
robert
e7fd0565a5
Make rc.conf a parsed configuration file and stop sourcing it as a shell
script.
From now on rc.conf has a fixed syntax (key=val) and it is not allowed
to add anything to it besides the supported syntax, it all going to be
ignored.
discussed with and help from deraadt@ and halex@
10 years ago
ajacoutot
bc2478c0da
Move things around (no change):
- some unofficial services became official
- move kerberos next to afs
10 years ago
deraadt
738edd58ee
move exports, ftpchroot, hosts.lpd, printcap, and remote to the examples
directory.
ok robert
10 years ago
guenther
15b4e78952
Welcome to 1989: assume the compiler support const
10 years ago
guenther
0094b6d149
Per C99, wchar.h has to forward declare struct tm
10 years ago
deraadt
25da0193d5
odds are that some ABI change occured today, no matter how careful everyone
is
10 years ago
schwarze
c1f16195d7
indent as suggested by deraadt, no functional change
ok sthen@ deraadt@
10 years ago