halex
cb1bef6d29
snmpd cannot reload
ok reyk@
10 years ago
doug
cd356709c6
Delete secret or secret-derived data with explicit_bzero.
concept ok deraadt@
diff looks ok tedu@
10 years ago
ajacoutot
319900ebf3
Put _rc_err argument under quotes to respect the syntax we are passing.
10 years ago
ajacoutot
17144f935b
Fix reversed logic.
ok schwarze@
10 years ago
ajacoutot
4c9f4fe262
Drop uneeded parenthesis in usage().
ok schwarze@
10 years ago
ajacoutot
d47492b8a8
Drop unused variables.
10 years ago
ajacoutot
c7aa843432
In debug mode, make it clear when we are using the default flags when
none are set.
initial patch from me but reworked by schwarze@
ok schwarze@
10 years ago
ajacoutot
f2e3ccb3b3
In debug mode (`-d'), only print the flags relevant to the rc.d(8) we are
calling instead of all flags which makes it very difficult to see the
information we actually need.
ok schwarze@ robert@
10 years ago
deraadt
eb0d2e879c
Shrink this to the minimum, but reference /etc/examples/pf.conf
(someone should really sit down and flesh out the examples)
10 years ago
deraadt
b0315aca81
disable use of bind in base; in the base use nsd/unbound instead.
a proper & complete bind port will show up.
discussed with many for years
10 years ago
jsg
8183dcbb7a
Set the default nfsd flags to "-tun 4". Matches the comment
in rc.conf and the behaviour of the backwards compatibility
code in rc.subr for nfs_server=YES.
ok ajacoutot@
10 years ago
ajacoutot
8c90873b57
Drop sanitation, _rc_parse_conf does this for us already.
ok schwarze@
10 years ago
mikeb
3582d193e0
Remove userland bits related to the crypto(4) interface; ok deraadt
10 years ago
tedu
69d8bb8294
a small tweak to improve malloc in multithreaded programs. we don't need
to hold the malloc lock across mmap syscalls in all cases. dropping it
allows another thread to access the existing chunk cache if necessary.
could be improved to be a bit more aggressive, but i've been testing this
simple diff for some time now with good results.
10 years ago
ajacoutot
cb1f54ae62
Execute /etc/netstart using sh(1) instead of sourcing it.
Committing early to make sure we have time to fix any side-effect.
ok deraadt@
10 years ago
ajacoutot
c6a40b7e7e
When running interactively, display the output of the "check" action
(ok or failed) like we do with all other actions.
ok jung@ rpe@
10 years ago
bcook
5fc23a1e55
only build the getrandom path if SYS_getrandom is defined.
like the sysctl path
10 years ago
bcook
e285ea02b5
getrandom(2) support for getentropy_linux
This enables support for the new getrandom(2) syscall in Linux 3.17.
If the call exists and fails, return a failure in getentropy(2) emulation as
well. This adds a EINTR check in case the urandom pool is not initialized.
Tested on Fedora Rawhide with 3.17rc0 and Ubuntu 14.04
ok deraadt@
10 years ago
guenther
ba0ca3d3cf
XPG requires insque() and remque() to work with linear lists and not just
circular lists. Amazingly, they managed to extend the requirements to no
longer match the behavior of the VAX instructions they were modeled after,
so the trivial VAX ASM versions have to go. Nice job breaking it, X/Open!
Based on a diff from enh (at) google.com
ok miod@
10 years ago
guenther
c268bc15d8
Use O_CLOEXEC wherever we open a file and then call fcntl(F_SETFD, FD_CLOEXEC)
on it, simplifying error checking, reducing system calls, and improving
thread-safety for libraries.
ok miod@
10 years ago
matthieu
975904f622
Add /usr/X11R6/share/X11/app-defaults
10 years ago
deraadt
26dc53b975
munmap correct object in (extremely unlikely, and effectively terminal)
case of failing to map the 2nd object.
found by Paul Maurers
10 years ago
ajacoutot
753cf82d49
Typo.
ok kili@
10 years ago
kili
7d486d6dd1
Let _rc_parse_conf stick to parsing /etc/rc.conf and /etc/rc.conf.local
if it's invoked without parameters. It's simpler than adding adding
/etc/rc.conf and /etc/rc.conf.local parameters whereever _rc_parse_conf
is used (e.g. /etc/rc and /etc/netstart).
While here, replace a
for foo in "$@"; do something; done
by
for foo; do something; done
ok aja@
10 years ago
bcook
1b243f2530
Guard RSA / RC4-5 ASM when NO_ASM is not defined
Most assembly blocks remain inactive if OPENSSL_NO_ASM is not defined,
only enabling inline assembly, but the RSA / RC4-5 blocks (used only in
amd64 systems) turn on implicitly. Guard these two as well.
This simplifies enabling just inline ASM in portable, no effective
change in OpenBSD.
10 years ago
ajacoutot
24ff923c17
Make it possible to pass arguments to _rc_parse_conf().
ok robert@
10 years ago
guenther
9500f597f2
Delete duplicate conditional
diff from frantisek holop (minusf (at) obiit.org)
10 years ago
guenther
d187729c06
Only need <stdint.h> and not all of <inttypes.h> here
10 years ago
reyk
546aea474c
Change grammar to remove a shift/reduce conflict that was introduced
with the ssl options.
"listen on $ip port 443 ssl" turns into "listen on $ip ssl port 443".
ok florian@
10 years ago
reyk
9c4fe323e3
Add configuration options for the most-important connection limits:
max requests (per connection) and timeout. We don't want to add too
many button, and there are good defaults, but these ones are kind of
mandatory.
10 years ago
naddy
a34d9aff18
enable httpd; ok deraadt@
10 years ago
reyk
959cf4a8d9
Add HTTPS server example.
10 years ago
reyk
01f36f71a9
Change grammar from "log [style]" to "log style [style]".
10 years ago
reyk
ff7f5de360
The first server example should be the "minimal default" to illustrate
that you don't have to push all kinds of buttons to run httpd.
10 years ago
reyk
12cf332beb
More examples, include FastCGI for php and cgi-bin and logging.
10 years ago
rpe
4e46003552
Don't return, just skip over non existing rc.conf or rc.conf.local file.
OK ajacoutot@ halex@
10 years ago
ajacoutot
f35ff6a688
In debug mode, properly sort and drop duplicates so that we don't end
up with a confusing output like:
multicast_host >NO<
<...>
multicast_host >YES<
Also properly evaluate values _after_ running _rc_quirks() because these
can modify flags.
ok robert@ halex@
10 years ago
ajacoutot
a3ad997f4b
Fix evil typo (multicast_hosts -> multicast_host).
10 years ago
reyk
1634d1e524
Add "location" keyword to specify path-specific configuration in
servers, for example auto index for a sub-directory only. Internally,
a "location" is just a special type of a "virtual" server.
10 years ago
reyk
7e37bc43eb
Add extended directory index options: "[no] index" and "[no] auto index".
The option "directory auto index" implements basic directory listing
and is turned off by default.
ok deraadt@
10 years ago
tedu
5802de8469
Remove SRP code. It contains a bug (this should not surprise anyone), but
the details are under embargo. The original plan was to wait for the
embargo to lift, but we've been waiting for quite some time, and there's no
indication of when or even if it will end. No sense in dragging this out
any longer.
The SRP code has never been enabled in OpenBSD, though I understand it is
in use by some other people. However, in light of this and other issues,
we're officially saying SRP is outside the scope of libressl. (For now.)
10 years ago
reyk
9a741ea942
Add more examples. Requested by deraadt@
10 years ago
reyk
4d0f0c4818
httpd.conf can be installed 0644 instead of 0600 like relayd.conf.
ok ajacoutot@ benno@
10 years ago
ajacoutot
9842e10cd1
Add httpd.conf.
10 years ago
ajacoutot
58872ed577
Trailing whitespace.
10 years ago
sthen
0564a7b48d
add 5.7 firmware key
10 years ago
ajacoutot
4869b0e38c
Revert revisions 1.88-1.94 but keep recent relevant changes.
The `+' sign was added by mistake thinking it was doing something else.
ok schwarze@
10 years ago
reyk
bfcc4fcb27
Enable httpd(8) in the builds to get more testing, feedback and
improvements. It is not "finished" but serves static files.
ok deraadt@
10 years ago
deraadt
f3d3d691bf
Repair two deep targets mistakenly called as afterinstall, rather
than distribution. These would modify files in /etc, part of the base
set, but still... that makes it harder to discern their sets placement.
10 years ago
reyk
400400fa19
Add initial httpd.conf(5) example for httpd(8)
Requested by deraadt@
10 years ago