| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |
|
|
|
|
|
| |
when something went wrong. This allows to monitor whether the
system is under attack and that the attack has been prevented by
OpenBSD pledge(2).
OK deraadt@ millert@ jmc@
|
| |
|
|
|
|
| |
prohibited sysctl.
ok deraadt
|
| | |
|
| |
|
|
|
|
| |
with the RS780E chipset.
OK kettenis@, jsg@
|
| | |
|
| |
|
|
| |
From semarie@, ok deraadt@
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The syscall is marked NOLOCK and only FUTEX_WAIT grabs the KERNEL_LOCK()
because of PCATCH and the signal nightmare.
Serialization of threads is currently done with a global & exclusive
rwlock.
Note that the current implementation still use copyin(9) which is not
guaranteed to be atomic. Committing now such that remaining issues can
be addressed in-tree.
With inputs from guenther@, kettenis@ and visa@.
ok deraadt@, visa@
|
| |
|
|
|
| |
from Anton Lindqvist
ok semarie
|
| |
|
|
|
|
|
| |
because it tries MTIOCTOP against stdin, the tty. It is very inconvenient
to use isatty to distinguish this difference in userland, so return ENOTTY
for tty devices.
ok natano
|
| |
|
|
|
|
| |
and four libc major versions ago
ok sthen@ jsing@ deraadt@ jca@
|
| |
|
|
| |
from Matthias Pitzl; OK deraadt@
|
| |
|
|
| |
from sthen and others
|
| |
|
|
| |
from Matthias Pitzl; OK deraadt@
|
| | |
|
| | |
|
| |
|
|
|
| |
Also fail if the descriptor is actually a tty.
ok guenther
|
| |
|
|
|
| |
"bpf", and "inet" can finally go away. Use a snapshot if you get into
trouble, most likely in pax..
|
| |
|
|
|
|
| |
for upcoming IPv6 stateless address autoconfiguration daemon to see
if autoconfiguration and autoconfprivacy are enabled.
Input semarie@; OK deraadt@
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
upon "inet". Adjust the 4 programs that care about this.
|
| | |
|
| |
|
|
|
|
| |
struct proc to struct process.
ok deraadt@ kettenis@
|
| |
|
|
| |
From patrick keshishian
|
| |
|
|
|
|
| |
no need to wait until the first program using it breaks...
"could make sense" semarie@ (and thanks for the cluestick)
OK deraadt@
|
| |
|
|
| |
ok deraadt@
|
| |
|
|
|
|
|
|
|
|
| |
set variables that will be later used as the size argument to
free(NULL calls. This should be harmless as free returns early if the
address is NULL without checking the size. Initialise these variables
before the call to ensure they are never passed to another function
uninitialised.
ok tedu@ millert@ deraadt@
|
| |
|
|
|
|
| |
Use a local variable struct process *pr to simplify expressions
ok deraadt@
|
| |
|
|
| |
ok deraadt
|
| |
|
|
| |
ok deraadt@
|
| |
|
|
|
| |
used internally by low-level drivers from sys/audioio.h to
dev/audio_if.h instead of deleting them.
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
ok semarie
|
| |
|
|
|
|
|
|
| |
affects only 32 bits platform (like i386).
problem spotted and diff from pelikan@
ok deraadt@ jca@
|
| |
|
|
|
|
| |
can't (in the future) loop from ktrace writing hitting a pledge condition.
diff from Michal Mazurek (akfaew (at) jasminek.net)
|
| |
|
|
|
|
|
|
|
|
|
|
| |
it splits PLEDGE_FATTR in two ("fattr" stills grant the 2 flags, so no functional changes):
- PLEDGE_CHOWN : to be able to call *chown(2) syscalls
- PLEDGE_FATTR : the rest
it introduces "chown" which grant:
- PLEDGE_CHOWN : be able to call *chown(2)
- PLEDGE_CHOWNUID : be able to modifying owner/group
ok deraadt@ tedu@
|
| |
|
|
| |
ok deraadt@
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
By keeping both the new (sys_kill/sys_thrkill) and old (sys_o58_kill)
system calls for the OpenBSD 6.0 release, code that uses either of these
mechanisms will work on both of the supported OpenBSD releases. This
provides a clean transition for runtimes that make direct system calls
(namely the Go programming language).
This requires a minimal amount of non-intrusive code and does not block
development progress within OpenBSD.
ok deraadt@ guenther@
|
| |
|
|
|
| |
Useful to implement GTSM support in daemons such as bgpd(8). Diff from
2013 revived by renato@. Input from bluhm@, ok bluhm@ deraadt@
|
| |
|
|
| |
ok mglocker
|
| |
|
|
| |
ok guenther sthen
|
| |
|
|
|
| |
a flags argument
ok guenther sthen
|
| |
|
|
|
| |
(the src path lookup is considered a rpath operation)
noticed by kristaps, discussed with semarie
|
| |
|
|
|
|
| |
please note that chrooted process are still possible with pledge(2), but only
if the chroot(2) is done *before* calling pledge(2). Once pledged, no more
chroot(2) call are permitted.
|
| |
|
|
|
|
|
|
|
|
|
| |
pledge_namei_wlpath(). Call the wlpath check only at the end of namei
after the namei lookup would otherwise succeed.
2) Add support to namei to keep the path that was looked up, without the
symlinks in it, and use that path for whitelist path lookups. This
means that paths in pledge whitelists will need to always be the
real path to an intended file to whitelist, without symlinks. Any
symlinks to the "real" file will then be allowed
ok deraadt@ semarie@
|
| |
|
|
|
|
| |
reductions.
ok deraadt@
|
| |
|
|
|
|
| |
bitflags)
ok deraadt@ jca@
|