From nobody Wed Jul 03 12:52:24 2024 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WDfnP0vwcz5PDFs for ; Wed, 03 Jul 2024 12:52:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WDfnN706mz4kL5 for ; Wed, 3 Jul 2024 12:52:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1720011145; a=rsa-sha256; cv=none; b=p9JIeTbcK92e4qBvlYxhiJwsbhNmhlqtI8slWnFEfwY0uMtE168VwTMra9rIgExYmNiXI6 H2x+4hFINZ3jaGio7loO8wZBqE1pkitp7q2vDKM8yXtTnwdso3oyhtmIibUiA5xynMh3bn qcZ50EeAxtsOztmEtVhK84pVyrpNdBps7KMAREkmapvwcGigPZMnyg1xVExe/sOXRxqwFv 6fe0vRnvgwm/2EzMRnSkWlCiV0DUuweDYAolZ8FaoX8e0PXqBmsu+R9BEamtIq8uadFEGF 9waPGmLpNaKOi1rQolIxqHw/8Cl8ddwHtpeNocU/APj1tgcXpr3Xi1HeqTlj6w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1720011145; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=LTsInBJsDAcZnpSOccbTs9v6GMS8Xfn2WFABUvlohQw=; b=mndbVwFqtL5/J8RryDdSPwme99qP/7/VKorWhtqMawL3fdivLTn2KIkIqLr7IEPkTOxFsT XtxfXJ5s6PuOfrxQOGaVDv4Ie7l2AuKtizAKd8boA46WFa2XqXwybTL+t7ept8p2biYu6K xST6N3pxOvFLLfNOR6XOzOdvKgad28v1+55ArkfTaUZBVForZ8YxIbNHLbDee+qZ6i3UQx XT9E5BsfWal4m4Z4q3Pyh7iHJLZ9y66bpZvyDQ3g32/R2NBi/IrBde2L2rE1Z4sxlCPxok aIfVh/jO2HzEeU2duMJvRxl7dgMgrdimSvZGc0ndqAB5mewx0Uj1aYA+dqaNUg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WDfnN6bpSzY4n for ; Wed, 3 Jul 2024 12:52:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 463CqO9Y014904 for ; Wed, 3 Jul 2024 12:52:24 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 463CqONa014902 for bugs@FreeBSD.org; Wed, 3 Jul 2024 12:52:24 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 109478] [libc] [patch] adopt reentrant syslog functions from OpenBSD Date: Wed, 03 Jul 2024 12:52:24 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 6.2-STABLE X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: crest@rlwinm.de X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 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.=