[Bug 109478] [libc] [patch] adopt reentrant syslog functions from OpenBSD
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 03 Jul 2024 12:52:24 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=109478 --- Comment #5 from crest@rlwinm.de --- How about having to provide the a buffer with maximum alignment and its size? 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 the 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 id, pid, login class, sid, pgid, euid, egid, etc. as ancillary data? -- You are receiving this mail because: You are the assignee for the bug.