Re: [EXTERNAL] [RESEND(4) PATCH] archival: disallow path traversals (CVE-2023-39810)

2025-04-01 Thread ChenQi
Will this patch be accepted? Or is it not suitable for busybox for some reason? Regards, Qi On 10/11/24 15:54, Ian Norton wrote: FYI, This seems also related to https://bugs.busybox.net/show_bug.cgi?id=16018

[PATCH 0/3] syslogd: Add a configurable option to log timestamps in ISO 8601 format

2025-04-01 Thread Grant Erickson
This provides unification for the several syslogd options that influence handling and formatting of log timestamps and adds a new configuration and option. First, this unifies the handling of messages with a client-generated timestamps when both 'FEATURE_SYSLOGD_PRECISE_TIMESTAMPS' and 'FEATURE_SY

[PATCH 1/3] syslogd: Use a local to track whether a message has a timestamp.

2025-04-01 Thread Grant Erickson
This improves self-documentation and readability of the code. Signed-off-by: Grant Erickson --- sysklogd/syslogd.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c index 73c681827d86..a188370b4a0a 100644 --- a/sysklogd/syslogd.c ++

[PATCH 3/3] syslogd: Add a configurable option to log timestamps in ISO 8601 format

2025-04-01 Thread Grant Erickson
This adds a configurable option 'FEATURE_SYSLOGD_ISO8601FMT' enabling a command line option ('-I', with semantics similar to 'date') that directs syslogd to log timestamps in ISO 8601 format. Precision in seconds (the default), milliseconds, and microseconds are supported. Without the 'FEATURE_SYS

[PATCH v3] syslogd: Add a configurable option to log timestamps in UTC.

2025-04-01 Thread Grant Erickson
This adds a configurable option 'FEATURE_SYSLOGD_UTC' enabling a command line option ('-u') that directs syslogd to log timestamps in Coordinated Universal Time (UTC) rather than in local time. Signed-off-by: Grant Erickson --- sysklogd/syslogd.c | 61 +++--

[PATCH 2/3] syslogd: Unify messages with client timestamps when both PRECISE and UTC are enabled.

2025-04-01 Thread Grant Erickson
This unifies the handling of messages with a client-generated timestamps when both ENABLE_FEATURE_SYSLOGD_PRECISE_TIMESTAMPS and ENABLE_FEATURE_SYSLOGD_UTC are asserted. In particular, to support the intermix of client-generated and server-generated timestamps, the former are zero-padded such that

[PATCH] syslogd: Fix 'OPT_locallog' check regression in 'syslogd_main'.

2025-04-01 Thread Grant Erickson
In the recent refactoring of 'syslogd_main', a regression was introduced in handling the manual bitwise OR of 'OPT_locallog' as follows: if (ENABLE_FEATURE_REMOTE_LOG && !(opts & OPT_remotelog)) // -R option_mask32 |= OPT_locallog; 'opts' represents the locally-scoped output of 'getopt32' a