#1086233 does not handle unprivileged case as documented in --id

Package:
bsdutils
Source:
bsdutils
Description:
basic utilities from 4.4BSD-Lite
Submitter:
Marc Haber
Date:
2026-01-10 11:07:03 UTC
Severity:
normal
#1086233#5
Date:
2024-10-29 10:28:52 UTC
From:
To:
Hi,

the manual page of logger says regarding --id:

	logger(1) is able to set
	those socket credentials to the given id, but only if you have root
	permissions and a process with the specified PID exists, otherwise
	the socket credentials are not modified and the problem is silently
	ignored.

However, when logger is called without privilges, for example in an
unprivileged podman container, this is not silently ignored:

$ sudo setpriv --inh-caps -SYS_ADMIN --bounding-set -SYS_ADMIN --   logger -t test --id="$$" 'BAD: without CAP_SYS_ADMIN'; echo $?
logger: send message failed: Operation not permitted
0

Is this the intended way to handle things? Writing an error message to
stdout is not "silently".

Greetings
Marc

#1086233#16
Date:
2026-01-10 10:10:54 UTC
From:
To:
Es gibt eine Familienspende in Höhe von 1.850.000,00 USD von Cheng Charlie
Saephan. Bitte antworten Sie für weitere Informationen. Denken Sie daran,
Ihrer Familie und den Bedürftigen in Ihrer Umgebung Gutes zu tun.

Dies ist bereits der zweite Versuch, Sie zu erreichen. Bitte antworten Sie
für weitere Details.