Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2180509pxb; Fri, 24 Sep 2021 23:38:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjaTCDCyY04TbsoLyr/loSSYLLU68pP+NEJLdECYZU23sfPxdsv0/XX1bMbjhtbm8xmSuq X-Received: by 2002:a05:6402:3459:: with SMTP id l25mr9561776edc.55.1632551883550; Fri, 24 Sep 2021 23:38:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632551883; cv=none; d=google.com; s=arc-20160816; b=JZAk94UplCnIK2q/7B6tEi6YZMYL9NpKVCsgO0I25SQaBxWLtRYBDor9Rmaw8lvRxN DQ9mmSIQ1Tva3YBd5eEINtenK4RrHiR5reVtRVo8G4qRPYLQRpUeGtIfXd4tejo4dDF4 LW8pat179yR97cyIBoqcpxw+9qp0MslQrRsSliT8uxGvW1emSgOruW7rZx5tPaXy3Kun E+jfSun6qAshpa54i2Ujl2ORS5TepaXYN6E30j4QsLZ7JZL1NH+wjJnygJe4zMdYnCyD dgaV7UZS+lWfWEGkAp4fFeZStxsdhfwAEZoQq0fLYcRYgYBshugXutIIeq38vo31BRgs ml6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=DV5N4/wSqhbf87f/5ddCOW1LjBpTeeshhIzPhSM8UX4=; b=rIrYLIreo16X+Nil+AgCLtqNhXJS1pIyjpTUKJsx6dmctpf9DiRdPT8Mg1gd1IPMv4 JgZvT2n0kT7JR01bom4rXtIf3al8F4VY69q/1B7w6eUOHO67I2CSAZdjnCHr929qrytS ZMKtP6xbXd+xJQZ6bKLFm9ahfa9lnq2Pa70rGZmeEAzBaPr/EEjy3U3o7GwYddtiothA EzFpzspWkWK4qabiBFjFLGrV4DWLLdeSGy7JFLv1MWA3ooX2VHYlwn9L+zlj1Uu6ZgGe GtzYsCQvDk1hqIBPoqgW1lQzM1ZOzaU9xjVQUGjJU7mhqLnaSFSuPAg8qjVcer34602F FYmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=c5LlWTMh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hq41si13194473ejc.471.2021.09.24.23.37.40; Fri, 24 Sep 2021 23:38:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=c5LlWTMh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346020AbhIXXGR (ORCPT + 99 others); Fri, 24 Sep 2021 19:06:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:56934 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344410AbhIXXGQ (ORCPT ); Fri, 24 Sep 2021 19:06:16 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B060661039; Fri, 24 Sep 2021 23:04:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632524683; bh=8Gn10cKU7CtsiOEauZx4GtwUoFgLAEPG53mOJzrLlVQ=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=c5LlWTMhpUHgddMSAfJ9CrzhXWk/JnAM0D6mRTT/nPazU9tINDA0upOAoZ12580Je yDyeEBhLNDG47sJDpa7WHSp2oTjp9huYh8GajlG0YfWGug0h6M6T6RxRKJDhs4yKa1 pDewtrQZGTrzQVNsChGQWOvzz/DDS+G6/zJ8N38LImu9Uw+iOLU5uZg9zzWi2zes8q GzhoDpcj00urKgSs2OoJguzzuE+UqqAqPXcz1dFRSar5QmXhBDSV8SKpz+NXAcbXYE MIbc0Qe+NL4cafFPf4ajhreoaYuFzBOPWQEs8OuXnvzytnRTkMHafjh7Tv/CKc5t4s MepQjuEVvT87g== Message-ID: Date: Fri, 24 Sep 2021 16:04:39 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.0 Subject: Re: [RFC] Expose request_module via syscall Content-Language: en-US To: Christian Brauner Cc: Luis Chamberlain , =?UTF-8?Q?Thomas_Wei=c3=9fschuh?= , Linux API , Linux Kernel Mailing List , Jessica Yu References: <2ebf1a9d-77d5-472b-a99a-b141654725da@www.fastmail.com> <6eff0e8a-4965-437d-9273-1d9d73892e1a@t-8ch.de> <8cbf0703-5734-4e92-a6cc-12de69094f95@t-8ch.de> <20210922122523.72ypzg4pm2x6nkod@wittgenstein> <59e230b3-0e85-42ff-84a8-6b30ad0719d8@www.fastmail.com> <20210922155253.nj5dorsyv7loduws@wittgenstein> <0f209e1c-3d5c-46be-b5e7-323970112a8e@www.fastmail.com> <20210924131939.4jaou665fodiziml@wittgenstein> From: Andy Lutomirski In-Reply-To: <20210924131939.4jaou665fodiziml@wittgenstein> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/24/21 06:19, Christian Brauner wrote: > On Wed, Sep 22, 2021 at 01:06:49PM -0700, Andy Lutomirski wrote: > I just meant that the programs in the container can see the modules > available on the host. Simplest thing could be bind-mounting in the > host's module folder with suitable protection (locked read-only mount). > But yeah, it can likely be as simple as allowing it to ask for a module > and not bother telling it about what is available. > If the container gets to see host modules, interesting races when containers are migrated CRIU-style will result.