| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
| |
Spotted and diff provided by d ! lowe () openmailbox ! org, thanks!
ok schwarze@
|
|
|
|
|
|
|
| |
encoding error occurs, so do it.
While here, do not set errno after mbrtowc(3) failure; mbrtowc(3)
already does that, and that behaviour is required by the standard.
ok jca@ guenther@ "nice find" deraadt@
|
|
|
|
| |
millert@
|
|
|
|
|
|
|
|
|
| |
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@
|
| |
|
|
|
|
|
|
| |
with inputs from jmc@
ok jmc@ deraadt@
|
|
|
|
|
|
|
|
| |
any file indicated by an environment variable" feature inside the
resolver is incompatible with what pledge "dns" is trying to be. It is
a misguided "feature" added way back in history which almost noone uses,
but everyone has to assume the risk from.
ok eric florian kettenis
|
|
|
|
|
|
| |
enforce it for mkfifo(2) and mknod(2) (with "dpath" promise).
ok deraadt@
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
reported by Jeunder Yu
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
instead of trying to allocate "just enough" memory based on the size of the
file (which is mostly comments, in fact), allocate memory on demand.
i.e., save memory by wasting it. also be a little stricter about parsing.
after discussion with tobias. (with a bug fix from patrick keshishian)
descended from bug glibc bug 18660 via tobias.
|
|
|
|
| |
with input by and ok schwarze@
|
|
|
|
|
| |
native language support was deleted a month ago at u2k15.
OK semarie@ deraadt@
|
| |
|
|
|
|
| |
OK deraadt@
|
|
|
|
|
|
|
|
|
| |
YP lock file unconditionally. This hints to the kernel that a "getpw"
operation is happening, even in the non-YP case. This looks like a
gruesome hack, but helps refine the ways these functions are called
and mandates the right pledge requests. Once the tree is fully annotated
we will know better how to improve the backing store management.
ok semarie espie beck
|
|
|
|
| |
discussed with jsg
|
| |
|
| |
|
|
|
|
|
|
|
| |
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;
|
|
|
|
|
| |
relayd and other programs manipulating the packet filter.
ok deraadt@
|
|
|
|
|
|
|
|
|
| |
For years, it talked to stderr. That was wrong. Then it was converted
to opening /dev/tty, which is also wrong (pledge says so). Upon
reconsideration people in these more modern times have adapted to all
sorts of services not being available, so axe the alert and retry
silently.
ok beck
|
| |
|
|
|
|
| |
ok tedu@
|
|
|
|
| |
ok millert@ kettenis@
|
| |
|
|
|
|
|
|
|
|
| |
string using simpler strings functions and use sendsyslog2() directly.
Also, use the LOG_CONS flag so that single-user reports are more clear.
Use a buffer size of 1024 (from bluhm)
discussed with guenther and matthew
ok millert
|
|
|
|
|
|
| |
LOG_CONS to the kernel. As a result, the /dev/console opening code can
be removed.
ok kettenis millert beck
|
|
|
|
|
|
|
| |
libc to avoid reusing the static buffers returned by the non-reentrant
versions. Since this is inside libc we can use constants for the
buffer sizes instead of having to call sysconf().
OK guenther@ deraadt@
|
| |
|
|
|
|
| |
ok millert@
|
|
|
|
| |
ok jmc@
|
|
|
|
|
|
|
|
| |
wart is incompatible with pledge, because suddenly a "dns" operation
needs "getpw" access to ypbind/ypserv, etc. file + dns access is
enough for everyone, sorry if you were using that old SunOS 4.x style
mechanism, but it is now gone.
ok semarie millert florian
|
| |
|
| |
|
| |
|
|
|
|
| |
ok mmcc@, yes... deraadt@
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Berzerkeley DB code.
|
|
|
|
|
|
|
|
|
| |
This version of the function will always open the secure/shadow/master
password files. Soon, the regular variants of these functions will not.
(Intermixing shadow and regular gets a little weird; don't do that.)
Not using struct spwd and getspwnam functions to reduce churn in callers.
Should just be a one line diff in most places.
ok deraadt
|
| |
|
|
|
|
| |
little better than winner take all caching.
|
| |
|