From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id oLlkNyBSgmIJBAEAbAwnHQ (envelope-from ) for ; Mon, 16 May 2022 15:31:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id CHJ7NyBSgmKnuwAA9RJhRA (envelope-from ) for ; Mon, 16 May 2022 15:31:12 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 8B4142176D for ; Mon, 16 May 2022 15:31:12 +0200 (CEST) Received: from localhost ([::1]:52004 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nqaoZ-0000CR-0j for larch@yhetil.org; Mon, 16 May 2022 09:31:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59128) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nqaoQ-0000BT-VK for bug-guix@gnu.org; Mon, 16 May 2022 09:31:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58228) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nqaoQ-0003cQ-5b for bug-guix@gnu.org; Mon, 16 May 2022 09:31:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nqaoP-0005hD-U6 for bug-guix@gnu.org; Mon, 16 May 2022 09:31:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#55450: bitlbee running as root Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 16 May 2022 13:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 55450 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 55450@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.165270783421858 (code B ref -1); Mon, 16 May 2022 13:31:01 +0000 Received: (at submit) by debbugs.gnu.org; 16 May 2022 13:30:34 +0000 Received: from localhost ([127.0.0.1]:52125 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) 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 ) 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 ) 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 ) 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 ) id 1nqank-0001Lr-SX for bug-guix@gnu.org; Mon, 16 May 2022 09:30:26 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 27 =?UTF-8?Q?Flor=C3=A9al?= an 230 de la =?UTF-8?Q?R=C3=A9volution?= 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1652707872; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=ZDTjyiOrtZ/T4dn8r+9gwlVZFCsZ3+7gbVmMPlZ9cbU=; b=Pi3ldMDuMrHEQv9A6goAzfrkBfSe9aepqk2QaWF9u+aCZY5U2+lQjZaR1JHbGz7G5uKhTD WIhDvsIhB98eelxEBHXk/eMfq5/P9nHKNu6CGe+GpcbXmnBts1gdrKigVQm79W9aERRzU2 OOI6wgMkKx/bqoFj8sQdyrQMKX9kAO/xX4mm659ZBXiUb2Ehppp5+hll0T37CsXIV+hfGC cA2tSJJqJnDZikBopLUgusSCt/MvJMIxr0hWVBjYdBXpeKnmfQeL1jgZTx+m1EO3izjEII qw6fOr6eSObJII0gbGiLYSEBtva+XtSZnHBjnUpDAFSl0zM4aUPS8tIxOc6q8A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1652707872; a=rsa-sha256; cv=none; b=lXdrDRd2PA2gtMzIxzfNz4/YqpvxpmAvIZ4QeP8czBtzwG89oMV3dPwc3kbOYPolIX5955 1IcPjjlFnBguAnB4Dmr24IEpHlvnHnIVx5Hn7MygmUFXjj7vDfGYKEM4QH7N2gZZ2VkS+G OnMT4XBXgfxaXRdn2DcBuUmtqlLY/C0JexfkcWYwG5qHqZE6OfsmZ//CGhzBpDiHgkbvaZ XiJRAmNTZuCqxMzdjZcch+1ja65nlkGg4HXiDPuFF97Iqh/ut7c883eXtQ34UdJl9r/Ez9 NtnsgFjhq+A+wKhqcTRV51RNRBc3zj9QxApLFVimEY4DW2RA/ljGihX0hPM6bw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=caX535XQ; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -5.33 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=caX535XQ; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 8B4142176D X-Spam-Score: -5.33 X-Migadu-Scanner: scn0.migadu.com X-TUID: ZylZZnbtFAOW Starting from commit 211fe3f66e6dfdaa64974931c458ab1d92afc182, if PID=C2=A01 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 =E2=80=9Cbitlbee=E2=80=9D. The bug= is that we were spawning =E2=80=9Cbitlbee -u bitlbee=E2=80=9D as root; normally, bitlb= ee would setuid to the =E2=80=9Cbitlbee=E2=80=9D user early on, but since it was in = a separate namespace and with a minimal /etc/passwd, it couldn=E2=80=99t do anything a= nd kept the current UID (that UID was 1000 inside the user namespace, but 0 outside). Fix coming soon=E2=80=A6 Ludo=E2=80=99.