Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp755411pxa; Tue, 11 Aug 2020 14:21:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwCz2tQluCTNAgUualhu4jsJVHwTYlrifbYJx1Dhm4pa895Jr3hC2T5ALp9kHY4mwhS4Abe X-Received: by 2002:a17:906:3b97:: with SMTP id u23mr29383940ejf.31.1597180867911; Tue, 11 Aug 2020 14:21:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597180867; cv=none; d=google.com; s=arc-20160816; b=sLrB1Gf4x+dISnU/hX5o1roEdts+uT3s70qG7Eu8P6ZENTdwRtrz940pIRfWSEKItx IBGGL+88dECqDMkSRQP+UcQ0C/ldqHwCRXj+2lWpGBzecJYzlbW5WRmZ4gUzYfVF1BPf uGOXFYtK0k5Zp/IKiop3CcJrqHcOsKW/yK4+mX4+822yfaCQb5yxOqJYi6Lm+/Q4vyNO 75pUQycQS8I0/NIsZ9/Kj4xD9gDeK7grRtnzd7rCNc5MCdNaGUzkYQBueBkb9R6Q5Xd/ UxLdV5q91H3xFMdA+jWVTJiGZ7Q0x7dwLEaoT3Ke3X0zDrKiHAqY8mewsFErBnt4ReNk xn1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=rA8YRs7dGB/GfkhZuYULS9uPbpqUgOSLUWngUo8yoaM=; b=QPnKMOjeP/9FNH8u2o1VlU2fzImuYsJ0ZRDm2N18svn89C8V9H+1SLodAz2LofQnFw 8uMesK68a5+liW1pL50QIle1rIojJ2F9XsTqPrSxyI51FKRtw+DMlpzzgynanMupTdG7 6ta9slHYhTnVvKUVFq0/oFlIBrNNOK26mWLCPIGTCIabvU13/vtvxfeJx3XqbklqCWp/ VudkcWbB4tXZoC3jFrKhQHFOQNHSi+8qii1eOa6cmkB2wY8hmsrSkFR9ft48NihP8jW3 +ufQtxG+RYgDCOxXWll3cNou2QoWNmqgdjouFHnjpjP1XcRvztZ1NZZh6A0dkVP17DsC duQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=B37Vu6gJ; 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 n11si13444347edy.433.2020.08.11.14.20.44; Tue, 11 Aug 2020 14:21:07 -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=@linux-foundation.org header.s=google header.b=B37Vu6gJ; 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 S1726578AbgHKVTC (ORCPT + 99 others); Tue, 11 Aug 2020 17:19:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725987AbgHKVTC (ORCPT ); Tue, 11 Aug 2020 17:19:02 -0400 Received: from mail-lj1-x241.google.com (mail-lj1-x241.google.com [IPv6:2a00:1450:4864:20::241]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5395C06174A for ; Tue, 11 Aug 2020 14:19:01 -0700 (PDT) Received: by mail-lj1-x241.google.com with SMTP id w14so15152008ljj.4 for ; Tue, 11 Aug 2020 14:19:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=rA8YRs7dGB/GfkhZuYULS9uPbpqUgOSLUWngUo8yoaM=; b=B37Vu6gJyZiMc+9rfRlkcU20N9U10pvTExHnPuibbYthtQqVMegykJE7HYcY2zldNY 5gxGBXFItNBRH8z/eG/knEXfMsho/PZusS91v/AIuz6EknTOjHM1WbX1WJwE9Kjez0Pq BW2ud3bdkqnIsddUMftapP9Lsi2ETAl3njB+s= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=rA8YRs7dGB/GfkhZuYULS9uPbpqUgOSLUWngUo8yoaM=; b=swEINOYayaMjCt30JZeDZaxCl9eV3+A/c/aXcVPFBtRJo8ZrHm5XNGSfHEL9KMvKK5 p77FPsfRvhOANFbNmW2TnbN2o7Sxm7oArxQl/XEb8USX1mVvgh35f+eZhsxL1le+XGFb F5nkkeYh1/lxpTb3/S17WdUxns4tAjqYufdLyMYLeFp0odNKNDXbPOfZ1ahepuISNMcI R4JRWONbDfQPAB9aKrwKoR42dr7iRPDrrp1FJIzI6E+n1QK8tBhyi+aETr7dkp64ShdA YWSkjjd7x72604aEPBSjhfs2NADzURmybZfX/d3XEsFpKAIlFvt5ncrMEQnQKVRh86nO EO5w== X-Gm-Message-State: AOAM533spfLw9yuWJORPNnUvUyhiI4WWNe7PpIlBJnDWxj7ZGHCJPTwA pFTMhZXH41lNnnuGXPHKRoLFD20sjZ4= X-Received: by 2002:a05:651c:1134:: with SMTP id e20mr4163820ljo.40.1597180739651; Tue, 11 Aug 2020 14:18:59 -0700 (PDT) Received: from mail-lj1-f174.google.com (mail-lj1-f174.google.com. [209.85.208.174]) by smtp.gmail.com with ESMTPSA id p9sm10278085ljg.76.2020.08.11.14.18.58 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 11 Aug 2020 14:18:58 -0700 (PDT) Received: by mail-lj1-f174.google.com with SMTP id t6so15141126ljk.9 for ; Tue, 11 Aug 2020 14:18:58 -0700 (PDT) X-Received: by 2002:a2e:545:: with SMTP id 66mr3970905ljf.285.1597180737731; Tue, 11 Aug 2020 14:18:57 -0700 (PDT) MIME-Version: 1.0 References: <5C8E0FA8-274E-4B56-9B5A-88E768D01F3A@amacapital.net> In-Reply-To: From: Linus Torvalds Date: Tue, 11 Aug 2020 14:18:41 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: file metadata via fs API (was: [GIT PULL] Filesystem Information) To: Miklos Szeredi Cc: Jann Horn , Casey Schaufler , Andy Lutomirski , linux-fsdevel , David Howells , Al Viro , Karel Zak , Jeff Layton , Miklos Szeredi , Nicolas Dichtel , Christian Brauner , Lennart Poettering , Linux API , Ian Kent , LSM , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 11, 2020 at 1:56 PM Miklos Szeredi wrote: > > So that's where O_ALT comes in. If the application is consenting, > then that should prevent exploits. Or? If the application is consenting AND GETS IT RIGHT it should prevent exploits. But that's a big deal. Why not just do it the way I suggested? Then you don't have any of these issues. Linus