Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp1030735img; Tue, 26 Feb 2019 12:53:04 -0800 (PST) X-Google-Smtp-Source: AHgI3Ian4UmSTF5KyE2AO7vaMGIFR4E29HjuvXvPFd6LcfA3cKNkZZT0XmjSVCcRkSGgWr2N6pSO X-Received: by 2002:a65:6544:: with SMTP id a4mr26341428pgw.412.1551214384311; Tue, 26 Feb 2019 12:53:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551214384; cv=none; d=google.com; s=arc-20160816; b=Kopf5dO1v4Xr3lO2l825FGI+PBiVTEEGsgmRSfQHS99q5rbSETjs9uXdL4BN35da0Y edy98WPQnrEYklWvrQuuHkVZrCeF6d5YWJWk//OAzlrQAqtjJucOXGRNv7z7iz98CLT+ Os4MVKVYzRwtf+8xirsFnpbW2V5y56FZ0EtxLHD2/CahC7hnt/14r1pDxjLpide7b+m8 ttQn0D1JhZNq0pupt9ZJlBgOMHmNAaLWrQnLqPIHfD7WuqDozwmKwVt3eaJbyn9jL1i0 haa++lN1Uw4kGjzP3lfJGxxzP+n7cg/qAxuRXqJo9l32eRleoJGedbuIQ5uaP6t+fbga gtTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from; bh=unUIXtvf8131klTMrN+lfr6+YE24QVqVEYhPrxv9WUo=; b=Ng72R9sKlJ2wQWlu8Ldx0bvP6RnGywdHW6xkYW9id5B11loDoQzJsXMQcI+Hawzwyb /7IbOF7XlDb0zZxrRwAI8PLEezSaUBvoPUa8kmSCt815eUGrDPkujIR6hBZnwkouxe82 7mbnyuMfDFifTVSE3GznTc1kyAsi4aXGzO+nO2x/5GtCBBIQfOtyVOjOItX3uIEkDmei ERRzldTUOG+D3paHj5A2mjG9jgJFCNreaqnm/caQn4VlbS0C8EJ5BHTXutzZRRBw2UmY lwFP1huRoi17P//rlJBdbvY5+3qqGz9T0P5xmTq5OOUCOlpM1Gh+ciQjya1YAkgvKAXq 9JCQ== 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 y5si12713450plk.150.2019.02.26.12.52.48; Tue, 26 Feb 2019 12:53:04 -0800 (PST) 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 S1729284AbfBZUvH (ORCPT + 99 others); Tue, 26 Feb 2019 15:51:07 -0500 Received: from mail.ispras.ru ([83.149.199.45]:45394 "EHLO mail.ispras.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729261AbfBZUvG (ORCPT ); Tue, 26 Feb 2019 15:51:06 -0500 Received: from green.intra.ispras.ru (pluton2.ispras.ru [83.149.199.44]) by mail.ispras.ru (Postfix) with ESMTPSA id 6FA0F5400DD; Tue, 26 Feb 2019 23:51:03 +0300 (MSK) From: Denis Efremov To: Casey Schaufler Cc: Denis Efremov , "Eric W. Biederman" , Eric Paris , Kees Cook , John Johansen , James Morris , "Serge E. Hallyn" , Paul Moore , Kentaro Takeda , linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 07/11] LSM: fix documentation for the audit_* hooks Date: Tue, 26 Feb 2019 23:49:08 +0300 Message-Id: X-Mailer: git-send-email 2.17.2 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch updates the documentation for the audit_* hooks to use the same arguments names as in the hook's declarations. Signed-off-by: Denis Efremov --- include/linux/lsm_hooks.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/linux/lsm_hooks.h b/include/linux/lsm_hooks.h index feedd03cbd59..1d60b07f30ab 100644 --- a/include/linux/lsm_hooks.h +++ b/include/linux/lsm_hooks.h @@ -1329,9 +1329,9 @@ * -EINVAL in case of an invalid rule. * * @audit_rule_known: - * Specifies whether given @rule contains any fields related to + * Specifies whether given @krule contains any fields related to * current LSM. - * @rule contains the audit rule of interest. + * @krule contains the audit rule of interest. * Return 1 in case of relation found, 0 otherwise. * * @audit_rule_match: @@ -1340,14 +1340,14 @@ * @secid contains the security id in question. * @field contains the field which relates to current LSM. * @op contains the operator that will be used for matching. - * @rule points to the audit rule that will be checked against. + * @lsmrule points to the audit rule that will be checked against. * @actx points to the audit context associated with the check. * Return 1 if secid matches the rule, 0 if it does not, -ERRNO on failure. * * @audit_rule_free: * Deallocate the LSM audit rule structure previously allocated by * audit_rule_init. - * @rule contains the allocated rule + * @lsmrule contains the allocated rule. * * @inode_invalidate_secctx: * Notify the security module that it must revalidate the security context -- 2.17.2