Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp3674101ybe; Sun, 8 Sep 2019 19:26:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqyYRbU/9R2otka34gIME8+bm+rwDPyaYKruOar06viIxX70/QsJ/Gka6HIXtYMPxspeMehA X-Received: by 2002:a50:d096:: with SMTP id v22mr22221946edd.81.1567995977742; Sun, 08 Sep 2019 19:26:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567995977; cv=none; d=google.com; s=arc-20160816; b=nuJZET8uFNqAZlkO8NmuFo5IJmz4KnLaOxvxV3JG8fQZUmVLz/MqWodLydDRwVPMND vJgw+kk5FkWwdpeZLOr+NipB8hqBuWudHiPCHeM3b/uVA1tL7s2CYhgIuk8mVLakpN8N 5oMfM+dy+3IjIcsYlgDpSrRRkTh8qH4AGtBClfuHXSqe7u5wv230oy30TaMqsEkV2FjB cjhBy/lJYAu8shfAGI3v93IBg0hQr27bziH5MdJ4Szy+O6tWxZqumEXYYU8ZpmXMuYIv 2stU8FAH1RkyYM1lJVjr8cZu1XONMFyAT0hdUhBUtW2+OIpU5giejCCk2/7jFI2xMcMv xdHA== 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=VaxRwZcXIqBCeM77ijL8A1h5NduVbQyHYByckmz1gJk=; b=NkkG0cw5Y/Ge38TIXeDC/nyDHxYDXPT7L9Cp84obrsQXyQgzzYBwn/N+jUXNc9q66M m0Fk2XSdM/Zkfg9hLyXkrZm0Fn/qvgtBkasHsE6uDEVvB/vo5xgo7yl8XlEeBqIkj62l 12qoCvbPmxQ4e6Tk/dl6tDZTGcdb7VzmN2z/57Oxo6039p6lG4vISacgrEsk4UpknZPo 63FATl0V8+serYpA/L5DDyvB5/oWtCSRf+bUkdvr6iX3dkMvw+M/uiLbv7z0184ZMqWz 8nNdHzF066NyZDx+64FRuQjTQtXRfccR6jdDeqlZND4vBr/9S7pu8N/HhuW6oohIwTNW /1Hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=Ldlyq4Px; 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 b31si8804146ede.12.2019.09.08.19.25.54; Sun, 08 Sep 2019 19:26:17 -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=Ldlyq4Px; 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 S2395046AbfIGQ6p (ORCPT + 99 others); Sat, 7 Sep 2019 12:58:45 -0400 Received: from mail-lf1-f66.google.com ([209.85.167.66]:40928 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392087AbfIGQ6o (ORCPT ); Sat, 7 Sep 2019 12:58:44 -0400 Received: by mail-lf1-f66.google.com with SMTP id u29so7426042lfk.7 for ; Sat, 07 Sep 2019 09:58:43 -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=VaxRwZcXIqBCeM77ijL8A1h5NduVbQyHYByckmz1gJk=; b=Ldlyq4Px8HcWw652TFUFBz92WQlbW6hSwxMlCjQQ7ArJ4KZCkRlTmS1rpYbWoVnDTP m2fPZeqordNjkxzXe2jf1KmkqKcGf1nJr407YEJX5jdvDfinEa81A2+g7kiafJJQtJkb 2rcL8ecVWF8zjmoPoJgLSziuzeA0NFXkftsDk= 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=VaxRwZcXIqBCeM77ijL8A1h5NduVbQyHYByckmz1gJk=; b=kJ56XFnkosrSSITq/DyDgqOrRxIcRfNZVz9EoYQIftY19KaX7lbt2vFL6omKnbXdWx 7BzP9GKWWlYDQClm5QK0kFmuxmm+zqmk91EHLm3myJ48BJ8HuE7V36KQrxYSQOkqvCeR Lhg++QDE9t3acMC69IZUmT63UjcIu2mjbuCa0OY4aBizQC4JVEw+eUG3yvHmLGpY90Ex pK7NKqPocQNk5P0t7xRgBNHrIrZXvOtU14SQMhOAh4GZod2vvdsxV34FnhSf6YRzFh9K lNT5BwGFTLUA4ZG9BSWRVdHbpdQJW20S/VPTkM3mt2fHguLaGqw9VwIKz9i20YcSX9Gz YP3w== X-Gm-Message-State: APjAAAX/MTKLv0gfiB1HZm4E3ixMVAVzKK4QRtUarGG6KsV3rIwV9KSP x1RqADkgIBPM/yBBrg87qaylaZXVuvg= X-Received: by 2002:ac2:414b:: with SMTP id c11mr10127868lfi.159.1567875522546; Sat, 07 Sep 2019 09:58:42 -0700 (PDT) Received: from mail-lf1-f51.google.com (mail-lf1-f51.google.com. [209.85.167.51]) by smtp.gmail.com with ESMTPSA id u1sm1786531lfi.83.2019.09.07.09.58.40 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 07 Sep 2019 09:58:42 -0700 (PDT) Received: by mail-lf1-f51.google.com with SMTP id x80so7451871lff.3 for ; Sat, 07 Sep 2019 09:58:40 -0700 (PDT) X-Received: by 2002:a19:f204:: with SMTP id q4mr5583225lfh.29.1567875518853; Sat, 07 Sep 2019 09:58:38 -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: <7236f382d72130f2afbbe8940e72cc67e5c6dce0.camel@kernel.org> From: Linus Torvalds Date: Sat, 7 Sep 2019 09:58:23 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v12 11/12] open: openat2(2) syscall To: Jeff Layton Cc: 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 5:40 AM Jeff Layton wrote: > > After thinking about this a bit, I wonder if we might be better served > with a new set of OA2_* flags instead of repurposing the O_* flags? I'd hate to have yet _another_ set of translation functions, and another chance of people just getting it wrong either in user space or the kernel. So no. Let's not make another set of flags that has no sane way to have type-safety to avoid more confusion. The new flags that _only_ work with openat2() might be named with a prefix/suffix to mark that, but I'm not sure it's a huge deal. Linus