GNU bug report logs

#55450 bitlbee running as root

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

Message #5 received at submit@debbugs.gnu.org (full text, mbox, reply):

Received: (at submit) by debbugs.gnu.org; 16 May 2022 13:30:34 +0000
From debbugs-submit-bounces@debbugs.gnu.org Mon May 16 09:30:34 2022
Received: from localhost ([127.0.0.1]:52125 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
	id 1nqany-0005gT-E4
	for submit@debbugs.gnu.org; Mon, 16 May 2022 09:30:34 -0400
Received: from lists.gnu.org ([209.51.188.17]:32792)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@gnu.org>) id 1nqanw-0005gI-3M
 for submit@debbugs.gnu.org; Mon, 16 May 2022 09:30:32 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:58938)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@gnu.org>) id 1nqant-0008Ui-TX
 for bug-guix@gnu.org; Mon, 16 May 2022 09:30:30 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:41946)
 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 1nqans-0003UF-JS
 for bug-guix@gnu.org; Mon, 16 May 2022 09:30:28 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to:
 references; bh=ZDTjyiOrtZ/T4dn8r+9gwlVZFCsZ3+7gbVmMPlZ9cbU=; b=caX535XQaV9Z2c
 3uKH5drhjby7WbGJYUBMBp2C5yHc/VwsWvYl/BX7Z9cU5CqMawvLO4o3HTtGPGxoxjmnVE2Njj3gE
 ACUGMTK/chx3gxJGqArLDbiHazrZeSiUkUkbFgA6vj5DjTnZMqael5pdbNQpnc5r7Po60o2jnmeRI
 rxHPOagLImYM6MDY6jEuu/POfH3bTDnYxFO5TFjJGigyJMPT8eUbuGE2yBO66Ss+A7D2EWYp5N6Y2
 y21HAIuy4/qX4nBlt+HxhQzSSSuC6Oz2QCfGTfiJXhfg7c/CdsuS5Nt3jAXGNO2DTaZiZHLjEe8nt
 XGihRQp0CnxPKdA2oBCg==;
Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=49348 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 1nqank-0001Lr-SX
 for bug-guix@gnu.org; Mon, 16 May 2022 09:30:26 -0400
From: Ludovic Courtès <ludo@gnu.org>
To: bug-guix@gnu.org
Subject: bitlbee running as root
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 27 Floréal an 230 de la Révolution
X-PGP-Key-ID: 0x090B11993D9AEBB5
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A EBB5
X-OS: x86_64-pc-linux-gnu
Date: Mon, 16 May 2022 15:30:18 +0200
Message-ID: <874k1pa9lh.fsf@inria.fr>
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: submit
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 (---)
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).

Fix coming soon…

Ludo’.




Send a report that this bug log contains spam.


debbugs.gnu.org maintainers <help-debbugs@gnu.org>. Last modified: Tue Mar 11 07:02:41 2025; 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.