Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2206417imm; Sat, 29 Sep 2018 12:50:48 -0700 (PDT) X-Google-Smtp-Source: ACcGV61j57SLmOOMH5hFPz8eY58J3m7gryxpiewQbY5hXJNa4y4T9k0Hx4B2MrfO85Ye61SlboiO X-Received: by 2002:a17:902:290a:: with SMTP id g10-v6mr4442806plb.110.1538250648197; Sat, 29 Sep 2018 12:50:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538250648; cv=none; d=google.com; s=arc-20160816; b=T8lM1oVAh1WXXkJHL5Ap4Q+afh03bgZEqWOsTqTuFGssBWlp4W3zp+1eApo4oIzEck T7p9XKYgtcVZ16VAmGggLz7lnLHBt6akZwBv2Gj6OaFaxX/1dxpZfGyM/BZgrmMhA3GN fwiinhLXp5oDN9uyy9jyNWs1vBBkFUB+LnGYAzLoJ62wmTmQvlKuf+9sfdBxWGxzv6tU BIztnaw0s+yWnVMFRBzs3WAEyx8VGLMHd0ZoUxRChdJgbtXAWDFuQwMJzkTE8AWnJWlL XJNsKCQulAPMvRfWxXtCRzJKeCLcF7tuZ8e8OGW/X/aLNrDB/3W44l3+x3HqVPqtfH/f PplA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=d+Pi6r1Xb+XbBfameMEsWsdZZO+w1ilk/ee61pLllTo=; b=Gyb7q/Qf2QMuFMsi7C8ZtdXrVtQHGof/+bw4ylYMlkoXgG0ND7NUZhYzKzBZE1ccar mT9I0Egm1IKZAo0ClF57PXHZg1dfrTkoHvvv46t0IC5imqqNr7Wzdfxdks1vNfaJ7VRW yjaXeO2gSaHQFxOOUIl/QrhQIXVVkcb82SqnB/PHmm8e64UxJf3aEXjEeulg9V1du5oI p1sNnn6OjdDGPE7xLx+4TkDIZKclLmiSnQ/gwtTrGPwdRuI96KHDoZplYrLUpH5L5/Gi DpGF0YyQsrtNHZVGQoQ5YwtIPgW4H4yTiezkOX8IRT6FJ9vxNeR8YfdMS92591EK39L4 IhLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=PPu01VWs; 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 1-v6si8546949plt.148.2018.09.29.12.50.33; Sat, 29 Sep 2018 12:50:48 -0700 (PDT) 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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=PPu01VWs; 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 S1727980AbeI3CQc (ORCPT + 99 others); Sat, 29 Sep 2018 22:16:32 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:38078 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727405AbeI3CQc (ORCPT ); Sat, 29 Sep 2018 22:16:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=d+Pi6r1Xb+XbBfameMEsWsdZZO+w1ilk/ee61pLllTo=; b=PPu01VWsmZCdrM/rcgdEM3Cdu iu2NiBA4bqfMDkHUgm5EGmXYNQeUm0xsCUQRfYd4w4mPY8KaeoCQ/u7EV/uFwZI0u18DtwG/ju4Vm odl35rs99dqF8g4wt+q+gibdq9Aog+KUaKOxQxAb1B/narPjSYJ4tvUGKHjcCJ4zEGoQjGw6B+Dnc uh4t8IZR7xc00AMqpiGCrbt+kVyxG3+xJdMR+7yX/WQKKg0MlKo1ZdwCYXeXyCs6AQtku43D3Lcuj qPV94fCwoiE8tS0A5pJrFatZBWgRnkSvMQz+aEt2hslIV5mxBc8AuvNvWnvnTQKMt1Gk+D5lIPOe6 y8OXUKafQ==; Received: from willy by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1g6LAD-0002dY-Ip; Sat, 29 Sep 2018 19:44:29 +0000 Date: Sat, 29 Sep 2018 12:44:29 -0700 From: Matthew Wilcox To: Andy Lutomirski Cc: Aleksa Sarai , Jeff Layton , "J. Bruce Fields" , Al Viro , Arnd Bergmann , Shuah Khan , David Howells , Andy Lutomirski , Christian Brauner , Eric Biederman , Tycho Andersen , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-arch@vger.kernel.org, linux-kselftest@vger.kernel.org, dev@opencontainers.org, containers@lists.linux-foundation.org Subject: Re: [PATCH 0/3] namei: implement various scoping AT_* flags Message-ID: <20180929194429.GA1702@bombadil.infradead.org> References: <20180929103453.12025-1-cyphar@cyphar.com> <1EE20CA2-4C8B-4A80-B613-0277D92B376D@amacapital.net> <20180929154551.jsi6dt3xjxdxoqeh@ryuk> <9D01A225-05BE-4B4A-873A-94168D17F687@amacapital.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9D01A225-05BE-4B4A-873A-94168D17F687@amacapital.net> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Sep 29, 2018 at 09:34:24AM -0700, Andy Lutomirski wrote: > Also, as a perhaps-silly suggestion: if you end up adding a new > syscall, I can see a use for a mode that does the path walk but, rather > than failing on a disallowed link, stops early and indicates where it > stopped. Then web servers, samba, etc can more efficiently implement > custom behavior when links are encountered. And it may also be useful > to have a variant of AT_THIS_ROOT where trying to escape is an error > instead of having it just get stuck at the root. AT_USER_LINKS indicating that userspace wants to resolve symlinks themselves?