From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.9 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C4339C3F2D2 for ; Thu, 5 Mar 2020 20:35:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 954A220848 for ; Thu, 5 Mar 2020 20:35:17 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="WrE+quKr" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726608AbgCEUfQ (ORCPT ); Thu, 5 Mar 2020 15:35:16 -0500 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:34951 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725991AbgCEUfQ (ORCPT ); Thu, 5 Mar 2020 15:35:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1583440515; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=5U5JtOxyT2J/jqnRkTwxu/wWznmUdm4uGYD+aZ7B6ZU=; b=WrE+quKr5n/HJuXB7AlmbOXHqOQOfGgkNfXravx9zlF5BTHV8nAtlVdThh6rk/yeWamGQZ Efat6Wu+PCGIDjUkABnAqujhPRBisl1aC5rxV/z6h9wldPwW20aEhGi1NoTnoOam7OSD+4 l6bw2svgr4DeiAWBKNWee0Ov3whcQng= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-198-HfKQmJQFOQCbDo7hC9AehQ-1; Thu, 05 Mar 2020 15:35:11 -0500 X-MC-Unique: HfKQmJQFOQCbDo7hC9AehQ-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 6D7A1100550E; Thu, 5 Mar 2020 20:35:09 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-120-182.rdu2.redhat.com [10.10.120.182]) by smtp.corp.redhat.com (Postfix) with ESMTP id BB36E5D9CD; Thu, 5 Mar 2020 20:35:07 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <4e915f46-093b-c566-1746-938dbd6dcf62@samba.org> References: <4e915f46-093b-c566-1746-938dbd6dcf62@samba.org> <3774367.1583430213@warthog.procyon.org.uk> To: Stefan Metzmacher Cc: dhowells@redhat.com, linux-api@vger.kernel.org, viro@zeniv.linux.org.uk, torvalds@linux-foundation.org, cyphar@cyphar.com, christian.brauner@ubuntu.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC][PATCH] Mark AT_* path flags as deprecated and add missing RESOLVE_ flags MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3786500.1583440507.1@warthog.procyon.org.uk> Content-Transfer-Encoding: quoted-printable Date: Thu, 05 Mar 2020 20:35:07 +0000 Message-ID: <3786501.1583440507@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Stefan Metzmacher wrote: > Where's the RESOLVE_NO_TERMINAL_AUTOMOUNTS check? See: (3) Make openat2() support RESOLVE_NO_TERMINAL_SYMLINKS. LOOKUP_OPE= N internally implies LOOKUP_AUTOMOUNT, and AT_EMPTY_PATH is probab= ly not worth supporting (maybe use dup2() instead?). As things currently stand, automount following is explicitly forced on for open and create. We can make it error out instead if this is desirable if RESOLVE_NO_TERMINAL_AUTOMOUNTS in such a case. David