Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp760953ybt; Mon, 6 Jul 2020 22:57:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/DFdb68TPFPppOATUDzAPI6Ka5QRFpA3pRyxlaL09+0eGtfClHnY1KH6kgB+9k7M724Pa X-Received: by 2002:a17:906:511:: with SMTP id j17mr43946523eja.434.1594101457324; Mon, 06 Jul 2020 22:57:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594101457; cv=none; d=google.com; s=arc-20160816; b=0Hd3VoFqw85bmzEMoswzF0jjwFKmPdOdB9B88lYMdyV6XaQDaIVQxaEfNLskUr0w8R eM6qb7PGl/v/BrPs9CPmSLSlrhtXiYzyJwvXhzgEVNB0OOx0RlHOoD4aAwggTPhWcGnv qIV0zoD3L9Z5k0ThH6kJNHP8lOZIoZrdAXQR6HVSiTi2kNIn2QihZy7pu3Iqv596w6DP zUXLBgJeKX0YMOu0UkLOlWdtwgvUNsuqUCI84bgY9NV/jYDIENEVhtAk/dXkdThhzijp objaEJkJ4W1bHHvw70DdMCJ62OQoxLJ4sfl6PMTitwP0TaqrNHEDdIGRcE4W2EtdgAVs gMCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=ZbV4l21xdzW71xXZzlMAZD+NRBjos3envDGwppLzulM=; b=i5S1aMULjte0dQaleb7r32VJEuqhdHmliWLSUxW0f4XsYwPl3F9FYnQou0ZMwnQ6E2 yyr+vfULyJRKfkAi6cJqEzNAYoV772ahzQNhY/kevIWhaTL8WN1jcnE2gEkUPRhHE7AV vFWsHi+oN1mbFFAoQffe5uZN8I6BrG4F9x7wl/xe3scBZj8isZUP6dGFiju+YLf33IK7 A+XKu5YvcUYgcX/NW92nU6+8MXIMHzlKy9z9rR0yhZKYJz0oh47bey97XwYH1aqBWNpz kMKLmKj3wshbz84HoWQKmkJj4bE2GalNJFXUh9hy95AcpdnRHjVkkiZqYY5fkptjh218 JV2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=NfXW8gw1; 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=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w9si14967409edr.171.2020.07.06.22.57.13; Mon, 06 Jul 2020 22:57:37 -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=@chromium.org header.s=google header.b=NfXW8gw1; 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=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728066AbgGGF4U (ORCPT + 99 others); Tue, 7 Jul 2020 01:56:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727827AbgGGF4U (ORCPT ); Tue, 7 Jul 2020 01:56:20 -0400 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09A01C061755 for ; Mon, 6 Jul 2020 22:56:20 -0700 (PDT) Received: by mail-pg1-x541.google.com with SMTP id d194so16120874pga.13 for ; Mon, 06 Jul 2020 22:56:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=ZbV4l21xdzW71xXZzlMAZD+NRBjos3envDGwppLzulM=; b=NfXW8gw1ujyflsQLwzIJUJl6yv/6tCYaWdIMXKgCTt4z3Ww0mFNBeIgOPWXnJj2bT6 lv1hrqRXfKZADzlSMJTcecsBSJnaZ8lAlqmmL9nFCKuUyP2jIIRFMK2t3hUUbLKt6Xa3 4z6GvTlG1zXHnw88+cl0MNX0328JZYODTKYZk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=ZbV4l21xdzW71xXZzlMAZD+NRBjos3envDGwppLzulM=; b=ksfRTghjpB7MsHg6OExCSHM2sfu4CJ9jY8MGKawFiE1RxgpvhSCLShxadaPzLEohAm ZpYyGOuX+fxAuY7WcOmzaf8Tt4RHS+8kKiUttk4zo+o56PGbfRGxv6H49f1lFjMLtyDb khJLiJBn44Eo+n8Qd/erNThPrVDRekWiFsl1HnI9sWglf9kl8rVjbyO82qqGgslFQF9J QayKwSfy4meIUpjNO8YPm54XIda9HJL+ogyPIiTCfDIMOAgtjxv6xi7dmFHRtWGiWzKJ pljg4yXpSwRUKCesCRkoEBVTY+hycFpUF8vxWhualquvA1c9o8R9GDSH7oBN/Rd3bVQW 9TJg== X-Gm-Message-State: AOAM533u6cnOFUjJtHM/n+F4DryAO9B3hTkHm3ePeob+4ddL4nC41Yum DIN2/z2L2BDubTvxV2rzn8MRlJnD3kM= X-Received: by 2002:aa7:860f:: with SMTP id p15mr11390619pfn.59.1594101379542; Mon, 06 Jul 2020 22:56:19 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id y27sm21531713pgc.56.2020.07.06.22.56.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jul 2020 22:56:18 -0700 (PDT) Date: Mon, 6 Jul 2020 22:56:17 -0700 From: Kees Cook To: Andy Lutomirski Cc: Dan Williams , Linus Torvalds , ksummit , Greg Kroah-Hartman , LKML , tech-board-discuss@lists.linuxfoundation.org, Chris Mason Subject: Re: [Ksummit-discuss] [PATCH] CodingStyle: Inclusive Terminology Message-ID: <202007062234.A90F922DF@keescook> References: <159389297140.2210796.13590142254668787525.stgit@dwillia2-desk3.amr.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 06, 2020 at 09:29:46AM -0700, Andy Lutomirski wrote: > Is most contexts where 'whitelist' or 'blacklist' might be used, a > descriptive phrase could be used instead. For example, a seccomp > filter could have a 'list of allowed syscalls' or a 'list of > disallowed syscalls', and just lists could be the 'allowed' or > 'accepted' lists and the 'disallowed', 'rejected', or 'blocked' lists. > If a single word replacement for 'whitelist' or 'blacklist' is needed, > 'allowlist', 'blocklist', or 'denylist' could be used. Yup. See: https://lore.kernel.org/lkml/202007041703.51F4059CA@keescook/ specifically the terminology for seccomp is already "allow-list" and "deny-list": https://github.com/mkerrisk/man-pages/commit/462ce23d491904a0b46252dc97c8cb42391c093e (last year) https://github.com/seccomp/libseccomp/commit/0e762521d604612bb4dca8867d4a428a5e6cae54 (last month) > Second, I realize that I grew up thinking that 'whitelist' and > 'blacklist' are the common terms for lists of things to be accepted > and rejected and that this biases my perception of what sounds good, > but writing a seccomp "denylist" or "blocklist" doesn't seem to roll > off the tongue. Perhaps this language would be better: I have struggled with this as well. The parts of speech change, and my grammar senses go weird. whitelist = adjective noun. allow-list = verb noun. verbing the adj/noun combo feels okay, but verbing a verb/noun is weird. And just using "allowed" and "denied" doesn't impart whether it refers to a _single_ instance or a _list_ of instances. But that's all fine. The change is easy to do and is more descriptive even if I can't find terms that don't collide with my internal grammar checker. ;) -- Kees Cook