GNU bug report logs

#55450 bitlbee running as root

PackageSource(s)Maintainer(s)
guix PTS Buildd Popcon
Full log

Message #12 received at 55450-done@debbugs.gnu.org (full text, mbox, reply):

Received: (at 55450-done) by debbugs.gnu.org; 16 May 2022 13:53:59 +0000
From debbugs-submit-bounces@debbugs.gnu.org Mon May 16 09:53:59 2022
Received: from localhost ([127.0.0.1]:52204 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
	id 1nqbAc-00007E-RF
	for submit@debbugs.gnu.org; Mon, 16 May 2022 09:53:59 -0400
Received: from eggs.gnu.org ([209.51.188.92]:44120)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@gnu.org>) id 1nqbAV-00006p-7Z
 for 55450-done@debbugs.gnu.org; Mon, 16 May 2022 09:53:57 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:42210)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@gnu.org>) id 1nqbAP-0007jl-9q
 for 55450-done@debbugs.gnu.org; Mon, 16 May 2022 09:53:45 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To:
 From; bh=HAyN6xf63uHk8gOYELm9Err38uw0F266FhUnLXRqPYM=; b=qAdeSCgNQkDk+gFYnq8J
 i/NNHcRryQGL25rkL0KZo3AI9u1vozZPMmevPuf5vpEh0HzzhlQe76Hv8iJhlAI9x6KiJD2Woae+G
 enjB+SALtChoPKuHkkh7MfvFsv9QzQWGosjHi08M5C6pAEJr0epoCiDxG8+GtqN3icKOMUfzZAy1G
 i8Ntcn/ocya5LX3UHqiU0hKaD2ufrtddLt2QwDb74ZscnU8fPs1xzaOaG0BvDXdTlx8jcIYkLaGW8
 4s+dOYYq6YE56XrHsr9mjYz2nD3pnxPbAph+t05nyZXMkK4Ilv/PwgiXL/9yeBUqdRI5vqeKwvWWV
 y9nDTN1si4aSTA==;
Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:62539
 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@gnu.org>) id 1nqbAN-00027C-GY
 for 55450-done@debbugs.gnu.org; Mon, 16 May 2022 09:53:44 -0400
From: Ludovic Courtès <ludo@gnu.org>
To: 55450-done@debbugs.gnu.org
Subject: Re: bug#55450: bitlbee running as root
References: <874k1pa9lh.fsf@inria.fr>
Date: Mon, 16 May 2022 15:53:42 +0200
In-Reply-To: <874k1pa9lh.fsf@inria.fr> ("Ludovic Courtès"'s message of "Mon, 16 May 2022 15:30:18 +0200")
Message-ID: <87lev18ty1.fsf@gnu.org>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 55450-done
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request@debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit@debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request@debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request@debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
X-Spam-Score: -3.3 (---)
Ludovic Courtès <ludo@gnu.org> skribis:

> Starting from commit 211fe3f66e6dfdaa64974931c458ab1d92afc182, if PID 1
> is Shepherd 0.9.0, the bitlbee daemon was started on-demand as an inetd
> service.
>
> However, due to a logic bug, it was running as root (in a separate user
> namespace though) instead of running as “bitlbee”.  The bug is that we
> were spawning “bitlbee -u bitlbee” as root; normally, bitlbee would
> setuid to the “bitlbee” user early on, but since it was in a separate
> namespace and with a minimal /etc/passwd, it couldn’t do anything and
> kept the current UID (that UID was 1000 inside the user namespace, but 0
> outside).

Fixed by commit ecfcdff23a5ce390a7edc019c1f1216c4843dc04: the bitlbee
process is now started as “bitlbee” right from the start.

I reviewed other users of ‘least-authority-wrapper’ that were recently
introduced and didn’t see other mistakes of that kind.  You’re welcome
to take another look to make sure!

Ludo’.




Send a report that this bug log contains spam.


debbugs.gnu.org maintainers <help-debbugs@gnu.org>. Last modified: Sun Dec 22 01:08:12 2024; Machine Name: wallace-server

GNU bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.