Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp3326752ima; Tue, 23 Oct 2018 04:16:12 -0700 (PDT) X-Google-Smtp-Source: ACcGV60TS6mQ9PtJubj9kh1T1VHbMhUOGwR4JoWqXxZsoFO5nVxM/P2xx6EHk4zwY5RqEKOAUpry X-Received: by 2002:a17:902:2867:: with SMTP id e94-v6mr35328656plb.317.1540293372934; Tue, 23 Oct 2018 04:16:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540293372; cv=none; d=google.com; s=arc-20160816; b=ain8Qp7kdK/klFihS74FxDhZnyUUroiiVlWWtbmjgjAOzsWruZ7JE6UiJmo/on7aUM JMZ7LJepHc4vFeIV+eNpX2EkjlKITixj6AbnG0+kinHh4gT8KAEWvUgl3L/6rw/TWMxN l+S4usejyIhUuj1bhhPr2xMvSpddxdco0CRyUX/Na76e3VruPtGYry3PETFpP7jLusmz FvGUrP9rv7dsRElYRkZ3IU2Y95G+C4kc+bNHr9IjBfhMOzS1ttMyDZ/350g7tmIn/Mwf kfo/tQzOxVJPlM0niVpghK1mY6gIYg0SKSSSTUwZ3U1Npg4LkASSTnXlwQO91eqhw13i YX9g== 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=kO/0D40r2wod5v3I6jD1fuRXjPfSQhJNJigkdYeWUl0=; b=WkQxp6uGXzEIJal6bBHwPF2mBzubVjQvhRLF3lEi0s2JrMuX8AzZkyTpkOYpqAPPN8 XWXLCHn0tVogQS6xIne00Sv+sItiau01BWvwxaGD5zSw09eqcdokA4swXgis+N3URlcP wXv4Qx7TXRKOmzPmnzeN16cXWx+5Tu+SSJw9IKHuGzn6+75vEaTI6VIZ37IzWpoFKL/V UAaIHn+hJkWsG67RnsrwIU1es2jh9g+IMp4/B+/caS7xHUwoEeBjOiSlAmbOHdwWX14Q mW8RwyYe4aGZD8+wrVmmQyBMRTva4BL3lP6jsIj38Nn4nP8gyNXcLyAFLw6iF3Q+QRWn aP/Q== 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 s1-v6si950691plr.141.2018.10.23.04.15.58; Tue, 23 Oct 2018 04:16:12 -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 S1728153AbeJWTiO (ORCPT + 99 others); Tue, 23 Oct 2018 15:38:14 -0400 Received: from mail-ed1-f66.google.com ([209.85.208.66]:39909 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726953AbeJWTiO (ORCPT ); Tue, 23 Oct 2018 15:38:14 -0400 Received: by mail-ed1-f66.google.com with SMTP id e5-v6so1216970eds.6 for ; Tue, 23 Oct 2018 04:15:13 -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=kO/0D40r2wod5v3I6jD1fuRXjPfSQhJNJigkdYeWUl0=; b=f9VYlW9BCpTvU05SIY9OrzXAvBp+qw8iFgL/Sr3kUx9AJvbyIBtpIAyIcfg2BggYMO veNWkhT0IbVquMWDlgJegwQI25iFBAgbnbY5/lVp/oqc8po0odj3uo2+E/bDvY+9ieL+ Ar2ErOtBO+T/Zljj4xSrPZuc9drMCb5712YjokWnj51vS35vDBGvUaJ1PoKAWjKsjy2w HgV1Tief2RivCfI93kavqXjVoL4l1cwajnaItdF8q2bOVEtk+a24Lsp34BnVj2assSg+ 4F3QUoAkqV0Ur8dRDCwUS/Oqe8B78b+yNzuvo5DUHFD0QG/PE4vgq9568ULhJz0203rM nk9w== X-Gm-Message-State: AGRZ1gIErnjkew9Ekf9jTdi3SMfOeuSeCcdYEWJqQJZkbueZUTtRG35v EXbpQvQqiLLwXFF3YD7Amww= X-Received: by 2002:a50:a3f6:: with SMTP id t51-v6mr645211edb.238.1540293312257; Tue, 23 Oct 2018 04:15:12 -0700 (PDT) Received: from green.intra.ispras.ru (bran.ispras.ru. [83.149.199.196]) by smtp.googlemail.com with ESMTPSA id l34-v6sm459177eda.54.2018.10.23.04.15.10 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 23 Oct 2018 04:15:11 -0700 (PDT) From: efremov@linux.com To: James Morris Cc: Denis Efremov , "Serge E. Hallyn" , Eric Paris , Paul Moore , Kees Cook , John Johansen , Catherine Zhang , linux-kernel@vger.kernel.org Subject: [PATCH] security: fix documentation for the socket_getpeersec_dgram hook Date: Tue, 23 Oct 2018 14:14:50 +0300 Message-Id: <20181023111450.31837-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 socket_getpeersec_dgram hook was changed in the commit "[AF_UNIX]: Kernel memory leak fix for af_unix datagram getpeersec patch" (dc49c1f94e34). The arguments @secdata and @seclen were changed to @sock and @secid. This patch updates the documentation accordingly. Signed-off-by: Denis Efremov --- include/linux/lsm_hooks.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/linux/lsm_hooks.h b/include/linux/lsm_hooks.h index ae3766720264..a598e601ccb3 100644 --- a/include/linux/lsm_hooks.h +++ b/include/linux/lsm_hooks.h @@ -861,9 +861,9 @@ * the IP_PASSSEC option via getsockopt. It can then retrieve the * security state returned by this hook for a packet via the SCM_SECURITY * ancillary message type. - * @skb is the skbuff for the packet being queried - * @secdata is a pointer to a buffer in which to copy the security data - * @seclen is the maximum length for @secdata + * @sock contains the socket structure. + * @skb is the skbuff for the packet being queried. + * @secid: pointer to where to put the secid of the packet. * Return 0 on success, error on failure. * @sk_alloc_security: * Allocate and attach a security structure to the sk->sk_security field, -- 2.17.2