TS Lura <[email protected]>
:Mark Hindley <[email protected]>
:Received: (at 499-done) by bugs.devuan.org; 11 Jan 2023 12:15:02 +0000 Return-Path: <[email protected]> Delivered-To: [email protected] Received: from email.devuan.org [2001:41d0:2:d06e::5c4:2612] by doc.devuan.org with IMAP (fetchmail-6.4.16) for <debbugs@localhost> (single-drop); Wed, 11 Jan 2023 12:15:02 +0000 (UTC) Received: from email.devuan.org by email.devuan.org with LMTP id oGeWKhmovmOSdQAAmSBk0A (envelope-from <[email protected]>) for <[email protected]>; Wed, 11 Jan 2023 12:14:17 +0000 Received: by email.devuan.org (Postfix, from userid 109) id A095ADB6; Wed, 11 Jan 2023 12:14:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on email.devuan.org X-Spam-Level: X-Spam-Status: No, score=0.4 required=5.0 tests=RDNS_DYNAMIC,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=193.36.131.86; helo=mx.hindley.org.uk; [email protected]; receiver=<UNKNOWN> Received: from mx.hindley.org.uk (193-36-131-86.cfwn.uk [193.36.131.86]) by email.devuan.org (Postfix) with ESMTPS id 1A088B11 for <[email protected]>; Wed, 11 Jan 2023 12:14:15 +0000 (UTC) Received: from apollo.hindleynet ([192.168.1.3] helo=hindley.org.uk) by mx.hindley.org.uk with smtp (Exim 4.84_2) (envelope-from <[email protected]>) id 1pFZzh-0001kQ-SM for [email protected]; Wed, 11 Jan 2023 12:14:13 +0000 Received: (nullmailer pid 12839 invoked by uid 1000); Wed, 11 Jan 2023 12:14:13 -0000 Date: Wed, 11 Jan 2023 12:14:13 +0000 From: Mark Hindley <[email protected]> To: [email protected] Subject: Fixed in Debian #989354 Message-ID: <[email protected]> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Debbugs-No-Ack: No Thanks Version: 2.7.3-4
ShadowM00n <[email protected]>
:Mark Hindley <[email protected]>
:Mark Hindley <[email protected]>
to [email protected]
.
Full text available.Mark Hindley <[email protected]>
to [email protected]
.
Full text available.Mark Hindley <[email protected]>
to [email protected]
.
Full text available.Mark Hindley <[email protected]>
to [email protected]
.
Full text available.Received: (at 499) by bugs.devuan.org; 28 Jul 2020 17:50:23 +0000 Return-Path: <[email protected]> Delivered-To: [email protected] Received: from tupac3.dyne.org [195.169.149.119] by doc.devuan.org with IMAP (fetchmail-6.4.0.beta4) for <debbugs@localhost> (single-drop); Tue, 28 Jul 2020 17:50:23 +0000 (UTC) Received: from mail.cock.li (mail.cock.li [37.120.193.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by vm6.ganeti.dyne.org (Postfix) with ESMTPS id DD292F608A2 for <[email protected]>; Tue, 28 Jul 2020 19:45:08 +0200 (CEST) Authentication-Results: vm6.ganeti.dyne.org; dkim=pass (2048-bit key; unprotected) header.d=airmail.cc [email protected] header.b="kysiRe4E"; dkim-atps=neutral Date: Tue, 28 Jul 2020 12:45:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=airmail.cc; s=mail; t=1595958307; bh=l04yuCcESOto6XjM9MK/wgaykejwG6s0fkM+kQ2uB7E=; h=Date:From:To:Subject:References:In-Reply-To:From; b=kysiRe4Ew7jtq7s45ES+O004BHBGgrk4p5OLFIkdg96tjfjJ8M8JpfjOSkxX7rD7Y n0wCRhUSHJReonWYeBFKJe9gqyTJmUTnYf/XYkUc7WRZRgJi57fFk5tHBd3LPcruJ0 aoq3Q+UPktZMAFcSzblJoepcZ4viowWNlk67jGRlOyNgaRV5hh0YTe/AaMqaEOx7ZD oS2ZJsDtylRh/Hgqg7WhbEpR9dgQ3CujJtMMjDIvDIbLEGfOSzec0KRk2V1Tes7My3 RULm3a4qCX/HpnTu5h+5N3JEjyxDcIVMtvm9JOTE7gVTUADZET31Qq1L8pKaih+vfq RJpj4/kIKWzqg== From: ShadowM00n <[email protected]> To: Mark Hindley <[email protected]>, [email protected] Subject: Re: bug#499: Smokeping service unable to stop/restart Message-ID: <20200728174504.GB4706@ascii> References: <20200727174615.GA4706@ascii> <[email protected]> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <[email protected]> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,T_SPF_PERMERROR autolearn=disabled version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org On 2020 Jul 28 11:04, Mark Hindley wrote: > In Devuan this package is used directly from Debian without recompilation. In > general for packages in that category, the bug reports should go to Debian's BTS > to be fixed there as the bug will also be present in Debian. > > Please could you report to [email protected]? Once you have we can add the > forwarded bug number/URL here. I was going to do so, but I don't think this actually affects Debian. I wanted to be sure before filing a bug with them, so I set up two VMs, one with stock Buster and one with stock Beowulf, both installed from netinstall images and without a DE. I found that despite the init files being identical (confirmed with md5sum) and the versions of both packages being 2.7.3-2 (confirmed with dpkg -s smokeping | grep Version), the behaviour is not -- the service actually stops correctly on Debian and fails to stop on Beowulf. I took a side-by-side screenshot showcasing all of this for reference. I can include it if it's deemed useful, though I'm not sure it is beyond merely confirming what I just wrote. I am now uncertain how accurate my earlier analysis was given that the Debian system worked without my fix. Any suggestions on what else should be looked at?
ShadowM00n <[email protected]>
:[email protected]
.
Full text available.[email protected], [email protected]
:bug#499
; Package smokeping
.
Full text available.Mark Hindley <[email protected]>
to [email protected]
.
Full text available.Received: (at 499) by bugs.devuan.org; 28 Jul 2020 10:10:06 +0000 Return-Path: <[email protected]> Delivered-To: [email protected] Received: from tupac3.dyne.org [195.169.149.119] by doc.devuan.org with IMAP (fetchmail-6.4.0.beta4) for <debbugs@localhost> (single-drop); Tue, 28 Jul 2020 10:10:06 +0000 (UTC) Received: from mx.hindley.org.uk (mohindley.plus.com [81.174.245.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by vm6.ganeti.dyne.org (Postfix) with ESMTPS id 8F775F60ACD for <[email protected]>; Tue, 28 Jul 2020 12:04:07 +0200 (CEST) Received: from apollo.hindleynet ([192.168.1.3] helo=hindley.org.uk) by mx.hindley.org.uk with smtp (Exim 4.84_2) (envelope-from <[email protected]>) id 1k0MSr-0002te-Ac; Tue, 28 Jul 2020 11:04:05 +0100 Received: (nullmailer pid 21383 invoked by uid 1000); Tue, 28 Jul 2020 10:04:04 -0000 Date: Tue, 28 Jul 2020 11:04:04 +0100 From: Mark Hindley <[email protected]> To: ShadowM00n <[email protected]>, [email protected] Subject: Re: bug#499: Smokeping service unable to stop/restart Message-ID: <[email protected]> References: <20200727174615.GA4706@ascii> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200727174615.GA4706@ascii> X-Debbugs-No-Ack: No Thanks User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-0.0 required=5.0 tests=SPF_PASS autolearn=disabled version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org Control: tags -1 debian On Mon, Jul 27, 2020 at 12:46:15PM -0500, ShadowM00n wrote: > Package: smokeping > Version: 2.7.3-2 > > First-time submitter, so please excuse and correct me on any procedural > errors on my part. Thanks for taking the time to report this. > Basically, the current version of smokeping's init service quietly fails > to stop smokeping, and then subsequently fails to restart it because the > process is still running. > > My understanding is that between ASCII and Beowulf the service was > altered in an attempt to improve security. In ASCII, it checked only > that a process with a saved PID existed; in Beowulf it also tries to > compare the invocation string to the program string in the process list. Your analysis seems resonable. In Devuan this package is used directly from Debian without recompilation. In general for packages in that category, the bug reports should go to Debian's BTS to be fixed there as the bug will also be present in Debian. Please could you report to [email protected]? Once you have we can add the forwarded bug number/URL here. Thanks. Mark
[email protected], [email protected]
:bug#499
; Package smokeping
.
Full text available.Received: (at submit) by bugs.devuan.org; 27 Jul 2020 17:50:18 +0000 Return-Path: <[email protected]> Delivered-To: [email protected] Received: from tupac3.dyne.org [195.169.149.119] by doc.devuan.org with IMAP (fetchmail-6.4.0.beta4) for <debbugs@localhost> (single-drop); Mon, 27 Jul 2020 17:50:18 +0000 (UTC) Received: from mail.cock.li (mail.cock.li [37.120.193.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by vm6.ganeti.dyne.org (Postfix) with ESMTPS id 5FA7EF608B8 for <[email protected]>; Mon, 27 Jul 2020 19:46:20 +0200 (CEST) Authentication-Results: vm6.ganeti.dyne.org; dkim=pass (2048-bit key; unprotected) header.d=airmail.cc [email protected] header.b="KIx6btfe"; dkim-atps=neutral Date: Mon, 27 Jul 2020 12:46:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=airmail.cc; s=mail; t=1595871979; bh=/l9h17mopLlsaou9ThJoHJf7d1uMRncnU/SqL+KEzck=; h=Date:From:To:Subject:From; b=KIx6btfe+Rj+VSNJWdgRyazoKyLMcyjYqhGHK96d1CF7pXHfLzlgzxh1PK0i6of2S 2AyeXizettEDAJ5jrEJRF1yxatW+eVQSLX9QqGm48HXGfmX9al6nyWDDG3iAaXR0XU WE2Ypbsf7wElUeaFBcUtalZDsvdXP4XmBP0U9UR1eEf7hdUb0HrfG4ouasIfhvH9eK haS/ps5cWEHtAbFMTGdCUEAY71f6S7w6MvL7Vy5nHKPAVJ9iTR09eE1NPcnCiN9tD/ cHyjE4zxhGO4Vq16yA4Q1PdqqHbO8wdj3A2ecSwuXMw31CzbAut9D12+RzU9N0qj4/ qmMRey2z0QXXg== From: ShadowM00n <[email protected]> To: [email protected] Subject: Smokeping service unable to stop/restart Message-ID: <20200727174615.GA4706@ascii> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,T_SPF_PERMERROR autolearn=disabled version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org Package: smokeping Version: 2.7.3-2 First-time submitter, so please excuse and correct me on any procedural errors on my part. Basically, the current version of smokeping's init service quietly fails to stop smokeping, and then subsequently fails to restart it because the process is still running. My understanding is that between ASCII and Beowulf the service was altered in an attempt to improve security. In ASCII, it checked only that a process with a saved PID existed; in Beowulf it also tries to compare the invocation string to the program string in the process list. While this seems a reasonable idea for most daemons, smokeping seems to be a bit of an exception -- it runs under an interpreter (perl), and as such the stored PID refers to the perl process launching it; naturally, the process string differs from the invocation, being e.g. "/usr/bin/perl /usr/sbin/smokeping --config=/etc/smokeping/config" while being launched as "/usr/sbin/smokeping --config=/etc/smokeping/config". Given this complication, my current personal setup, and my suggestion, is to instead check the owner of the process against the $DAEMON_USER when stopping, as this is configured to be a package-specific user called "smokeping": < start-stop-daemon --oknodo --stop --retry 3 --quiet --pidfile $PIDFILE --exec $DAEMON --signal 15 > start-stop-daemon --oknodo --stop --retry 3 --quiet --pidfile $PIDFILE --user $DAEMON_USER --signal 15 This seems to work well for me, though I would certainly not be opposed to any other working method if this is less than ideal for some reason.
ShadowM00n <[email protected]>
:[email protected]
.
Full text available.[email protected], [email protected]
:bug#499
; Package smokeping
.
Full text available.Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.
Devuan Bugs Owner <[email protected]>.
Last modified:
Sat, 18 Jan 2025 04:39:02 UTC