Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1505522ybk; Thu, 14 May 2020 10:34:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyw40SsKLDhtqk9ApveQbjRQoslres3aeBeVgNB0LQTU0yIKT7qjfKGhcUlsssiXEEFNP3w X-Received: by 2002:a17:906:415b:: with SMTP id l27mr5008381ejk.240.1589477670414; Thu, 14 May 2020 10:34:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589477670; cv=none; d=google.com; s=arc-20160816; b=uqSwFpajRdfDnX3BFdzadrWht2lo0wlx/9n4HXJ7G+v+c29uYXQYpFKhrjwUbHcbij jc2nw/G08WAAIYhGPASntj5GIGRwtHKevjOSc78jfyxzIM67jWbQtQpAPOtupXtq+ZS0 LC18IeabztbXAFUKpwYTFKK45RVlBdLIjD9U8Sx+2nWxuFnJ14AaZTT3yI+gayyAHYwU OCcey8CzYqoogHry/hT2xEYHh/gqD2RL7xB/j7dFA7z7Zrvp9DzFb2AqM1gpc6HXl3xy Kmo84eomV2Jz023OgBLmu+6+AWwBJazCPwKqc5jDm4HRvpbB6ugOq0OL3oh0eEut6jwi GGCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=aWVFzyiEi5K+tlOmGmPNhJT/CDQTs0qmXX1YP5GyTyM=; b=E+SpnqCVp20JUubYriwExta85RgZ33qa74G8e3zKtUrLsZ0s9ccBo9KngjXoawel4A dbsrHF06clRtjbnW/QrGxDF9kaCOwM+EzJ7lszQ7wF/578rR/vCPIkBsafeGC5eqdest Bsx1x0uLZU3OSOUZ2ACif2HdAAWSMFkYDoc1aqE5yjRSjVxbf9u+k6KsqCLQ8xyQz/gH ytqEnvajI/g6/7nORT+U5xNrYresM5wRrxjuFhQ0tkClXkOUIT6WBYfciWtx9MrlCShS mwv5kZgDZtVwCAfM9YF8GyYyvDLtdQqnbt37AlMQZtawWfQL8vKG1NAn3XjSG059eykJ VG3w== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jt10si2253625ejb.446.2020.05.14.10.34.05; Thu, 14 May 2020 10:34:30 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726367AbgENRcP (ORCPT + 99 others); Thu, 14 May 2020 13:32:15 -0400 Received: from namei.org ([65.99.196.166]:59018 "EHLO namei.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726027AbgENRcP (ORCPT ); Thu, 14 May 2020 13:32:15 -0400 Received: from localhost (localhost [127.0.0.1]) by namei.org (8.14.4/8.14.4) with ESMTP id 04EHVcqA027184; Thu, 14 May 2020 17:31:38 GMT Date: Fri, 15 May 2020 03:31:38 +1000 (AEST) From: James Morris To: =?ISO-8859-15?Q?Micka=EBl_Sala=FCn?= cc: Casey Schaufler , linux-kernel@vger.kernel.org, Al Viro , Andy Lutomirski , Arnd Bergmann , Jann Horn , Jonathan Corbet , Kees Cook , Michael Kerrisk , =?ISO-8859-15?Q?Micka=EBl_Sala=FCn?= , "Serge E . Hallyn" , Shuah Khan , Vincent Dagonneau , kernel-hardening@lists.openwall.com, linux-api@vger.kernel.org, linux-arch@vger.kernel.org, linux-doc@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-security-module@vger.kernel.org, x86@kernel.org Subject: Re: [PATCH v17 05/10] fs,landlock: Support filesystem access-control In-Reply-To: Message-ID: References: <20200511192156.1618284-1-mic@digikod.net> <20200511192156.1618284-6-mic@digikod.net> User-Agent: Alpine 2.21 (LRH 202 2017-01-01) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="1665246916-621977297-1589477498=:26489" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --1665246916-621977297-1589477498=:26489 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT On Thu, 14 May 2020, Mickaël Salaün wrote: > > This needs to be converted to the LSM API via superblock blob stacking. > > > > See Casey's old patch: > > https://lore.kernel.org/linux-security-module/20190829232935.7099-2-casey@schaufler-ca.com/ > > s_landlock_inode_refs is quite similar to s_fsnotify_inode_refs, but I > can do it once the superblock security blob patch is upstream. Is it a > blocker for now? What is the current status of lbs_superblock? Yes it is a blocker. Landlock should not be adding its own functions in core code, it should be using the LSM API (and extending that as needed). > Anyway, we also need to have a call to landlock_release_inodes() in > generic_shutdown_super(), which does not fit the LSM framework, and I > think it is not an issue. Landlock handling of inodes is quite similar > to fsnotify. fsnotify is not an LSM. -- James Morris --1665246916-621977297-1589477498=:26489--