Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp6890259imb; Sat, 9 Mar 2019 09:08:25 -0800 (PST) X-Google-Smtp-Source: APXvYqx5dWpJ539Q6cZ4Oq4PmGRO+ryqJMMP7ADpSvG3K20p45fRfkBaJRKFA5ltfe/ApZa68yP1 X-Received: by 2002:a17:902:501:: with SMTP id 1mr24663753plf.72.1552151305317; Sat, 09 Mar 2019 09:08:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1552151305; cv=none; d=google.com; s=arc-20160816; b=qsYn7381YsQbFoE727lAkAwFTcNA6QIIdFOXo9F5VLhphqMOOzmBjfX5HnsMqDuM62 PjbbjbJLyaqaKr6qvyV/XmCdOVfRJefuJSdUAiByMrDvDiHOaheE0rcIZftcBz9XVydd 6IBVr6KZR0cRAZN/7RBO4Tbn1bTni517u7SnRzVPHPTKUOFRUGwEzU7F9+zTlSaFjcEN 46bVF8TiaXtd8+cG1bjiI4IGMgwyui3hsDWi0hpsMB/ffLN9Xn/mGVy9xtwCOMJrncUu T7vhNkKT403xASJdvVapbKiQ4Xf6VzUJXOHWNVFwtlrozkdPcUI6Z+nttQ2NI85Ejz1p EGRA== 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=i1PYBIYx91Ep2tFRHYR2pbSt5PwsEKkKmx2LdfQ0lFg=; b=a8R57hqminhqODqC4GFQNSp3E0zDa/QZwb1bkOgelEzjrndTqPZeL1Yp1ZHV1swVin D6XiiSzwxsMiq3Tpklh1M2ocl2A/zPHFWezTqXzzlrllzr06QwIrSNTlYc9/elo2MCI2 b5zBwQ1xiBUqvwgxxeUU0pF53fTrIKL/OjB6AvJbJsS3WYw2tLhLt4JNPts84aGQk3yV VZQTXG5kmDJwQa0N6aK6ZAVUGdIoKQJoG6bCpMcg9S77Hx4i3DqN6RZqqIHtABN41p8c aHZfWfmLxi/58u9ngR0hcv52kkDWnsNr9qXtom3oyh3Uc3FBuWTZ9Nd/Y79/yBz3aFEg Gm4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=TbaEiUxc; 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 r18si814975pgv.485.2019.03.09.09.08.09; Sat, 09 Mar 2019 09:08:25 -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=@linux-foundation.org header.s=google header.b=TbaEiUxc; 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 S1726445AbfCIRHa (ORCPT + 99 others); Sat, 9 Mar 2019 12:07:30 -0500 Received: from mail-lf1-f65.google.com ([209.85.167.65]:37973 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726294AbfCIRHa (ORCPT ); Sat, 9 Mar 2019 12:07:30 -0500 Received: by mail-lf1-f65.google.com with SMTP id k136so541937lfg.5 for ; Sat, 09 Mar 2019 09:07:29 -0800 (PST) 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=i1PYBIYx91Ep2tFRHYR2pbSt5PwsEKkKmx2LdfQ0lFg=; b=TbaEiUxcvmKyQqPo6o9LnG+AwYGNR3jZANISTvxcHxko7EJj/PNm59cag4S8eIKTMY /8CWfajtBTcHh4mtJo5k+TDjp6y7cUNhUUmjYzelLPfQ2s6xkhi6LrZxuptaShXv+a1f uZKuXodyLX+kQ3OxQaJLt2QU4PgFVzEkM5b6w= 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=i1PYBIYx91Ep2tFRHYR2pbSt5PwsEKkKmx2LdfQ0lFg=; b=RDmAMMytvAqO0GIimonc6j6nJ++2J4bRDUsRNn6Fq5duvvQ0GekJJ83QngM+Z3FvNA bwxuFHcnH34JHZ6TlO5Df3yxMOOdvPO2xbzmQWjahu112kK3XLOX9i278A9Himv+pe5s +30+3bc7a8WYJ5ZMgs7shfLiFcL8mn3o+xw5sXohUJuCZ6XKBua4JJHeFNc0QS0s9gTF ZJB9HBH72io1XYfiNRJ/K7csHqnt16+saeZwk7NbkECQKGUIbokaCvroIDlqjpp64phG Zz9t+gKt58bIwKzgRn6amSdLXUbmJGUyEjzYvNxgTt3p/qHUEggvE/kk311UF9iG48k4 chBg== X-Gm-Message-State: APjAAAW7OxTA2Y55uFPcGWLOVT6qrJCiQkok1jzq451h+dTnWkcJOL8y gmq00szZ4ygZB5jMY6Vqg5FK5Hl2ZE8= X-Received: by 2002:a19:a417:: with SMTP id q23mr13954649lfc.27.1552151247789; Sat, 09 Mar 2019 09:07:27 -0800 (PST) Received: from mail-lj1-f176.google.com (mail-lj1-f176.google.com. [209.85.208.176]) by smtp.gmail.com with ESMTPSA id r190sm110252lfe.43.2019.03.09.09.07.27 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 09 Mar 2019 09:07:27 -0800 (PST) Received: by mail-lj1-f176.google.com with SMTP id z7so607766lji.0 for ; Sat, 09 Mar 2019 09:07:27 -0800 (PST) X-Received: by 2002:a2e:8510:: with SMTP id j16mr5128563lji.2.1552150873803; Sat, 09 Mar 2019 09:01:13 -0800 (PST) MIME-Version: 1.0 References: <20190306191244.8691-1-cyphar@cyphar.com> <20190306191244.8691-3-cyphar@cyphar.com> In-Reply-To: <20190306191244.8691-3-cyphar@cyphar.com> From: Linus Torvalds Date: Sat, 9 Mar 2019 09:00:58 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH RESEND v5 2/5] namei: O_BENEATH-style path resolution flags To: Aleksa Sarai Cc: Al Viro , Jeff Layton , "J. Bruce Fields" , Arnd Bergmann , David Howells , Eric Biederman , Christian Brauner , Kees Cook , David Drysdale , Andy Lutomirski , Andrew Morton , Alexei Starovoitov , Jann Horn , Chanho Min , Oleg Nesterov , Aleksa Sarai , containers@lists.linux-foundation.org, linux-fsdevel , Linux API , Linux List Kernel Mailing , linux-arch 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 Wed, Mar 6, 2019 at 11:14 AM Aleksa Sarai wrote: > > This is a refresh of Al's AT_NO_JUMPS patchset[1] (which was a variation > on David Drysdale's O_BENEATH patchset[2], which in turn was based on > the Capsicum project[3]). Input from Linus and Andy in the AT_NO_JUMPS > thread[4] determined most of the API changes made in this refresh. So I still think this is likely a good idea... BUT. The absolutely huge BUT here is "are user space people actually interested in using it, or do they already have other solutions to this anyway?" The intent is obviously to make it easy and cheap to to the simple pathname lookup in a controlled manner, and then let user space fall back to "let's check things much more carefully" for paths that look iffy. But maybe the people who care already have their own solutions, and/or need something more anyway (ie samba looking up all names in user space first _anyway_ due to ICASE issues or whatever)? So this is easy and straightforward to do in the kernel, and it _feels_ like something that can be useful, and I'm not all that concerned about the maintenance overhead either because of the trivial semantics. But I'd still like to actually have some user space person say "yeah, we'd actually use this" since quite often non-portable solutions don't really end up being used simply because it's not worth the maintenance headache in user space.. Linus