Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp3320364ima; Tue, 23 Oct 2018 04:09:47 -0700 (PDT) X-Google-Smtp-Source: ACcGV62WD1aNjc3z5EToGiraa9CIhTSrchWUyqVmsB1YodJDMkBBACsaFfXdP5k6AEj5ZAZac2HH X-Received: by 2002:a17:902:8a89:: with SMTP id p9-v6mr49083092plo.183.1540292987796; Tue, 23 Oct 2018 04:09:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540292987; cv=none; d=google.com; s=arc-20160816; b=gQ2eDBNQV660cnJeq/mjcBvTNTHr6yJoY0I407l+MTGhkIGVAUT1qoeQip1C7BLrXZ 7ByuHxzW+cdoWDA8xroNkETMQvudtBblxPPGMFbzTA/XNZTVCjjTSqYMkTQ7AMlpgApd XdP6Hzy/w79M/Y50F6LgLqV0lDMNdAXrDsfnUbzN863aNb2sarwqt/2CKvZKo8yw/EK/ lW5xMykG5l0DfzYKuCbXC5OLptljlrRmehLah9aXe4xvwWTUcw007GS1ArwRnF7oOEL9 3QHmFn27yw85xi7sgWKU0Tto70Gfs/l6konRBBv/ACplBbLm53nP9QaiRHJxh5C/Ve2z 0Xrw== 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=yf1ILPrjy1ajsZHeETSHKgKbtuoKgSQp67npbqaWSdo=; b=rNOTB7aYcDdRo5orsNNRX+ufvhoNpnIbBsX+ZeZq738aXMJ4VOHQReHZD+p5dGnoDA qrw6qjtc3LvNwKhGxcCZsaNZC1QTcujzN22BG318LXwI6gnCyYR822UwP91e90Y+ErG7 lMpHPHfTW/zj2OCgT/5s/9XYaLHWnnXNsj+TFag1JdjyOMP3H/zs5MkkKHQTzOnyP4vj o7Mn4xxaeuPFIHqPYp0HvXY+LERnpw8BA9M6F2vMaFtKdVm+V1F2vPx/K9F98mN4iscn 36Cq5T22udDuLSBovMwKP+INHrP+KPo1YmlT2uXxiI/oQTgQLnw5I9jaGf0t/SLGHO2M UiWQ== 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 t6-v6si899582pgk.306.2018.10.23.04.09.31; Tue, 23 Oct 2018 04:09:47 -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 S1728059AbeJWTbz (ORCPT + 99 others); Tue, 23 Oct 2018 15:31:55 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:36261 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726953AbeJWTbz (ORCPT ); Tue, 23 Oct 2018 15:31:55 -0400 Received: by mail-ed1-f68.google.com with SMTP id x2-v6so1210479eds.3 for ; Tue, 23 Oct 2018 04:08:55 -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=yf1ILPrjy1ajsZHeETSHKgKbtuoKgSQp67npbqaWSdo=; b=r+ucQPRnCLDsyFN+Kp1/MQr7gVjAbbCDBIXyVjmlA9Miv9/3mx+7hixxCgrNTYC5Xi xSNtgMhmv8xVtphDdtjq3dm0/lpV/6mKUmid9s76Fc1WVX5oX3lTVt3MsEbtZrTORWDA C6seMRRlAGPaID0lYUW9CHj5MA3IiQwW5oXKp0DDHHchW7uRSbp9zCeBRJ6zjeLqfH7j sh8hw9AWxBGJyu8KfaYBZBw8nTG7Lg9reLiL+LgW38V7KBbior9ARZWcfRNKve2O9KKn i/CusCB+KJXhnYN/J9DjJAmCSDzk20o561WzrZ+ii7RVZQrsQmZU6x5QLY/2y0bIeuzD lQWw== X-Gm-Message-State: ABuFfoiQvjNJXZKI/Sd75nBj3mTFAfflp4LgIesMYJo4SUrLNXgA1pKA IbWvETxyZ7R67I+hdf5Szgs= X-Received: by 2002:a50:9471:: with SMTP id q46-v6mr16126130eda.70.1540292935032; Tue, 23 Oct 2018 04:08:55 -0700 (PDT) Received: from green.intra.ispras.ru (bran.ispras.ru. [83.149.199.196]) by smtp.googlemail.com with ESMTPSA id l36-v6sm459263edb.24.2018.10.23.04.08.53 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 23 Oct 2018 04:08:54 -0700 (PDT) From: efremov@linux.com To: James Morris Cc: Denis Efremov , "Serge E. Hallyn" , Eric Paris , Paul Moore , Kees Cook , John Johansen , linux-kernel@vger.kernel.org Subject: [PATCH 3/9] security: fix documentation for the socket_post_create hook Date: Tue, 23 Oct 2018 14:08:37 +0300 Message-Id: <20181023110837.27840-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 This patch slightly fixes the documentation for the socket_post_create hook. The documentation states that i_security field is accessible through inode field of socket structure (i.e., 'sock->inode->i_security'). There is no inode field in the socket structure. The i_security field is accessible through SOCK_INODE macro. The patch fixes 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 8f84ef819e00..accf6f34ac8e 100644 --- a/include/linux/lsm_hooks.h +++ b/include/linux/lsm_hooks.h @@ -752,9 +752,9 @@ * socket structure, but rather, the socket security information is stored * in the associated inode. Typically, the inode alloc_security hook will * allocate and and attach security information to - * sock->inode->i_security. This hook may be used to update the - * sock->inode->i_security field with additional information that wasn't - * available when the inode was allocated. + * SOCK_INODE(sock)->i_security. This hook may be used to update the + * SOCK_INODE(sock)->i_security field with additional information that + * wasn't available when the inode was allocated. * @sock contains the newly created socket structure. * @family contains the requested protocol family. * @type contains the requested communications type. -- 2.17.2