Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp998227ybm; Wed, 22 May 2019 15:30:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqwviPkFQ2FvjuLSFJ5oyxTAXoWyjYYiteL+bUpcbSCv39OQhAkEU1ldNOGlDj0stilWSBeK X-Received: by 2002:a62:1692:: with SMTP id 140mr76120327pfw.166.1558564206600; Wed, 22 May 2019 15:30:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558564206; cv=none; d=google.com; s=arc-20160816; b=NnecPr666WChqAjPcw5X48ctU//cPW9LGWUfHpZQgJKGT1bQ6CCrWt+1BjAdiMjpy4 dQ00EdqQc7hPLXidj8fRWxQYyHTEvfsr2Ik/IYe9/5FObeMWz8ZG1tyRczQldkhiAB42 Ujt6DoSsZGEUWJLsRN7oEYhXxRYfthYdOre0fYaHULQfB5Gp1Q9VTJ2gAolQUg7q7Hpj qP526+OLpDgSQ3Co9qJLWtMtZ6WMnsw9IInKNibXxD1f/IIrCrsyQq4dHUvC+o4JgOIh KvQqY2CDwyZTNSD5FTS1GREw/zPKWIwRcAwHJU2OlkCw746DbEfM4Ni5k5HzCwX/jMM1 Hepw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:cc:to:from :subject:organization; bh=vUwSLe71mLpF4erN86OpY+hxMjHIwkCSMTPO9FG9kvs=; b=YBO48Eib+sF2EPxPfSgoYB3Zxioi6H2vOqTstw5+iktB/rEJChkgCwiwJSbeyefsEW RsbpeVhwHjWjlESJzfC6YA4L5z2crcix2Y0qkKphEXWNTkcrugTf2jijh3eCvMgtelUa TWT+WKLguFzE2qAuaFfdKkCgDXdu6aNiCd+es5A+R0aJwqvlWIcypQmPG+Z+OxkXjIck gFr3xsrEFZHRpwc6gfd3dzPEp4zCXM0s3oL+5ES/o8z0p4zQg2iongh8F/80zhCcXgic 2mI0Qsb88/uvvvtEHLd/eEGpKfTyN4ZhpULwVc/xXEEICNxVrYHKyEMGfSGEbBfE/d9s jX5A== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j23si27475084pgg.541.2019.05.22.15.29.51; Wed, 22 May 2019 15:30:06 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729328AbfEVW21 (ORCPT + 99 others); Wed, 22 May 2019 18:28:27 -0400 Received: from mx1.redhat.com ([209.132.183.28]:50912 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726781AbfEVW20 (ORCPT ); Wed, 22 May 2019 18:28:26 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 350DD30001DD; Wed, 22 May 2019 22:28:26 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-121-142.rdu2.redhat.com [10.10.121.142]) by smtp.corp.redhat.com (Postfix) with ESMTP id 616A2544EF; Wed, 22 May 2019 22:28:25 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 Subject: [PATCH 3/7] keys: sparse: Fix kdoc mismatches From: David Howells To: keyrings@vger.kernel.org Cc: dhowells@redhat.com, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org Date: Wed, 22 May 2019 23:28:23 +0100 Message-ID: <155856410370.10428.4854212353631906601.stgit@warthog.procyon.org.uk> In-Reply-To: <155856408314.10428.17035328117829912815.stgit@warthog.procyon.org.uk> References: <155856408314.10428.17035328117829912815.stgit@warthog.procyon.org.uk> User-Agent: StGit/unknown-version MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.49]); Wed, 22 May 2019 22:28:26 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix some kdoc argument description mismatches reported by sparse and give keyring_restrict() a description. Signed-off-by: David Howells cc: Mat Martineau --- security/keys/keyring.c | 10 +++++++--- security/keys/request_key.c | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/security/keys/keyring.c b/security/keys/keyring.c index e14f09e3a4b0..5b218b270598 100644 --- a/security/keys/keyring.c +++ b/security/keys/keyring.c @@ -520,7 +520,7 @@ EXPORT_SYMBOL(keyring_alloc); * @keyring: The keyring being added to. * @type: The type of key being added. * @payload: The payload of the key intended to be added. - * @data: Additional data for evaluating restriction. + * @restriction_key: Keys providing additional data for evaluating restriction. * * Reject the addition of any links to a keyring. It can be overridden by * passing KEY_ALLOC_BYPASS_RESTRICTION to key_instantiate_and_link() when @@ -976,9 +976,13 @@ static bool keyring_detect_restriction_cycle(const struct key *dest_keyring, /** * keyring_restrict - Look up and apply a restriction to a keyring - * - * @keyring: The keyring to be restricted + * @keyring_ref: The keyring to be restricted + * @type: The key type that will provide the restriction checker. * @restriction: The restriction options to apply to the keyring + * + * Look up a keyring and apply a restriction to it. The restriction is managed + * by the specific key type, but can be configured by the options specified in + * the restriction string. */ int keyring_restrict(key_ref_t keyring_ref, const char *type, const char *restriction) diff --git a/security/keys/request_key.c b/security/keys/request_key.c index 75d87f9e0f49..1f234b019437 100644 --- a/security/keys/request_key.c +++ b/security/keys/request_key.c @@ -24,7 +24,7 @@ /** * complete_request_key - Complete the construction of a key. - * @auth_key: The authorisation key. + * @authkey: The authorisation key. * @error: The success or failute of the construction. * * Complete the attempt to construct a key. The key will be negated