Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1458445pxk; Thu, 10 Sep 2020 16:20:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyqCDQhJGUkKBQp7JU/b1h1/fvS2JST0Ihtrd2b2ZTgHwJrqxiXxhXos+0UOB3+UFohO38a X-Received: by 2002:a50:d2d1:: with SMTP id q17mr11919246edg.167.1599780020830; Thu, 10 Sep 2020 16:20:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599780020; cv=none; d=google.com; s=arc-20160816; b=MHu9ELMQO/ZPWyKfcHfCaeVq2A0IHl9F6eDmooZCyFe9Q/AZh7SmiAxrCD3UmRWToB oLX/BUfODJDs8ivvb/qam9j42Yu7Uzc/Qv4+Z0xeuWsZe/P1Uc9W63OvEUFbw4yqX3d6 ClragKWWKp4as9huC9ACHZZw17ijAz8Jc1Xf7XOwD6nEHEOa8s5+HaTQuvNhUbos902p dukzSYNDa2jXXzG7Eirvi3Cf3AZieFg6SjuD4vvurQ/yBMSXplY22Xpxd/NKWzRbutcD I+/afEowPhhsIt1ltu3h6pE5gp9HL1ST5IYxkz/BJlLQagU/MUh2p3Mi+uf/8fiv7QEr pG6Q== 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=ahcfJWxMLLWCQWWMSaduDRixyqLU7R2VmWJmYScB+xI=; b=EF06QqaQKF4nARrO3KCl2X8J52iCvnwT+DwoluSkC1IMBegn0ysUT1xlNYbVLHQyms qXyMvh6by9tRyb8H5NAP77BLrv9dkuKitqupNEXpYLa3ufTMwF8snsQsNXvyX/rbhNFS LvbIk3CBemW7ojkqRB80mkiH5+HmUHaaHeH40kbvAj0JtIsvOw04KINWx5A9w5T97SHI Fg2n8jeTzn+HCUSE7juTpJtS9rCrNK2tcsMZMKHCERhq7B9w7hfIn1ikJJedSkNZ+BCv Y253BiCoD4B8gVfSsw2jfrGOcbh4X99UwHL7pcgyw7xHjYdFo99ZRMmfCdt2ZCBdk15d +E2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="e0bs/fLL"; 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 v26si72469ejr.748.2020.09.10.16.19.58; Thu, 10 Sep 2020 16:20:20 -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="e0bs/fLL"; 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 S1725747AbgIJXSP (ORCPT + 99 others); Thu, 10 Sep 2020 19:18:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725283AbgIJXSK (ORCPT ); Thu, 10 Sep 2020 19:18:10 -0400 Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D44AC061756 for ; Thu, 10 Sep 2020 16:18:10 -0700 (PDT) Received: by mail-pg1-x543.google.com with SMTP id s65so4125324pgb.0 for ; Thu, 10 Sep 2020 16:18:10 -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=ahcfJWxMLLWCQWWMSaduDRixyqLU7R2VmWJmYScB+xI=; b=e0bs/fLL5/nal1hkQQK8DqWL0oUik0NhYYhdIwGet7sKAsECUiTvD0lpGfKcU5pPSz UWGqg4d+81XpUEqJGRxPydRngpjoC+VeTS1Z01mtq0/4saWZosh7U4GKnJWYMXaqhvex MrsLwwKtAJrOwh/txFCgXVdSCsIGtRRcNzL4E= 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=ahcfJWxMLLWCQWWMSaduDRixyqLU7R2VmWJmYScB+xI=; b=DqVkL3yRWXQ9rfsAMG/wdUjuqi/L5T/sRGHJszEAPBABzixviVRhWISm/r7p3r+iyW QMcixN4KEASJ3d4YOExXIshF/yzk2AFr6DX9nYD7zWGRvX2WOmlTsnKIFVaEskcUF20r Ol8DMlAN3KIs/QbwsTyaeo6FNvdIqz2clB09Hrq0NufQOYtCCF4IUulJ/eKku84qQw5+ phP/V/0d6SKCXHFAfiKibyno6S6Zhlg10Mf/tcH8qw7TnaqkUr+aYEWbVD65JYkSWjfL DsOj+w7VIbVav+vl64OTAXME6c0ZxVzIb1SL8l5Qf85FIVu3KikbKtpAjWUGPhAlNHmp 2oOw== X-Gm-Message-State: AOAM530jBNFsO5RZuvSH78EBYEnYcl39IaviXFtIvxxZt1NMS3CTMgP6 Fwb7q6qQo31534tq2AHB20/tPw== X-Received: by 2002:aa7:8ec7:0:b029:13e:d13d:a080 with SMTP id b7-20020aa78ec70000b029013ed13da080mr7345919pfr.23.1599779890038; Thu, 10 Sep 2020 16:18:10 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id 17sm166428pfi.55.2020.09.10.16.18.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Sep 2020 16:18:09 -0700 (PDT) Date: Thu, 10 Sep 2020 16:18:08 -0700 From: Kees Cook To: kernel-hardening@lists.openwall.com Cc: John Wood , Matthew Wilcox , Jonathan Corbet , Alexander Viro , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Luis Chamberlain , Iurii Zaikin , James Morris , "Serge E. Hallyn" , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-security-module@vger.kernel.org Subject: Re: [RFC PATCH 1/6] security/fbfam: Add a Kconfig to enable the fbfam feature Message-ID: <202009101615.8566BA3967@keescook> References: <20200910202107.3799376-1-keescook@chromium.org> <20200910202107.3799376-2-keescook@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200910202107.3799376-2-keescook@chromium.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 10, 2020 at 01:21:02PM -0700, Kees Cook wrote: > From: John Wood > > Add a menu entry under "Security options" to enable the "Fork brute > force attack mitigation" feature. > > Signed-off-by: John Wood > --- > security/Kconfig | 1 + > security/fbfam/Kconfig | 10 ++++++++++ > 2 files changed, 11 insertions(+) > create mode 100644 security/fbfam/Kconfig > > diff --git a/security/Kconfig b/security/Kconfig > index 7561f6f99f1d..00a90e25b8d5 100644 > --- a/security/Kconfig > +++ b/security/Kconfig > @@ -290,6 +290,7 @@ config LSM > If unsure, leave this as the default. > > source "security/Kconfig.hardening" > +source "security/fbfam/Kconfig" Given the layout you've chosen and the interface you've got, I think this should just be treated like a regular LSM. > > endmenu > > diff --git a/security/fbfam/Kconfig b/security/fbfam/Kconfig > new file mode 100644 > index 000000000000..bbe7f6aad369 > --- /dev/null > +++ b/security/fbfam/Kconfig > @@ -0,0 +1,10 @@ > +# SPDX-License-Identifier: GPL-2.0 > +config FBFAM To jump on the bikeshed: how about just calling this FORK_BRUTE_FORCE_DETECTION or FORK_BRUTE, and the directory could be "brute", etc. "fbfam" doesn't tell anyone anything. -- Kees Cook