From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: gnu-system-demo feedback Date: Wed, 16 Oct 2013 15:12:08 +0200 Message-ID: <87k3hdgy1j.fsf@gnu.org> References: <87ppranpd1.fsf@walter-nb.nord-com.it> <874n8k3trv.fsf@gnu.org> <87iowzn7su.fsf@walter-nb.nord-com.it> <87k3hfipf8.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45455) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VWQyY-00029u-8O for guix-devel@gnu.org; Wed, 16 Oct 2013 09:17:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VWQyS-0007E5-Ey for guix-devel@gnu.org; Wed, 16 Oct 2013 09:17:22 -0400 Received: from hera.aquilenet.fr ([141.255.128.1]:42845) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VWQyS-0007Dv-8b for guix-devel@gnu.org; Wed, 16 Oct 2013 09:17:16 -0400 In-Reply-To: <87k3hfipf8.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Mon, 14 Oct 2013 22:10:51 +0200") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Walter Franzini Cc: guix-devel@gnu.org ludo@gnu.org (Ludovic Court=C3=A8s) skribis: > Walter Franzini skribis: > >> On Mon, Oct 14 2013, Ludovic Court=C3=A8s wrote: >> >> [...] >> >>>> 3. running guix gc as root empties /etc (broken symlinks) >>>> 4. running guix gc as guest (!) empties /etc (broken symlinks) >>> >>> A bug: I forgot to register them as GC roots (see gnu/system/vm.scm.) >> >> Ok for the bug about GC roots, but I expected a 'guest' not to be able >> to alter the system state (/etc). > > Unprivileged users can access the store via the daemon. Notably, they > can run the GC. > > The GC only ever deletes files that are no longer referenced. These > /etc files were clearly still referenced, but the GC just didn=E2=80=99t = know > about it. I probably wasn=E2=80=99t clear. The GC only takes care of files under /nix/store, and it cannot remove anything outside of that directory. The files in /etc are symlinks to files under /nix/store, and it=E2=80=99s = those files that were removed. The symlinks were still there, just dangling. Ludo=E2=80=99.