From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 6G5aMJwwUGPyygAAbAwnHQ (envelope-from ) for ; Wed, 19 Oct 2022 19:15:08 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 4B1FMJwwUGOSxQAAauVa8A (envelope-from ) for ; Wed, 19 Oct 2022 19:15:08 +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 D678E1623F for ; Wed, 19 Oct 2022 19:15:07 +0200 (CEST) Received: from localhost ([::1]:47788 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1olCeo-0004x8-W2 for larch@yhetil.org; Wed, 19 Oct 2022 13:15:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37204) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1olCek-0004tx-Nw for bug-guix@gnu.org; Wed, 19 Oct 2022 13:15:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:60872) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1olCek-0005QO-Dy for bug-guix@gnu.org; Wed, 19 Oct 2022 13:15:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1olCek-0005cj-40 for bug-guix@gnu.org; Wed, 19 Oct 2022 13:15:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#58640: Garbage collector ('gc') deletes valid user roots when $HOME is inaccessible Resent-From: Felix Lechner Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 19 Oct 2022 17:15:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 58640 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 58640@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166619969921592 (code B ref -1); Wed, 19 Oct 2022 17:15:01 +0000 Received: (at submit) by debbugs.gnu.org; 19 Oct 2022 17:14:59 +0000 Received: from localhost ([127.0.0.1]:59950 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1olCeh-0005cB-Fa for submit@debbugs.gnu.org; Wed, 19 Oct 2022 13:14:59 -0400 Received: from lists.gnu.org ([209.51.188.17]:39924) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1olCed-0005c2-W7 for submit@debbugs.gnu.org; Wed, 19 Oct 2022 13:14:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44926) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1olCec-0004i7-Gr for bug-guix@gnu.org; Wed, 19 Oct 2022 13:14:55 -0400 Received: from linode.us-core.com ([2600:3c01::f03c:93ff:fe26:6229]:37654) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1olCeX-0005O7-E1 for bug-guix@gnu.org; Wed, 19 Oct 2022 13:14:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=2017; bh=rTHJs8beR8JvC44 LK7u+CHaHCNDDszd4bwRPam29fvk=; h=to:subject:date:from; d=lease-up.com; b=oHid/GrCsK/d46mofX5SrER+2wlBj47leqcXm8gKA8AHKd9MVHL7F8Rl2MnSGBWCw5xf ca8xZKiuPqKdGFG1/cVGt1jjQ3UR92aaAxKMOKzqYIkDz3FfQdlKTb0jNROKm+L7Rjg2fQ iFQ/WW9zL8IvnXdqkIQ7ub+pgjGen9hp0= Received: by linode.us-core.com (OpenSMTPD) with ESMTPSA id 5089bf63 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO) for ; Wed, 19 Oct 2022 17:14:46 +0000 (UTC) Received: by mail-lj1-f177.google.com with SMTP id i21so20122284ljh.12 for ; Wed, 19 Oct 2022 10:14:44 -0700 (PDT) X-Gm-Message-State: ACrzQf3+nHMjt2Ewrsw2EeeB8ZyjDvSgNb9HE6ICX+nKxLDF/F78llj6 CwkNW4ABs4dIhfKdqXrNx2kURjfawwSzrXbta2A= X-Google-Smtp-Source: AMsMyM7W7XcRVsK6PNV+GLElShgaPtixv1LcaMwwALUfnE/5uAHFJuUAoREP7c6gmgzJbQYnDULaYmYR1f2HzrjNqEw= X-Received: by 2002:a2e:b8ca:0:b0:26f:c7a1:577a with SMTP id s10-20020a2eb8ca000000b0026fc7a1577amr3566231ljp.77.1666199681596; Wed, 19 Oct 2022 10:14:41 -0700 (PDT) MIME-Version: 1.0 Date: Wed, 19 Oct 2022 10:14:05 -0700 X-Gmail-Original-Message-ID: Message-ID: Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2600:3c01::f03c:93ff:fe26:6229; envelope-from=felix.lechner@lease-up.com; helo=linode.us-core.com X-Spam_score_int: 16 X-Spam_score: 1.6 X-Spam_bar: + X-Spam_report: (1.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_SBL_CSS=3.335, RCVD_IN_XBL=0.375, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no 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" Reply-to: Felix Lechner From: Felix Lechner via Bug reports for GNU Guix X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1666199708; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=+2JwTNl1JI6KLD+HPk3S6h+DkHycWiZPFVqKV8fmAKc=; b=Eo4FOySpa+dH2fMoL2Bz8kNY1G+wdw83kE5078H9lYr4edIw2Vf+DqQ0tanvK73MRLTZ0s 1zEHBz/rsyvARzJT9WUkLFdiCqngZAjIeoT0gxHOAOpSM0PXWWpoEJpaBxpyx9VIFn8wLu L4deVR8n76lrcOpLLXR6E9koDhTwToWD7M/qfSrnfd/LhFpBnh3bV73LX2kLAxgP5DRvT/ 0V1ZG7T8kVbn+Nou90fNfyxbyqNt4UHdgJWjz8thasOM7Yk0cIyjZDP6m97b3uZvYsl0EK EdVYpwOqf/vBTaGzRXkqort4KlGSM43vZtY0iKsG/yXQCiBYQ6rB9B5gQDNQww== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666199708; a=rsa-sha256; cv=none; b=ESmgsn31vf4ekG4BnYDRuEkfjKJ7bvUgBpw3j18RpCaxv+ekyjRkHpzWm8ZqNWTtlhfFkk geG079yornpUG/n0TYHOpNEhOvjGj4tYJm7ZQ/dxddxMjV+lGlB1mFeGL4ioK/GwY1LxNV Ofuebjw02Fx79qpdR2vAIm+E9yMe9E/77USwikBR4yR3V6T70Tfj4Zkv91uUsw7Rybn0q9 Z/Jhcrsa8LJbsJn2oqAxmw78y8wjGnEI/P8qDIyoRx7pwiVagpb0w3o/P214ShUr4dfpM1 kWiUohVpzZW+19MhAJ9uTBU+d5DkYOXdHTH0bDfUCF1HrCorgH+x94TmI4O/tg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lease-up.com header.s=2017 header.b="oHid/GrC"; 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: 3.67 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lease-up.com header.s=2017 header.b="oHid/GrC"; 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: D678E1623F X-Spam-Score: 3.67 X-Migadu-Scanner: scn1.migadu.com X-TUID: vDwha8XZm1WW Hi, The Guix garbage collector ('gc') deletes valid user roots when those links are not resolvable via the user's home folder in places such as ~/.cache/guix/profiles/ which potentially leaves the user without a working profile. Home folders are not always accessible to the root user, and may therefore also not be accessible to the Guix daemon. In some networked setups, for example, home folders can be automounted. In my particular case, the home folder was inaccessible due to my encrypted filesystem's security policies, which are enforced by FUSE when using gocryptfs. [1] The FUSE feature can be turned off [2] and Gocryptfs can 'allow_other' [3] but that is a large concession and may not solve the daemon's alleged (mis-)behavior in the general case. Thank you for reading! Kind regards Felix Lechner [1] https://nuetzlich.net/gocryptfs/ [2] https://unix.stackexchange.com/a/17423 [3] https://manpages.debian.org/bullseye/gocryptfs/gocryptfs.1.en.html