| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
the first byte of the imsg they belong to.
idea, tweaks and ok claudio@
|
|
|
|
| |
ok deraadt@ claudio@
|
|
|
|
|
|
| |
to control which symbols are exported from the shared library.
ok guenther@, deraadt@, jca@
|
|
|
|
|
|
|
|
|
|
| |
In our privsep model, imsg is often used to transport sensitive
information between processes. But a process might free an imsg, and
reuse the memory for a different thing. iked uses some
explicit_bzero() to clean imsg-buffer but doing it in the library with
the freezero() is less error-prone and also benefits other daemons.
OK deraadt@ jsing@ claudio@
|
|
|
|
|
|
|
| |
the standard realloc*() functions can leave behind. imsg buffers are
sometimes used in protocol stacks which require some secrecy, and layering
violations would be needed to resolve this issue otherwise.
Discussed with many.
|
|
|
|
|
| |
ok and slight improvement, mmcco@
ok semarie@ and encouragement tedu@ krw@
|
|
|
|
| |
ok gilles claudio doug
|
|
|
|
| |
henning@ "sure"
|
|
|
|
|
|
| |
from this case where we have a static buffer and cant realloc.
ok phessler, claudio, reyk
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
on descriptors, this can be achieved thanks to the new getdtablecount()
system call. application may provide a reserve count to ensure that the
recvmsg() call is not called when they don't have enough descriptors to
work properly.
change the API so that transient errors that can be retried immediately
are retried within the function right away, whereas transient errors for
which the application may want to take action will set errno to EAGAIN.
ok deraadt@ and henning@
|
|
Minor bump for libutil.
Previous versions of this diff and man page looked at by various people.
"you should just commit" deraadt
|