From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Subject: bug#37967: guix environment -CN: Operation not permitted mounting host's /var/run/nscd Date: Fri, 01 Nov 2019 15:26:27 +0100 Message-ID: <87v9s3brl8.fsf@gnu.org> References: <20191028172741.GJ17570@sax.terramar.selidor.net> <87v9s7dwoe.fsf@gnu.org> <20191029224714.GA17621@sax.terramar.selidor.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:37640) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQXtH-0000Pr-8V for bug-guix@gnu.org; Fri, 01 Nov 2019 10:27:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iQXtG-0005GO-9Q for bug-guix@gnu.org; Fri, 01 Nov 2019 10:27:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:47933) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iQXtG-0005G1-6F for bug-guix@gnu.org; Fri, 01 Nov 2019 10:27:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iQXtG-0004RV-04 for bug-guix@gnu.org; Fri, 01 Nov 2019 10:27:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <20191029224714.GA17621@sax.terramar.selidor.net> (Ivan Vilata i. Balaguer's message of "Tue, 29 Oct 2019 18:47:14 -0400") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Ivan Vilata i Balaguer Cc: 37967@debbugs.gnu.org Ivan Vilata i Balaguer skribis: > Salut Ludovic=C2=A0! Hola! :-) > Ludovic Court=C3=A8s (2019-10-29 23:16:49 +0100) wrote: > >> Bon dia Ivan, >>=20 >> Ivan Vilata i Balaguer skribis: >>=20 >> > Hi! While using Guix commit `c9fc03a3` on Debian unstable, whenever I= run >> > `guix environment -CN` (either as a normal user or as root) I get an e= rror >> > like this: >> > >> > guix environment: error: mount: mount "/var/run/nscd" on "/tmp/gui= x-directory.6kBgXe//var/run/nscd": Operation not permitted >> > >> > nscd is installed and working in my host machine. >>=20 >> What does =E2=80=98uname -rs=E2=80=99 return? > > $ uname -rs > Linux 5.2.0-3-amd64 > >> What about =E2=80=98ls -ld /var/run/nscd=E2=80=99? > > $ ls -ld /var/run/nscd > drwxr-xr-x 2 root root 60 Oct 29 15:58 /var/run/nscd Hmm, what does this command return: mkdir /tmp/tt unshare -mUr mount --bind /var/run/nscd /tmp/tt ? What about a read-only bind mount like this: unshare -mUr mount --bind -o ro /var/run/nscd /tmp/tt ? What if you try bind-mounting a directory owned by your user? mkdir /tmp/mine unshare -mUr mount --bind /tmp/mine /tmp/tt ? Thanks in advance, Ludo=E2=80=99.