Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp3325820ima; Tue, 23 Oct 2018 04:15:23 -0700 (PDT) X-Google-Smtp-Source: ACcGV60LlC6Kr9pDNSpMBqrQvKYeKrUqVbA+r1ZqrOQztiKx6Sz0l7wD35CivbNisw48dSBJoELi X-Received: by 2002:a65:52c1:: with SMTP id z1-v6mr45795550pgp.65.1540293323134; Tue, 23 Oct 2018 04:15:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540293323; cv=none; d=google.com; s=arc-20160816; b=r7LgNn7uUK4l10dcMPj9QdB4bUShtukigStFO1B7wPBw2H6NyOrT3/7idvk9s1tIlr vGVnRaK0DdkX0BEhbf4NbeSDS/0ZMHzKWvBxKRQycjIaS/FBVOO/ef3o3fWN6sLhHNqJ re2ZSaIe8sudqsVThwK5m9L8xLuEZ86L4PAVFj5Fnx0JBURt6iyWLOBIgkTOrMc9bPX4 GqIF1POt2cFN2SdUaRNfOzyLbBsXvWnNZUixDNYFtpKepDAwD5EDd2CNkVL3kSBhu1WF 5OdUEqmeGXnsaw0u9tlknZ73IIMNC2+G4E34Pic8TG8WfsQfibyMvSb8n8OBR86c3PGB p4ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=ER9L03kjqZTsjytxhz/GCLIvb20Sr9rRBPoribawJt0=; b=NUXqAVi1YAYuKSB0a+2zDX5LVoO2qBopTq/tEWX2we/bqzkmnP4nBDdXECxcdJYG6Q CGH0/1k77VB6VngNvZgIKcLHOxnEGOz3yS8sO0x5AQHYva3xyq0ZfXNnXZyRnsIA9Rbr wmiMGNxvM6FF8SurBEImaUHfq2AesSU5c23Rksclrrg7cLYkSkfnP4Fj8hKK/+FclSix /UQxBTBio2idDry4mrALtfptbu4vfwvTMW0dCq2z1h22PWmta02fJ0uBuoQJASpi3uCi T8cNcNEARHpgWRXoDuMTFIfN4WV5Kbw86yv6b8Zf8VHNdX8WuxQvL9ZzFi1JZW8EvBM7 xaOg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v23-v6si969433plo.182.2018.10.23.04.15.07; Tue, 23 Oct 2018 04:15:23 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728053AbeJWTgT (ORCPT + 99 others); Tue, 23 Oct 2018 15:36:19 -0400 Received: from mail-ed1-f65.google.com ([209.85.208.65]:37567 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726953AbeJWTgT (ORCPT ); Tue, 23 Oct 2018 15:36:19 -0400 Received: by mail-ed1-f65.google.com with SMTP id c15-v6so1219832eds.4 for ; Tue, 23 Oct 2018 04:13:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=ER9L03kjqZTsjytxhz/GCLIvb20Sr9rRBPoribawJt0=; b=q4hmW1teFI2ce6feRgPShbatdWDs5u4r5U7FLCCBS3662opzyaD7ATKffgRUlX3ZCL wtmzTWmsCRhCwkL0oeDdnOQzkiS+s4MLF/zQRDNoD13veFj7e/1eZTgnnjrtpzTZo9MN kua5C8YXumFmW1MER8uSfbS8FnyzKhHTZdn+THalNuM4JKmlpgFL5yvRaaWPmtwj6nXA ZXPOn50yYBBzoruXuhU4nfq8jKDovboAY29Yd5Mtp2eXjmVt55WJTrPZcrjM80Meh87P 8oMDw8qnZf1VQZ3e3kO8HM2faXXsSOwUyPJlMetRuHXUWd39K6cArEcXQCXC2YLFwMs+ yTeA== X-Gm-Message-State: AGRZ1gLLkHiivsIONHvYUFgCiAMLhEz/O29URzjcgoONN7bOjEioclL6 9UrwYAVuHudUCgBdbqD21tA= X-Received: by 2002:a50:ad4a:: with SMTP id z10-v6mr584664edc.252.1540293198432; Tue, 23 Oct 2018 04:13:18 -0700 (PDT) Received: from green.intra.ispras.ru (bran.ispras.ru. [83.149.199.196]) by smtp.googlemail.com with ESMTPSA id e10-v6sm290590ejl.25.2018.10.23.04.13.17 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 23 Oct 2018 04:13:17 -0700 (PDT) From: efremov@linux.com To: KOSAKI Motohiro Cc: Denis Efremov , James Morris , "Serge E. Hallyn" , Eric Paris , Paul Moore , Kees Cook , John Johansen , linux-kernel@vger.kernel.org Subject: [PATCH] security: fix documentation for the task_setscheduler hook Date: Tue, 23 Oct 2018 14:12:55 +0300 Message-Id: <20181023111255.30446-1-efremov@linux.com> X-Mailer: git-send-email 2.17.2 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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