From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id SJ5IEj6Lzl/qYwAA0tVLHw (envelope-from ) for ; Mon, 07 Dec 2020 20:06:22 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id IOQQDj6Lzl9UbAAAB5/wlQ (envelope-from ) for ; Mon, 07 Dec 2020 20:06:22 +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 D24F1940418 for ; Mon, 7 Dec 2020 20:06:21 +0000 (UTC) Received: from localhost ([::1]:55572 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kmMm4-0003L3-Os for larch@yhetil.org; Mon, 07 Dec 2020 15:06:20 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:59102) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kmMlg-0003KY-Vp for guix-devel@gnu.org; Mon, 07 Dec 2020 15:05:56 -0500 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]:55972) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kmMlf-0007G2-BD; Mon, 07 Dec 2020 15:05:56 -0500 Received: by mail-wm1-x334.google.com with SMTP id x22so343675wmc.5; Mon, 07 Dec 2020 12:05:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=hYItKmjiBnND8+ZD3FM6Y/qtvTb8PaozbTg0ZckF4fA=; b=UQj81TFZqGMI95dRNAZwdEi6huEtHCbSVOK5eCmc147woksEI0j1jSHXlcQNKgNmbj G0KgCe5gAVM2eGf1vBD9ZXr+upK94ulD0At4meCtSAYrGoRCd6NperEJu/RNPq4/NDYh m9qJ7y4G10xoiYmUBm8ED4AuH5tV1ZCIIWa59Dp6W5UP6g86DONRDmC8uYyn24v0pBaH RL1dWTixPABs5d0bAkneoQPHEO2+G/jKRpo1pwGeU/toqGGhXQ2HEXgLhew6WMbQwDzQ vcy7SndMUTOGf0aSUGqbODZX+ZaQRxKQPpl115m3SKkS5WS5rQ5ckPWm5fav2CbVNC3+ poIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=hYItKmjiBnND8+ZD3FM6Y/qtvTb8PaozbTg0ZckF4fA=; b=hMgl0wiI/wceSWUKkRHIybrnda279VWQc4fP26YJ9cycGvFQcu85wLZuIzJoOjtnbR MZyqujyKGqt0QfQeCytEfSdZ5Wb7GImKpqX5Vi+82seYx8WxRcRKUhGzPYYCx/BqY430 U77j45RnLMAFEvxu5utL68QAe0ky2f1yLyp02tfzDeSrw8waUIc1vKIP6+f/G1HK4cHa PCngXcK/UgJ02F2wmzMqeObELGBOVXddNvPiKxYHGnLNHzw0cYtaqwdNWogOmQzr9KDx 2ICl86BM2dZF+h7oIOeba2enNstbAX5dv2R81aV7y+Aj3Uz4L66bxxBrwmBPBH7Cfpmu Kqcw== X-Gm-Message-State: AOAM533q2vsSglTovv66kH761g8vagTDph3NzokxfeeA6yKI9RMgNQ/d 3R1S5VWsTfcYLUDhtpMyMbI= X-Google-Smtp-Source: ABdhPJwArQXViyejTs6VEvwXkZiEl2SZpwu+wuOqHFwpdGsWVpkTr2gbWcGYBScVoMesm2kcAHX5hQ== X-Received: by 2002:a1c:4604:: with SMTP id t4mr489304wma.17.1607371553085; Mon, 07 Dec 2020 12:05:53 -0800 (PST) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id c1sm386163wml.8.2020.12.07.12.05.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Dec 2020 12:05:52 -0800 (PST) From: zimoun To: Vagrant Cascadian , Ludovic =?utf-8?Q?Court=C3=A8s?= , Marius Bakke Subject: Re: bug#45069: Guix System: unprivileged user cannot create user namespaces? In-Reply-To: <87eek1sdpo.fsf@yucca> References: <20201204185537.qhapfbyaq7cr5lkr@thebird.nl> <4556420c9440a6c34df93213e3934176e214483f.camel@yasuaki.com> <86eek2an53.fsf@gmail.com> <87wnxtx1yx.fsf@ambrevar.xyz> <1f56aef4d7b707826f34413672408e33385bbc6a.camel@tourbillion-technology.com> <87tusxwncj.fsf@ambrevar.xyz> <86ft4h5xjz.fsf@gmail.com> <87eek1sdpo.fsf@yucca> Date: Mon, 07 Dec 2020 21:03:58 +0100 Message-ID: <86360h5qoh.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::334; envelope-from=zimon.toutoune@gmail.com; helo=mail-wm1-x334.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Guix Devel , 45069@debbugs.gnu.org, Paul Garlick , Jesse Dowell Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -0.50 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=UQj81TFZ; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: D24F1940418 X-Spam-Score: -0.50 X-Migadu-Scanner: ns3122888.ip-94-23-21.eu X-TUID: FskXGvV7SxlW Hi Vagrant, Sorry if I am naive, I am trying to understand and it appears that pieces are missing in my bag. :-) On Mon, 07 Dec 2020 at 09:55, Vagrant Cascadian wrote: > The /proc/sys/kernel_unprivileged_userns_clone file is specific to > Debian and Ubuntu packaged linux kernel; it is a patchset not applied > upstream, as far as I am aware. I'm not sure if other distros support > disabling and enabling this feature using this mechanism. Thanks. I still do not understand the message from Guix System: --8<---------------cut here---------------start------------->8--- ~/co/guix (master)$ guix environment -C guix guix environment: error: cannot create container: unprivileged user cannot = create user namespaces guix environment: error: please set /proc/sys/kernel/unprivileged_userns_cl= one to "1" --8<---------------cut here---------------end--------------->8--- (see ) Why does this appear if =C2=ABset /proc/sys/kernel/unprivileged_userns_clon= e to "1"=C2=BB=20 does not make sense on Guix System? Then Tobias answered: (see ) yasu =E5=86=99=E9=81=93=EF=BC=9A > Now, I don't use Debian at all (I use Guix System) and do you=20 > think > this is a Bug in Guix (in that this Debian specific word should=20 > never > even be mentioned in Guix?) It's not Debian-specific. It is a bug in Guix. It should try to create a namespace and properly report an error=20 iff that fails, not prematurely abort after farting about in=20 /proc. A separate unprivileged-user-namespace-supported? is broken by=20 design. Reverting commit 8bc5ca5 works around this but it wasn't=20 to blame. so I miss why does a similar patch as, > https://salsa.debian.org/kernel-team/linux/-/blob/master/debian/patches= /debian/add-sysctl-to-disallow-unprivileged-CLONE_NEWUSER-by-default.patch is not applied to Guix System? Is it because a technical or else reason behind? Or is it simply because no one takes the time to fix the problem? All the best, simon