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=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS 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 55785C43462 for ; Thu, 22 Apr 2021 19:12:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2173B61435 for ; Thu, 22 Apr 2021 19:12:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236952AbhDVTNS (ORCPT ); Thu, 22 Apr 2021 15:13:18 -0400 Received: from namei.org ([65.99.196.166]:49432 "EHLO mail.namei.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236058AbhDVTNQ (ORCPT ); Thu, 22 Apr 2021 15:13:16 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.namei.org (Postfix) with ESMTPS id 15803508; Thu, 22 Apr 2021 19:08:47 +0000 (UTC) Date: Fri, 23 Apr 2021 05:08:46 +1000 (AEST) From: James Morris To: =?ISO-8859-15?Q?Micka=EBl_Sala=FCn?= cc: Jann Horn , Kees Cook , "Serge E . Hallyn" , Al Viro , Andy Lutomirski , Anton Ivanov , Arnd Bergmann , Casey Schaufler , David Howells , Jeff Dike , Jonathan Corbet , Michael Kerrisk , Richard Weinberger , Shuah Khan , Vincent Dagonneau , kernel-hardening@lists.openwall.com, linux-api@vger.kernel.org, linux-arch@vger.kernel.org, linux-doc@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-security-module@vger.kernel.org, x86@kernel.org, =?ISO-8859-15?Q?Micka=EBl_Sala=FCn?= Subject: Re: [PATCH v34 08/13] landlock: Add syscall implementations In-Reply-To: <20210422154123.13086-9-mic@digikod.net> Message-ID: References: <20210422154123.13086-1-mic@digikod.net> <20210422154123.13086-9-mic@digikod.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="1665246916-299225943-1619118527=:394812" Precedence: bulk List-ID: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --1665246916-299225943-1619118527=:394812 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT On Thu, 22 Apr 2021, Mickaël Salaün wrote: > + > + /* No flag for now. */ > + if (flags) > + return -EINVAL; Good, returning an error here instead of ignoring it is the right approach, so apps don't start using this and then break later. -- James Morris --1665246916-299225943-1619118527=:394812--