Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp3720847ybe; Sun, 8 Sep 2019 20:35:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqzMCCM5KTwDjShFKwiyKD+qNpVft+9iuSO1DXXBA5lh1syOm6kvKhsul6+h6nzueMiIZl5a X-Received: by 2002:a17:906:4708:: with SMTP id y8mr17712081ejq.204.1568000159530; Sun, 08 Sep 2019 20:35:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568000159; cv=none; d=google.com; s=arc-20160816; b=gpX+2j/uezakpfZuro8i4n37pbXn/+lATZrz5jLw4jmBh+pr75SGK3Hd30xhGQJjL/ VKOp8EKxa+i2J+YQtx1r+1wk3hvk0J4AcOoHZk2XxQixhZTfsjMoDmX/OMbA8Mif64+f rgyu4ZgO6ckSm0fCwI9AgEnT/C4yHVT9SPJFYNpghHiUCga8Nolv6NI+0czHH0iFlC7F 92lxoVx3gdZrOIWAg10b/L0lkxKu2pd2FBdRxhfTRLnpr/S85+IlAufbkSnZpdrgyQ+E D6yVvdUD0s9tXZksvzDv/4nhR/qOS2aJCAs5RGN9ob7MWx0JcudrdlxiN+wmLghilnl0 bpaw== 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=JJRFoANDdA7LVjR/dXOt13NCYJCwAkkvMBjFRYL2CJk=; b=Ghpf6+B/LrCJ+OFKwP6khIXy+5k8QsEdoUyEkSC2sKad1s+zX1GIbGHd4R3UCjdJUZ PJTVxRy91SRcwXMV4HgSGL5q0VCH/xfreWdGJvIHxdHGehO9clN1cyFQNUBKA5ecKoj+ BDMAlIa4NOt3V5ukWHJmjASinBQH3lrqrM5deCrA7NIrrNdhTB12wfsOE5LjDm1R6juS BvXEKjdf4qJlLGL47yGLPDisiAeYPgKNO/jjW6ApRncwH/2m4EOUrcX+78WSkX21PQyd tv7OO2DMm20r6nM+Irv+BfzFkfRJJSVs1WA3k1agOdWiYf3NdOP8aUVjeB6V34Fc1rmF 8TZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=O0k0d7lq; 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 k11si4552719ejq.251.2019.09.08.20.35.30; Sun, 08 Sep 2019 20:35:59 -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=pass header.i=@linux-foundation.org header.s=google header.b=O0k0d7lq; 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 S2392414AbfIGRp4 (ORCPT + 99 others); Sat, 7 Sep 2019 13:45:56 -0400 Received: from mail-lf1-f66.google.com ([209.85.167.66]:43644 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726937AbfIGRp4 (ORCPT ); Sat, 7 Sep 2019 13:45:56 -0400 Received: by mail-lf1-f66.google.com with SMTP id q27so7470216lfo.10 for ; Sat, 07 Sep 2019 10:45:54 -0700 (PDT) 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=JJRFoANDdA7LVjR/dXOt13NCYJCwAkkvMBjFRYL2CJk=; b=O0k0d7lqzfAmPEYFzDlOGgQsR12LVtrvxo5oTKj/qTWwdx05EQgXW+UipRXAFcHY7l NJSN5sB8Bd0GzZnsutsLrlnHa03N+sVzppgC400AeuuF3leAik8ua94YYTL1N/jeDSEY p0NLqzIjW/MddvLJPDdxPws4zfzc5nCUgJ+sc= 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=JJRFoANDdA7LVjR/dXOt13NCYJCwAkkvMBjFRYL2CJk=; b=jlFoH77ChZsxxILHou9LH2joFVpkUjZZlxwhZAP5yvUEAaDNubvNL09hVzzIbmCC36 6fFgZodt/KlZ2N0FwbDAuvnk1Dov5Ew0VfY6g19MtNq8EczUqVL8SEoMVEQk++JKwU6J d1iG0HoQRJoniUogltFxRlWdSAWCMhmeDEAjk7lWEoru/53bCf0W4qcGIg4cp6My7nFQ 1jd4wx2lp0UrzLzsIRsMIKQJPvqZ0/iKA/YEMEHZ5nr1lsu39pong73ifY3iJqUpQ9G5 pQ3aY2X8XmI7qKScljeQZCzaXz+aZWIumYkWjdN/9S0MozBCAM3bCTESFa7PkpOd1se3 MK7Q== X-Gm-Message-State: APjAAAWZ+UD/JCU1MEQRBoP9ZKZmPsOxgqRj4QhY3VNqO5wr4IQ+Pu2r XHYAebo5AART6b0mrOyNvDJU7MN20Do= X-Received: by 2002:a19:7609:: with SMTP id c9mr10188686lff.91.1567878353645; Sat, 07 Sep 2019 10:45:53 -0700 (PDT) Received: from mail-lj1-f171.google.com (mail-lj1-f171.google.com. [209.85.208.171]) by smtp.gmail.com with ESMTPSA id f22sm1824470lfk.56.2019.09.07.10.45.51 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 07 Sep 2019 10:45:52 -0700 (PDT) Received: by mail-lj1-f171.google.com with SMTP id e17so8856107ljf.13 for ; Sat, 07 Sep 2019 10:45:51 -0700 (PDT) X-Received: by 2002:a2e:8645:: with SMTP id i5mr9691835ljj.165.1567878349245; Sat, 07 Sep 2019 10:45:49 -0700 (PDT) MIME-Version: 1.0 References: <20190904201933.10736-1-cyphar@cyphar.com> <20190904201933.10736-12-cyphar@cyphar.com> <7236f382d72130f2afbbe8940e72cc67e5c6dce0.camel@kernel.org> In-Reply-To: From: Linus Torvalds Date: Sat, 7 Sep 2019 10:45:33 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v12 11/12] open: openat2(2) syscall To: Andy Lutomirski Cc: Jeff Layton , Aleksa Sarai , Al Viro , "J. Bruce Fields" , Arnd Bergmann , David Howells , Shuah Khan , Shuah Khan , Ingo Molnar , Peter Zijlstra , Christian Brauner , Eric Biederman , Andy Lutomirski , Andrew Morton , Alexei Starovoitov , Kees Cook , Jann Horn , Tycho Andersen , David Drysdale , Chanho Min , Oleg Nesterov , Rasmus Villemoes , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Aleksa Sarai , Linux Containers , alpha , Linux API , linux-arch , Linux ARM , linux-fsdevel , linux-ia64@vger.kernel.org, Linux List Kernel Mailing , "open list:KERNEL SELFTEST FRAMEWORK" , linux-m68k , linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-s390 , Linux-sh list , linux-xtensa@linux-xtensa.org, sparclinux@vger.kernel.org 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 Sat, Sep 7, 2019 at 10:42 AM Andy Lutomirski wrote: > > Linus, you rejected resolveat() because you wanted a *nice* API No. I rejected resoveat() because it was a completely broken garbage API that couldn't do even basic stuff right (like O_CREAT). We have a ton of flag space in the new openat2() model, we might as well leave the old flags alone that people are (a) used to and (b) we have code to support _anyway_. Making up a new flag namespace is only going to cause us - and users - more work, and more confusion. For no actual advantage. It's not going to be "cleaner". It's just going to be worse. Linus