Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp954065rwd; Wed, 31 May 2023 07:38:22 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7ukBq5sFtUFradnDNmsXMcicDT7+4k0paLZ8qvfXHcg29+o6sIwEf2PDAe0DF0Thl+LQv6 X-Received: by 2002:a17:90a:7524:b0:250:1127:841c with SMTP id q33-20020a17090a752400b002501127841cmr4391393pjk.18.1685543902084; Wed, 31 May 2023 07:38:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685543902; cv=none; d=google.com; s=arc-20160816; b=ebC53bILEs8LdgxeXHTodlqlaEOHDHDntcLTolYogFzHtTMHh+L7S3oLfUrPKF8BPf L3IFp9ixj7b9O6Hpvbg8DxmMkeAnfe0qsaX8adPORxXZRQn7wfAPMVzjaFjHwIjYoWIK Kyt7GCAYZZc0PITTRPcj/2mQN9QbgWAYY2qMoG1T6ywLXEL7O/wWz6Nqn60Mv52soWT4 B+w0FowkrqKdIr+ODT8+qCNRyioylK27XFPldYagAFanv+QIik9lOKXUR5qERI0CPgk7 Ew4if/5RALrXsIpuwd4SgPW5UA9uof9VGnpHHO9fP5DCT9nrwoqNL2geMpRRdT9GHmN1 98rQ== 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=u06wsoXDKdLhDwBL6GQjdUhNEcg8dn6HnYPO197Z4ZY=; b=RhD2rgWGEQ0W0e0nVzr0ETkMLdaIOrIqOXw8sajFgV2svpP34qNvU6M46RW58OorO0 gVY9OUugRpQRV+n7ds+neh3Pe7k4PlaW/UV6azCsvvSnxDdRXHKWkuldY5cltV3Qm9ei UJYA8GY8HmxP+JUMOLXaIgLteCz++xFpwvuv7bZ6Ssd3PiVM6Wavx6PyzkUdB+Hpz0LI T5gt/EfYue+Tf1C6+fOg7Kw1HOBGdGXkeriUZgXh1Ak0xxI+uvbV4Tnju9sbMzNCymIi o+RWYmv/l/3L9Qq+4u1Uh+6SgH0wVBUu+PFUVv4x4XpkS1nwKDBiR/mzp35gKK0Mp6dr xs7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@yahoo.com header.s=s2048 header.b="Hz/xWT7a"; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i185-20020a636dc2000000b00534e68cc8f4si1052753pgc.27.2023.05.31.07.38.03; Wed, 31 May 2023 07:38:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@yahoo.com header.s=s2048 header.b="Hz/xWT7a"; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236084AbjEaO3i (ORCPT + 99 others); Wed, 31 May 2023 10:29:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235768AbjEaO3h (ORCPT ); Wed, 31 May 2023 10:29:37 -0400 Received: from sonic311-29.consmr.mail.ne1.yahoo.com (sonic311-29.consmr.mail.ne1.yahoo.com [66.163.188.210]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E614188 for ; Wed, 31 May 2023 07:29:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1685543361; bh=u06wsoXDKdLhDwBL6GQjdUhNEcg8dn6HnYPO197Z4ZY=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From:Subject:Reply-To; b=Hz/xWT7aH27tuQJQXJ8ZvPeoP8cossht4UEfgDGdOyP9R8ldo9xQ1ai/fIJXvNY78SKyumKBjy6zwOnjZLvRabAqhzhKR1TsVCfQcN3iU4XzKumoo89FlPQGLTNS6R1cB+9LqJfpgex5fWc9sbR29HwhWdvp/Gtp6wjsOM3J7Jw+2bnFu2QKCK6FZU5hxIdfAQ7Wv3ZDRxbRJmCVMXfhXS1CIvYwLGqciStUpW7A126M1n3a2HtOQ6fFBK00XKsGFPJXyo5SGJugVKmnhoF6y3jln4CAbRglJkpzbTbNF234Bw5pJvzWtTVQ50u4oiAIOymHM2hG3PcsTDSr/Bih8Q== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1685543361; bh=cqZzDmnAUoqkwan7qUmUF4+lXIpELYtyCu+rxyNkUp7=; h=X-Sonic-MF:Date:Subject:To:From:From:Subject; b=Kr6rIPnpb+Dy/sHdtopUcRGbrlqMQRzmOvfKuvLuT34y2z49cYOFlS0mT1PUkkTid4ObVp1mQo/sXUNJ6OtH7MDRJgnrS2/8Mv0WaPr0FlsfTJBe9thFowaf2a4DBi3GIIIJASdd2OQfwkWn/FW0afaKOU1DJMWNOg9jeS0nHk7gxSDyBapYa8en5A4z5n5NlVSEW7v+1kinhHMC4sneaqviWt8B5anImizJcUJqiK8y6M0WuIOLRG3Jvo+ugNF1MctVEIRm7hb8X94BLdPTflzgf7eVMQaU3Z5Ri0X1bN6gcq/GOlm9aebTXiQYlHAozVljiPY+FgjyGA8nnS+7dA== X-YMail-OSG: YS2OiOgVM1kmwmgmji0DUz5dLhGzTb5Z198M4.LCNKObOZhn4oZZvKSnFZmfrxY UN6hR2P.A3qTmfVVDLFNYjn5QLt.nWYU8UGVZqmdVBdYYliraQ4peiZ_mZcfzn3.A8K3FJVwas4G KCkturum0T2vml6moo5VB_FFFCpq9blIh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bmcJ3zn.5mQyOhh0J4YxJszoanvccTV_P02lqJGioEc- X-Sonic-MF: X-Sonic-ID: 4d60b986-7ed3-4d05-823c-5d7a7b7466b1 Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.ne1.yahoo.com with HTTP; Wed, 31 May 2023 14:29:21 +0000 Received: by hermes--production-ne1-574d4b7954-bq277 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 174ebacd8784abefa7ff5b7a2ade66e9; Wed, 31 May 2023 14:17:11 +0000 (UTC) Message-ID: Date: Wed, 31 May 2023 07:17:08 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH -next 0/2] lsm: Change inode_setattr() to take struct Content-Language: en-US To: Christoph Hellwig Cc: Christian Brauner , =?UTF-8?B?TWlja2HDq2wgU2FsYcO8?= =?UTF-8?Q?n?= , Xiu Jianfeng , gregkh@linuxfoundation.org, rafael@kernel.org, viro@zeniv.linux.org.uk, dhowells@redhat.com, code@tyhicks.com, hirofumi@mail.parknet.co.jp, linkinjeon@kernel.org, sfrench@samba.org, senozhatsky@chromium.org, tom@talpey.com, chuck.lever@oracle.com, jlayton@kernel.org, miklos@szeredi.hu, paul@paul-moore.com, jmorris@namei.org, serge@hallyn.com, stephen.smalley.work@gmail.com, eparis@parisplace.org, dchinner@redhat.com, john.johansen@canonical.com, mcgrof@kernel.org, mortonm@chromium.org, fred@cloudflare.com, mpe@ellerman.id.au, nathanl@linux.ibm.com, gnoack3000@gmail.com, roberto.sassu@huawei.com, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-cachefs@redhat.com, ecryptfs@vger.kernel.org, linux-cifs@vger.kernel.org, linux-nfs@vger.kernel.org, linux-unionfs@vger.kernel.org, linux-security-module@vger.kernel.org, selinux@vger.kernel.org, wangweiyang2@huawei.com, Casey Schaufler References: <20230505081200.254449-1-xiujianfeng@huawei.com> <20230515-nutzen-umgekehrt-eee629a0101e@brauner> <75b4746d-d41e-7c9f-4bb0-42a46bda7f17@digikod.net> <20230530-mietfrei-zynisch-8b63a8566f66@brauner> <20230530142826.GA9376@lst.de> <301a58de-e03f-02fd-57c5-1267876eb2df@schaufler-ca.com> <20230531132200.GB30016@lst.de> From: Casey Schaufler In-Reply-To: <20230531132200.GB30016@lst.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Mailer: WebService/1.1.21495 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On 5/31/2023 6:22 AM, Christoph Hellwig wrote: > On Tue, May 30, 2023 at 07:55:17AM -0700, Casey Schaufler wrote: >> Which LSM(s) do you think ought to be deprecated? > I have no idea. But what I want is less weirdo things messing with > VFS semantics. I am curious what you consider a weirdo thing done by LSMs. Things like io_uring are much stranger than anything an LSM does. > >> I only see one that I >> might consider a candidate. As for weird behavior, that's what LSMs are >> for, and the really weird ones proposed (e.g. pathname character set limitations) >> (and excepting for BPF, of course) haven't gotten far. > They haven't gotten far for a reason usually. Trying to sneak things in > through the back door is exactly what is the problem with LSMs. Mostly developers play by the rules, and we don't let things sneak in.