Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp954535pxx; Thu, 29 Oct 2020 20:06:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyVUWhdkNPaYhGkpjXmyVZooVxLvGheyXOh/91lrDsfUW3GdQHQxiwOlu3hM28Da6arIbEC X-Received: by 2002:a17:906:6a8b:: with SMTP id p11mr451649ejr.470.1604027210226; Thu, 29 Oct 2020 20:06:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604027210; cv=none; d=google.com; s=arc-20160816; b=iGNEG2rRi0fPEZLWdj+8fSBbtMB1e5w4VFWWSf/ourAGzgcClUDIRV7I6xQsEcEnV7 Q09jrXmyKLWX5vpxXztQAfxzo2kTdkTE7FlEujjWVnI8ZQkA69scczpwLEhI6z/A08LP 5OE5lmkbhfnMUnYsYzdRqSXaDBX17DTnbhiryrybTg55JMcMES/hGnIcJKJEhEQys3TB Atjq4zbxJQ1nMDS8ez45AH5r4kBiid7eFmuI3LCF2XKY91bYCnaUiYA+nQh/CS5z5nEy w8G2bF773a1OcRj8DhTUQjFWCwaKHUO5lVLDO5VHd936Tg4huKYwZJoN89SEJ7z4OXHa tIPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=qetmnWNVsQksjakl8dXjUkaIoxiVzA6keFiGM2ap5AY=; b=HJQXjDSvaYws2lSmCntcarXUQvzKXB1gw9fobhNfGb/5DrhlcLNqUfCxNysIVQoqO9 hS+ZZ2U5QO2nhuAsT/FDRTPri9PUMYHCXL9n7Sb7dbM49KgmrUPqhzIOjO2WteoJiAKa ycM0rFlw35uk5PSBpsTsdiP/tbcT7Rt8gijfJ2nwdVSnj629f7RXWsew9v4uCOa+/C84 +p5QhxzzROzLoJevJCLphMWv/TGFk2PCqqhznH0dGDHhb8WKT913/7YEKW+JuCo9kg+T rfd3CF93CI20Pd8AQsoSMlphjP8OStX2NNrKYhIAXrKnAEyJUhHPLGpGIpC8lXWh/43I 4E3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=AybJN8x6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y22si3410620edr.151.2020.10.29.20.06.26; Thu, 29 Oct 2020 20:06:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=AybJN8x6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726309AbgJ3DDH (ORCPT + 99 others); Thu, 29 Oct 2020 23:03:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41292 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726163AbgJ3DDG (ORCPT ); Thu, 29 Oct 2020 23:03:06 -0400 Received: from mail-lf1-x141.google.com (mail-lf1-x141.google.com [IPv6:2a00:1450:4864:20::141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C476FC0613D5 for ; Thu, 29 Oct 2020 20:03:05 -0700 (PDT) Received: by mail-lf1-x141.google.com with SMTP id 141so5998932lfn.5 for ; Thu, 29 Oct 2020 20:03:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=qetmnWNVsQksjakl8dXjUkaIoxiVzA6keFiGM2ap5AY=; b=AybJN8x6VEeLGCBEBx81sKm96EvpYJ8EOMN+ehVaa6kd1osmMtolGYpNiB+P0jXeBh JKcVuff4V9jHq7LjenAGN4DP3DoekAwTcbRvi61IrciA2+MhWuRptX/cfrMWp2rh9BUL WfSbatM3Au8j1fzzyV3HW0euf/Cis4dc9BCinMZ0G63d+e5Ck9hSrP0cmSaexwCaLIK9 WfxfJxdjfpqlNROWMWoWk7G1JjCULiMI0/IvyTkN/Ok5//vRUceaGL6seL1jFZ9UpPZ/ 9JxTapyOGkoyBE2PhKDWHY3u4CBkCKKhDihE7xCjbPZeuq44+LhTw7iHPhvtRuHFZqre rTQQ== 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:content-transfer-encoding; bh=qetmnWNVsQksjakl8dXjUkaIoxiVzA6keFiGM2ap5AY=; b=YdJpofAiXXm7F9K3gJNUc9CWgacf5gLSM531PGCMc26zl+uuA0/VU5KIQGECQ0Shqe praPIEqOIOpufakRzwf8UxUevO3IwD3JKRwQiRt5MCyfZ+AilZhNJN2Hi1kEZWvIV6Gn 6g5ao7Cbiz8n9qGb8f7Dv3pZ9Umj2lph/Xo7T/XgsBkHnMxGplJatP0JEd/VpGW+6wyv eh4AXpS1nAcXZx0952h1hnu6tVlUmMoXyAgmkFcW8DPvr/AQXl9VnhX8nR+RB4gmfXud 2sNUBFuM1WqEzZzYBbO/DOJI3oBEfzk94LO/z0z4wxBr6hfBv+YFwFfFthw+rAfGBzGf Hebg== X-Gm-Message-State: AOAM532jZLa3bZ8HKvB4P7Xc5EJ0IZVEuW0h2v/IwpQcnMTuy101hPyS KppaJT9+ILHLMoMtriPs2asHG/MKbslAqJjMUKT94w== X-Received: by 2002:a19:c357:: with SMTP id t84mr39422lff.34.1604026983869; Thu, 29 Oct 2020 20:03:03 -0700 (PDT) MIME-Version: 1.0 References: <20201027200358.557003-1-mic@digikod.net> <20201027200358.557003-2-mic@digikod.net> In-Reply-To: From: Jann Horn Date: Fri, 30 Oct 2020 04:02:37 +0100 Message-ID: Subject: Re: [PATCH v22 01/12] landlock: Add object management To: =?UTF-8?B?TWlja2HDq2wgU2FsYcO8bg==?= Cc: James Morris , "Serge E . Hallyn" , Al Viro , Andy Lutomirski , Anton Ivanov , Arnd Bergmann , Casey Schaufler , Jeff Dike , Jonathan Corbet , Kees Cook , Michael Kerrisk , Richard Weinberger , Shuah Khan , Vincent Dagonneau , Kernel Hardening , Linux API , linux-arch , "open list:DOCUMENTATION" , linux-fsdevel , kernel list , "open list:KERNEL SELFTEST FRAMEWORK" , linux-security-module , "the arch/x86 maintainers" , =?UTF-8?B?TWlja2HDq2wgU2FsYcO8bg==?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 29, 2020 at 10:30 AM Micka=C3=ABl Sala=C3=BCn = wrote: > On 29/10/2020 02:05, Jann Horn wrote: > > On Tue, Oct 27, 2020 at 9:04 PM Micka=C3=ABl Sala=C3=BCn wrote: > >> A Landlock object enables to identify a kernel object (e.g. an inode). > >> A Landlock rule is a set of access rights allowed on an object. Rules > >> are grouped in rulesets that may be tied to a set of processes (i.e. > >> subjects) to enforce a scoped access-control (i.e. a domain). [...] > >> diff --git a/security/landlock/object.c b/security/landlock/object.c > > [...] > >> +void landlock_put_object(struct landlock_object *const object) > >> +{ > >> + /* > >> + * The call to @object->underops->release(object) might sleep = e.g., > > > > s/ e.g.,/, e.g./ > > I indeed prefer the comma preceding the "e.g.", but it seems that there > is a difference between UK english and US english: > https://english.stackexchange.com/questions/16172/should-i-always-use-a-c= omma-after-e-g-or-i-e > Looking at the kernel documentation makes it clear: > $ git grep -F 'e.g. ' | wc -l > 1179 > $ git grep -F 'e.g., ' | wc -l > 160 > > I'll apply your fix in the whole patch series. Ooh, sorry. I didn't realize that that's valid in UK English...