From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id aFx3Izpqzl9IKAAA0tVLHw (envelope-from ) for ; Mon, 07 Dec 2020 17:45:30 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id MOxBHzpqzl9kUQAAbx9fmQ (envelope-from ) for ; Mon, 07 Dec 2020 17:45: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 2C6DC94042E for ; Mon, 7 Dec 2020 17:45:30 +0000 (UTC) Received: from localhost ([::1]:36976 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kmKZk-00007o-Vc for larch@yhetil.org; Mon, 07 Dec 2020 12:45:28 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:53766) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kmKZJ-00006K-Fc for guix-devel@gnu.org; Mon, 07 Dec 2020 12:45:03 -0500 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]:38323) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kmKZF-0001cK-3I; Mon, 07 Dec 2020 12:45:01 -0500 Received: by mail-wm1-x32b.google.com with SMTP id g185so19894wmf.3; Mon, 07 Dec 2020 09:44:56 -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; bh=f/d3u1WuRFo9SYKW56sfQQM+adn3buv/hpTUikDYTO0=; b=r195UT+/NoJGy7Zku7NaabWGnj+6oaD/XtlcJjOpW+UQyjG8Vsx5pnwh1K1XYWYno6 OPMB0UeoHBLNVsGPLqjbsVoN45hg5NzWaa+IYcf09Um/Tuy33hHmCKB+XEIyh+Ek05YU Wp6ne6czPh2qN6/4pxrAwQNtl/og9EJDg7y/cBpeQ/nxwlCcZ9KxfKOk+3elqPElbF1k /3NuF8OyYdCfdkb1I3v09s96s7g11CkSMjwdjNfJQVmO+qHZnJoLV/CaliyMvAERkIA9 8CqrPyN6CNUCTyu2L2eA+qaSaAydt52pFrSfTQcMzrN/vGwdagwN5HHfN0Y6WQoVcxdd p2Kw== 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; bh=f/d3u1WuRFo9SYKW56sfQQM+adn3buv/hpTUikDYTO0=; b=g0UjNcxg3ljn8rI/8/XUfAC7djkjvr9/tyf2MfdLgb2uGp53pPGe5mePfaj439GzjU FUacg63rt/SGuYyLdsvMRZ96vpR0fdJM72BrvupdVtc0FMeTpz225KhW4PcceLUD/fyr zPSrwTVlLJfdSjqzUEmroPJGiTxYAkuu+LB20vpw90DVZkkmef8jooyhOCSkfbGVjalO IdeWYbDllaoqovas/Zncwkg2anFQ5yccHiGz/63hKLD1uNtGdDrVMPediLEj8xuhfAKM BLg/aA2caClU6BMomDWfxSbUTJ0YiaGUsL4hYjMy8G4HHsaJZxZly1Pwz3QQ0G2eaSUF Ca+w== X-Gm-Message-State: AOAM532eEQZk94nYIfo8ozRkvI6q4sPK4ZBmjkEFSRziiHSEXjYlrc3V R7+RBqZJP2VNuDenYjLbF6M= X-Google-Smtp-Source: ABdhPJzWvvI2ej7CDYry5pDGHOaEJOamNgfzEXOmLBttxBm22iXwf6cRxeQHqsrS0VF+BCON8DRN+A== X-Received: by 2002:a1c:f20e:: with SMTP id s14mr19400646wmc.126.1607363094825; Mon, 07 Dec 2020 09:44:54 -0800 (PST) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id z11sm16230238wmc.39.2020.12.07.09.44.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Dec 2020 09:44:54 -0800 (PST) From: zimoun To: Ludovic =?utf-8?Q?Court=C3=A8s?= , Marius Bakke Subject: bug#45069: Guix System: unprivileged user cannot create user namespaces? In-Reply-To: <87tusxwncj.fsf@ambrevar.xyz> 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> Date: Mon, 07 Dec 2020 18:35:28 +0100 Message-ID: <86ft4h5xjz.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::32b; envelope-from=zimon.toutoune@gmail.com; helo=mail-wm1-x32b.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: 1.30 Authentication-Results: aspmx1.migadu.com; dkim=fail (headers rsa verify failed) header.d=gmail.com header.s=20161025 header.b=r195UT+/; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: 2C6DC94042E X-Spam-Score: 1.30 X-Migadu-Scanner: ns3122888.ip-94-23-21.eu X-TUID: yEqUbgj2Jg8M Hi, On Mon, 07 Dec 2020 at 18:13, Pierre Neidhardt wrote: >> Can you try, as root on Guix System: >> >> $ echo 1 > /proc/sys/kernel/unprivileged_userns_clone > > # echo 1 > /proc/sys/kernel/unprivileged_userns_clone > -bash: /proc/sys/kernel/unprivileged_userns_clone: No such file or directory In gnu/build/linux-container.scm, it reads: --8<---------------cut here---------------start------------->8--- (define (unprivileged-user-namespace-supported?) "Return #t if user namespaces can be created by unprivileged users." (let ((userns-file "/proc/sys/kernel/unprivileged_userns_clone")) (if (file-exists? userns-file) (eqv? #\1 (call-with-input-file userns-file read-char)) #t))) --8<---------------cut here---------------end--------------->8--- Does it mean that the Linux kernel on Guix System does not support namespaces by unprivileged users? Turning #t to #f should work on Guix System and it appears to me a severe bug if not. What do I miss? Please could someone fill my gap? :-) All the best, simon