Re: imsg_get_data Question

Florian Obser <[email protected]>
Newsgroups gmane.os.openbsd.tech
Message-ID <[email protected]>
imsg is usually used over a privilege boundary. The sender is supposed
to send exactly len bytes of data. If it fails to do that the receiver
has to assume the sender is compromised and terminate itself.
E.g. (dhcpleased/engine.c):

case IMSG_CTL_LOG_VERBOSE:
	if (imsg_get_data(&imsg, &verbose,
	    sizeof(verbose)) == -1)
		fatalx("%s: invalid %s", __func__, i2s(type));

-- 
In my defence, I have been left unsupervised.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.