From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id cLwKGSbzZ2BzhAAAgWs5BA (envelope-from ) for ; Sat, 03 Apr 2021 06:46:30 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id QNXDEibzZ2CvHQAAbx9fmQ (envelope-from ) for ; Sat, 03 Apr 2021 04:46:30 +0000 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 AA2051D4E3 for ; Sat, 3 Apr 2021 06:46:29 +0200 (CEST) Received: from localhost ([::1]:43776 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lSYB2-0004Qf-8c for larch@yhetil.org; Sat, 03 Apr 2021 00:46:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33214) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lSYAc-0004QT-9X for bug-guix@gnu.org; Sat, 03 Apr 2021 00:46:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49788) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lSYAc-0006cm-23 for bug-guix@gnu.org; Sat, 03 Apr 2021 00:46:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lSYAc-0007PH-0i for bug-guix@gnu.org; Sat, 03 Apr 2021 00:46:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#47576: [security] ibus-daemon launches ungrafted subprocesses Resent-From: Mark H Weaver Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 03 Apr 2021 04:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 47576 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 47576@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.161742514727642 (code B ref -1); Sat, 03 Apr 2021 04:46:01 +0000 Received: (at submit) by debbugs.gnu.org; 3 Apr 2021 04:45:47 +0000 Received: from localhost ([127.0.0.1]:33101 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lSYAN-0007BL-0Y for submit@debbugs.gnu.org; Sat, 03 Apr 2021 00:45:47 -0400 Received: from lists.gnu.org ([209.51.188.17]:45388) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lSYAL-0007A4-RD for submit@debbugs.gnu.org; Sat, 03 Apr 2021 00:45:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33194) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lSYAL-0004Pe-Jx for bug-guix@gnu.org; Sat, 03 Apr 2021 00:45:45 -0400 Received: from world.peace.net ([64.112.178.59]:47688) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lSYAJ-0006Qb-Di for bug-guix@gnu.org; Sat, 03 Apr 2021 00:45:45 -0400 Received: from mhw by world.peace.net with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lSYAG-0002ib-Vt; Sat, 03 Apr 2021 00:45:41 -0400 From: Mark H Weaver Date: Sat, 03 Apr 2021 00:44:02 -0400 Message-ID: <87pmzcdljm.fsf@netris.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=64.112.178.59; envelope-from=mhw@netris.org; helo=world.peace.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1617425189; 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; bh=eQBcoihWp81OogS2NauvmybUFovhQhOnZYpVx0CiNzM=; b=S42m9q+ICybByosHa4oi+gBGPg3jgej2jIR2xeAyxUfN5vVY6WA3F7IScO/czrDi1c3vwK ggp5XxnTZwx2GjItYOUJde6ETk41u1Hf138tx38C7xCpHGP7b+CokATIsrBff5eAnvZcOv PHsxGBe9c9zgGx/B6u1CJ/aEGwla8LLiOqkWYc05bmsOWEJSMz94Yn8P2XnFfJF29Ch7Rd pCZieZe2a8Gv9hf2xJ58mD1FQzOsgOcPBp9c2j1xu03OP5ULms+cYRlte1VRVPTFLNhJ0N Tc2mXtTMUzRsbDLgmkxOpi063R0/NLtq0Y6ZXWS+3trnT7fMz/qX4wjo9pXh0Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1617425189; a=rsa-sha256; cv=none; b=duWfLivwNSACV1PymEYQoo5tvVe89jI8lM0hCCqQ7yaIOWPauuYZSHfBHSo66Ey3iZV+VB /nTZ32EUsenobXbZe4vHBciqe4RgZLrYrvK/EhRuLl3tw9UL1a5s8GScIoqLY/J1Se+zdw K9KMMv5/HSoSc+rkNHUP5kmYRjCiRde0sJG6eSpxR44HMSNgkQ8srDyS+7jitvCmaoKJIX 9BTMgvQjL2lfyduf7JqM1746KXvVe47v6IG8pIHRghSar15VP5qYeM147Avmd3an+oz3b6 sxl97CgSJMgjsHMKlB/xpcq3JysBy1E5KK7scjaf9rhzdRJEszKr+o3OLQ1pVw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -2.43 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: AA2051D4E3 X-Spam-Score: -2.43 X-Migadu-Scanner: scn0.migadu.com X-TUID: OfuZDwLqiIUr Several processes on my Guix system load shared libraries from the *ungrafted* glib: specifically, all of the subprocesses of 'ibus-daemon'. The 'ibus-daemon' process itself seems to be properly grafted. However, its subprocesses are from an old, ungrafted build of 'ibus': --8<---------------cut here---------------start------------->8--- mhw@jojen ~$ pstree -up 796 .ibus-daemon-re(796,mhw)=E2=94=80=E2=94=AC=E2=94=80.ibus-dconf-rea(803)=E2= =94=80=E2=94=AC=E2=94=80{.ibus-dconf-rea}(806) =E2=94=82 =E2=94=94=E2=94=80{= .ibus-dconf-rea}(807) =E2=94=9C=E2=94=80.ibus-engine-si(892)=E2=94=80=E2= =94=AC=E2=94=80{.ibus-engine-si}(917) =E2=94=82 =E2=94=94=E2=94=80{= .ibus-engine-si}(918) =E2=94=9C=E2=94=80.ibus-extension(804)=E2=94=80=E2= =94=AC=E2=94=80{.ibus-extension}(810) =E2=94=82 =E2=94=9C=E2=94=80{= .ibus-extension}(811) =E2=94=82 =E2=94=94=E2=94=80{= .ibus-extension}(819) =E2=94=9C=E2=94=80{.ibus-daemon-re}(797) =E2=94=94=E2=94=80{.ibus-daemon-re}(798) mhw@jojen ~$ ps -fq 796,803,892,804 UID PID PPID C STIME TTY TIME CMD mhw 796 698 0 00:10 tty8 00:00:00 /gnu/store/radg6xacqvw60d76= k97y0ydccjm7iq7a-ibus-1.5.22/bin/ibus-daemon --panel disable -r --xim mhw 803 796 0 00:10 tty8 00:00:00 /gnu/store/a4r6q1fbfqapy5hr= rxap1yg96rjgln6q-ibus-1.5.22/libexec/ibus-dconf mhw 892 796 0 00:10 tty8 00:00:00 /gnu/store/a4r6q1fbfqapy5hr= rxap1yg96rjgln6q-ibus-1.5.22/libexec/ibus-engine-simple mhw 804 796 2 00:10 tty8 00:00:01 /gnu/store/a4r6q1fbfqapy5hr= rxap1yg96rjgln6q-ibus-1.5.22/libexec/ibus-extension-gtk3 --8<---------------cut here---------------end--------------->8--- (The same issue occurs for the 'ibus-daemon' that's owned by 'gdm'). /gnu/store/radg=E2=80=A6-ibus-1.5.22 seems to be the properly grafted 'ibus= ', replacing the ungrafted /gnu/store/wnqv=E2=80=A6-ibus-1.5.22 which I last b= uilt on February 2nd: (I don't use substitutes) --8<---------------cut here---------------start------------->8--- mhw@jojen ~$ bzcat $(guix build --log-file /gnu/store/radg6xacqvw60d76k97y0= ydccjm7iq7a-ibus-1.5.22) grafting '/gnu/store/wnqv8rj3ngjivl6334d1h8irszf39dm9-ibus-1.5.22' -> '/gnu= /store/radg6xacqvw60d76k97y0ydccjm7iq7a-ibus-1.5.22'... mhw@jojen ~$ ls -l $(guix build --log-file /gnu/store/wnqv8rj3ngjivl6334d1h= 8irszf39dm9-ibus-1.5.22) -rw-r--r-- 1 root root 24923 Feb 2 10:35 /var/log/guix/drvs/hx/qpdblmghj7p= vg0ni2l38p0a1s4igbd-ibus-1.5.22.drv.bz2 --8<---------------cut here---------------end--------------->8--- The reference scanner does not see any references to any other 'ibus', from either my system, my user profile, or the grafted 'ibus': --8<---------------cut here---------------start------------->8--- mhw@jojen ~$ guix gc -R $(readlink -f /run/current-system) | grep -e -ibus- /gnu/store/radg6xacqvw60d76k97y0ydccjm7iq7a-ibus-1.5.22 mhw@jojen ~$ guix gc -R $(readlink -f ~/.guix-profile) | grep -e -ibus- mhw@jojen ~$ guix gc -R /gnu/store/radg6xacqvw60d76k97y0ydccjm7iq7a-ibus-1.= 5.22 | grep -e -ibus- /gnu/store/radg6xacqvw60d76k97y0ydccjm7iq7a-ibus-1.5.22 --8<---------------cut here---------------end--------------->8--- Interestingly, the subprocesses are *not* from the ungrafted 'ibus' that I last built on February 2nd. Instead, they are from a much older ungrafted 'ibus', which I last built on December 20th of last year: --8<---------------cut here---------------start------------->8--- mhw@jojen ~$ ls -l $(guix build --log-file /gnu/store/a4r6q1fbfqapy5hrrxap1= yg96rjgln6q-ibus-1.5.22) -rw-r--r-- 1 root root 24981 Dec 20 20:33 /var/log/guix/drvs/sn/k6581cpk6n8= q3dvsarqmqimhx0n2i2-ibus-1.5.22.drv.bz2 --8<---------------cut here---------------end--------------->8--- I'm at a bit of a loss of where this much older, ungrafted 'ibus' is coming from. Running "guix build ibus", with and without grafts, give the other two 'ibus' store items: --8<---------------cut here---------------start------------->8--- mhw@jojen ~$ guix build ibus --no-grafts /gnu/store/wnqv8rj3ngjivl6334d1h8irszf39dm9-ibus-1.5.22 mhw@jojen ~$ guix build ibus /gnu/store/radg6xacqvw60d76k97y0ydccjm7iq7a-ibus-1.5.22 --8<---------------cut here---------------end--------------->8--- Is there another variant of the 'ibus' package hiding somewhere? Where is "/gnu/store/a4r6=E2=80=A6-ibus-1.5.22" coming from? I don't know that I'll have the energy to investigate this further anytime soon, so I'm hoping that someone else will pick this up. * * * FYI, I discovered this while doing sanity checks on my new preliminary grafting implementation (which supports rewriting UTF-16/32 store references). Looking for references to the old 'glib' was the *first* thing I checked. I haven't yet checked anything else, so I don't know how widespread this problem is. Mark