Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp3543005ybf; Tue, 3 Mar 2020 07:50:56 -0800 (PST) X-Google-Smtp-Source: ADFU+vt0eikQvvx6aGCg1W/bRnsRqHkzrWF2bUU0STvxFXR3dQS0LqrFuDjn8/+Cz6xP5plNE0F3 X-Received: by 2002:a9d:6205:: with SMTP id g5mr4034652otj.153.1583250655998; Tue, 03 Mar 2020 07:50:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583250655; cv=none; d=google.com; s=arc-20160816; b=a/AZCiQ3Cjm5cPhJ+BoyNwEsoL5qfdyD4itunlj0dDtULXQsjSHDqpzjNJuPX79bn+ e3U3fjdniAJLmsjaDizL+bYlOLPN8XABDCiWqE99JyuCdZtrrUGvAJKW0oQTk9j9w/Ez zaO58W8cuKo/kfHNjEwG8hzCgJxcJu1WSULVMOYlgcqpZHtLHFJw/VFVOVKfAMiD39V6 byKA7QRs2AQJQ/2uWi61WTzBaU/CPkI9xTfCousYHoF0f3g7cx3buxSjQTAaf6JfdPNg M+ZWG1lXyxKcc36U2/wrA2H+Sy/KSxn44ooAWqIOc1fBvWY6Pr2hZm1xfMOcIvgLZMcm wCOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=m0nmyMEl3hgJni7GaWguKiuJaJ3Xd1qVYLTpEyps+gk=; b=m7QkfU0C+FdjZxxMWfI5vFu3LOUSKsTxlzABSUM6WQ/4dC8vBL2D8sbML5024OtUxI Zjq9lqHwegIM5IaPdP7o65yB1hEvp8uahhJE0BZ1v6/jC8iR/tDUfsALycwkccGqk61U xhkdeQ2jSCRzzzQfMH6z7V6oXoLbgl4/+oGvDdiMu1zZPVkSKvVeiMgla/ahu5VOH90R YRnvLeTI9ZA9x4P6GjNxRbfUFc07bLCc8/NhYonghR+bYFtggSXlwdnzsjBg7o5ukGzA SDUzosHvAhtWrpXzeHYw/fDMz6CUCnPdS2f8VG7fQ3ZmcdN9rvigZQfbBDs3hZZbxAQX wZUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="FHC/y79N"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h13si5206812otn.112.2020.03.03.07.50.43; Tue, 03 Mar 2020 07:50:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="FHC/y79N"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729880AbgCCPXz (ORCPT + 99 others); Tue, 3 Mar 2020 10:23:55 -0500 Received: from mail.kernel.org ([198.145.29.99]:48522 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725932AbgCCPXz (ORCPT ); Tue, 3 Mar 2020 10:23:55 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0139920838; Tue, 3 Mar 2020 15:23:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1583249034; bh=rXosf6kAT/BKH/ayoMI3Rw2EtxgONhJJd03j7j6pgpI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FHC/y79N8pKO5oiRvYDv1RXt1CxGsCRToCzID7d7P+PdeFim6vx5Oo9IEcrECLjKk fJF5s06rM9Rh1/OVXsSTwnIOP2IxeFg0So1FduEqMEUjDRY3Ht1wXdJDZ8uZ88JVtT ke/ORH7JT2Ud8ipqAFDiV3fhJTTuhD0ySE/MEniA= Date: Tue, 3 Mar 2020 16:23:52 +0100 From: Greg Kroah-Hartman To: Christian Brauner Cc: Miklos Szeredi , Karel Zak , David Howells , Ian Kent , James Bottomley , Steven Whitehouse , Miklos Szeredi , viro , Christian Brauner , Jann Horn , "Darrick J. Wong" , Linux API , linux-fsdevel , lkml Subject: Re: [PATCH 00/17] VFS: Filesystem information and notifications [ver #17] Message-ID: <20200303152352.GA221026@kroah.com> References: <0403cda7345e34c800eec8e2870a1917a8c07e5c.camel@themaw.net> <1509948.1583226773@warthog.procyon.org.uk> <20200303113814.rsqhljkch6tgorpu@ws.net.home> <20200303130347.GA2302029@kroah.com> <20200303131434.GA2373427@kroah.com> <20200303142351.vtc2ldqltev5jo4h@wittgenstein> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200303142351.vtc2ldqltev5jo4h@wittgenstein> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 03, 2020 at 03:23:51PM +0100, Christian Brauner wrote: > On Tue, Mar 03, 2020 at 02:34:42PM +0100, Miklos Szeredi wrote: > > On Tue, Mar 3, 2020 at 2:14 PM Greg Kroah-Hartman > > wrote: > > > > > > Unlimited beers for a 21-line kernel patch? Sign me up! > > > > > > > > Totally untested, barely compiled patch below. > > > > > > Ok, that didn't even build, let me try this for real now... > > > > Some comments on the interface: > > > > O_LARGEFILE can be unconditional, since offsets are not exposed to the caller. > > > > Use the openat2 style arguments; limit the accepted flags to sane ones > > (e.g. don't let this syscall create a file). > > If we think this is worth it, might even good to either have it support > struct open_how or have it accept two flag arguments. We sure want > openat2()s RESOLVE_* flags in there. If you look at the patch I posted in this thread, I think it properly supports open_how and RESOLVE_* flags. But remember it's opening a file that is already present, in RO mode, no creation allowed, so most of the open_how interactions are limited. thanks, greg k-h