From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: util-linux-owner@vger.kernel.org Received: from mo4-p00-ob.smtp.rzone.de ([81.169.146.218]:49355 "EHLO mo4-p00-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756981AbbJ2O0m (ORCPT ); Thu, 29 Oct 2015 10:26:42 -0400 Date: Thu, 29 Oct 2015 15:20:21 +0100 From: Olaf Hering To: Karel Zak Cc: util-linux@vger.kernel.org, Lennart Poettering Subject: Re: regression in logger output to syslog Message-ID: <20151029142021.GA9487@aepfle.de> References: <20151009082541.GA9068@aepfle.de> <20151012104414.GF2356@ws.net.home> <20151012133451.GA6825@aepfle.de> <20151021093743.GA6552@aepfle.de> <20151029103532.GC19508@ws.net.home> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 In-Reply-To: <20151029103532.GC19508@ws.net.home> Sender: util-linux-owner@vger.kernel.org List-ID: On Thu, Oct 29, Karel Zak wrote: > On Wed, Oct 21, 2015 at 11:37:43AM +0200, Olaf Hering wrote: > > On Mon, Oct 12, Olaf Hering wrote: > > > > > So, its "systemd" who eats the required info. > > > > In case you miss it: > > > > ... > > We do not allow faking syslog PID fields, for security reasons, it > > will always be set to what the kernel passed to journald. > > > > If this is something to support, then "logger" needs to to be patched so > > that it can fake the SCM_CREDENTIALS metadata of the messages sent. > > This requires privileges, but is not hard to do. Please file a bug > > against util-linux and ask for for this to be added. > > Implemented, try logger(1) from util-linux git tree, please. Not sure what the "We" above refers to, but this change from 27a9eb5 may still not work for me: + && geteuid() == 0 && kill(ctl->pid, 0) == 0) { For me its required to run logger as non-root and still get the specified number, like it used to do it years ago. Olaf