Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp3873814ima; Tue, 23 Oct 2018 12:42:04 -0700 (PDT) X-Google-Smtp-Source: ACcGV60vwFfO03Okry99dNtAnZKYEbCn6X+8lCYwod8z82bRNMBQSobzYw0XLgF+pbIiT+hzhNja X-Received: by 2002:a17:902:1026:: with SMTP id b35-v6mr50639252pla.283.1540323724171; Tue, 23 Oct 2018 12:42:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540323724; cv=none; d=google.com; s=arc-20160816; b=wEilrvgQbzqD6xCQkSggaVd1MfpAldIIjKrQYZEai61d/xDZdYJ2sGtD7rQgTjy/3u upLhr3hJXZMAbyC8HBJypi6KC3fQG6DAzX3ndTXCJOuCRWel1ahPz8vCeQHQFiVQejeB KUndKtHO4XyR5JumnnSWr2gprzTM8vtdPunIiuNM4TGlLZY8DFoS8r8GWYCv/sWy1+YD 0CNRCuDIU7Z4d92EDNC9qv7aaGRDq014KVUrwHxHhRjuu0BEY2SkLdluiCu1PBZYpXEl 5LCGGGCDgtdekGYlyZyajno/liMWcigoDy1KCZSSRYc19sSxaFR3F788EOSPCEZ6/daN 6qSg== 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 :references:in-reply-to:mime-version:dkim-signature; bh=Mx8zptrrAuodiF6MYRYxCurWvOr1GiSdSxtgIoqoHCE=; b=HFNoOAfFeHxySSaPSblGvIf4l2rkKk0cU4pxgd9wgtwp3YFF8sVWTEXmJX6JrzodlQ nEVrFYDTDUDNiz1NeYKUTXlrCBAmBoX1bgZv9k6j5zUYRqhzxC+S5Gre4h3CqhQDu+Qe +tHbJVEpefN2Hwp0Nna/zHRfDs8OU8sTg1vL0KDuLHOcSK5cZdjCmJgUOGZuSKAVOGfE n0v9sdQPywq2ZMdkAZVsGGtAgqasuQz9NFaUTRMDdpXdoU9/IEdjjh061jqZfgIQWjz+ S5Y8vhljx4XoCHeIUDWa26x9+g9yKiCb7zqHg0wyZE7PaXQZH7RrXPdS2yw8DTg447bL U8VA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=T6rfAWHq; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f32-v6si2098691pgf.203.2018.10.23.12.41.49; Tue, 23 Oct 2018 12:42:04 -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=@chromium.org header.s=google header.b=T6rfAWHq; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728871AbeJXDxK (ORCPT + 99 others); Tue, 23 Oct 2018 23:53:10 -0400 Received: from mail-yb1-f194.google.com ([209.85.219.194]:38401 "EHLO mail-yb1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727758AbeJXDxK (ORCPT ); Tue, 23 Oct 2018 23:53:10 -0400 Received: by mail-yb1-f194.google.com with SMTP id v92-v6so1068751ybi.5 for ; Tue, 23 Oct 2018 12:28:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Mx8zptrrAuodiF6MYRYxCurWvOr1GiSdSxtgIoqoHCE=; b=T6rfAWHqZ9Sdz8F8PzKdifB0zw9P/WMuO4YDO8UozJweiEn+rAQzlfPM8AajX2r+Yz VpunnynM3wUZR2kSyKauJKOx2a0grB4eAsjjvkFEbkng+edEatXNpARkTWQhhhfpOQZ0 SF1HVxct+ZLVjnR0dTyOLI+l2vaYVI46fPmLM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Mx8zptrrAuodiF6MYRYxCurWvOr1GiSdSxtgIoqoHCE=; b=AucjP3jea/xruI7k7vUzXdVDHfQB71ji17rmDMzgognq/0RCMioI3DQuXDMRn3dwn+ WOuAPp2PXR7tBz5x6jHKobocuEmDdaPRqrLCzpFFVUyljMkS8QdQe+pt7nX/Tqk0T6jI FIUFP04xvOPpJftygr9a/98UwTq3HA26dSapl2j1I4tHAiSL0CtV8zw/FSQjr5D9zd3A AJXkhDDdILIT3VU0vE3nk5IKJ6CuaT5BFXZ1HXwiUoC+SATdnRa/h52cR8rR0psgbHDA G9B3ZrdWIk16Yhcde4hiIl+KtjM2OqIBh9T8Pn0tZoCONndU0IpyHr/av3wK5TkGqJiW Dn7A== X-Gm-Message-State: AGRZ1gJA8v2yf9jNO9tj4jQNpenzZ/35bcKaQ1g+jbqiHzQ1ogkCH2uB W1egFBWRBNtCpgvn8Pnr4K9Ie4n2S7A= X-Received: by 2002:a25:ac22:: with SMTP id w34-v6mr2554630ybi.34.1540322904188; Tue, 23 Oct 2018 12:28:24 -0700 (PDT) Received: from mail-yw1-f44.google.com (mail-yw1-f44.google.com. [209.85.161.44]) by smtp.gmail.com with ESMTPSA id p7-v6sm1078676ywd.75.2018.10.23.12.28.22 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Oct 2018 12:28:23 -0700 (PDT) Received: by mail-yw1-f44.google.com with SMTP id t78-v6so1036804ywg.11 for ; Tue, 23 Oct 2018 12:28:22 -0700 (PDT) X-Received: by 2002:a81:9b83:: with SMTP id s125-v6mr36464148ywg.47.1540322902344; Tue, 23 Oct 2018 12:28:22 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a25:3990:0:0:0:0:0 with HTTP; Tue, 23 Oct 2018 12:28:21 -0700 (PDT) In-Reply-To: <20181023111255.30446-1-efremov@linux.com> References: <20181023111255.30446-1-efremov@linux.com> From: Kees Cook Date: Tue, 23 Oct 2018 12:28:21 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] security: fix documentation for the task_setscheduler hook To: efremov@linux.com Cc: KOSAKI Motohiro , James Morris , "Serge E. Hallyn" , Eric Paris , Paul Moore , John Johansen , LKML 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 Tue, Oct 23, 2018 at 4:12 AM, wrote: > From: Denis Efremov > > The task_setscheduler hook was changed in the commit > "security: remove unused parameter from security_task_setscheduler()" > (b0ae19811375). The arguments @policy, @lp were removed from the hook. > This patch updates the documentation accordingly. > > Signed-off-by: Denis Efremov Reviewed-by: Kees Cook -Kees > --- > include/linux/lsm_hooks.h | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/include/linux/lsm_hooks.h b/include/linux/lsm_hooks.h > index accf6f34ac8e..ae3766720264 100644 > --- a/include/linux/lsm_hooks.h > +++ b/include/linux/lsm_hooks.h > @@ -655,10 +655,8 @@ > * Return 0 if permission is granted. > * @task_setscheduler: > * Check permission before setting scheduling policy and/or parameters of > - * process @p based on @policy and @lp. > + * process @p. > * @p contains the task_struct for process. > - * @policy contains the scheduling policy. > - * @lp contains the scheduling parameters. > * Return 0 if permission is granted. > * @task_getscheduler: > * Check permission before obtaining scheduling information for process > -- > 2.17.2 > -- Kees Cook