Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753472AbaKCRFy (ORCPT ); Mon, 3 Nov 2014 12:05:54 -0500 Received: from mail-vc0-f179.google.com ([209.85.220.179]:57897 "EHLO mail-vc0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753391AbaKCRFw (ORCPT ); Mon, 3 Nov 2014 12:05:52 -0500 MIME-Version: 1.0 In-Reply-To: <20141103083447.GA8617@infradead.org> References: <4e8f7a1abcf5e0527ef8968143b2d0fcae48f5f4.1414658968.git.e@nanocritical.com> <5452B241.5010603@amacapital.net> <20141031084220.GA29085@infradead.org> <20141103083447.GA8617@infradead.org> Date: Mon, 3 Nov 2014 09:05:51 -0800 X-Google-Sender-Auth: -rmga4xqMM-gn50RAiEzDCNsi24 Message-ID: Subject: Re: [RFC PATCH] fs: allow open(dir, O_TMPFILE|..., 0) with mode 0 From: Linus Torvalds To: Christoph Hellwig Cc: Andy Lutomirski , Al Viro , "linux-kernel@vger.kernel.org" , Eric Rannaud , Andrew Morton , linux-fsdevel Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 3, 2014 at 12:34 AM, Christoph Hellwig wrote: > > That doesn't help because we explicitly reject O_RDONLY when combined > with O_TMPFILE. You obviously cannot actually have a read-only file descriptor with O_TMPFILE, unless all you care about is a zero-sized file with no contents. That's why people are talking about things like downgrading the file *after* filling it, using sealing. Linus -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/