Date: Wed, 03 Jul 2024 12:52:24 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 109478] [libc] [patch] adopt reentrant syslog functions from OpenBSD Message-ID: <bug-109478-227-eY1BARjRa7@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-109478-227@https.bugs.freebsd.org/bugzilla/> References: <bug-109478-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D109478 --- Comment #5 from crest@rlwinm.de --- How about having to provide the a buffer with maximum alignment and its siz= e? If the buffer is too small it could return -1 times the required size. On success it would still return 0. A bit clunky, but it allows C code to use a VLA with alignment attribute (or just alloca()) to allocate the buffer on t= he callers stack if you really don't want to restrict the implementation to a specific size and or call malloc(). While we're looking at nice OpenBSD APIs how could a sendsyslog() with jail awareness look? Allow each jail to have its own logging socket passed into = the kernel and if non exists forward the messages to the kernel with the jail i= d, pid, login class, sid, pgid, euid, egid, etc. as ancillary data? --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-109478-227-eY1BARjRa7>