Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp1188046img; Tue, 26 Feb 2019 16:10:48 -0800 (PST) X-Google-Smtp-Source: AHgI3Iag9zz6aDHVOELOqznUc2vrllBIYT93wYBRHBnSiFwEQr088KfR1LX8wFiPKzZMqO+1WbAD X-Received: by 2002:a17:902:4181:: with SMTP id f1mr21789191pld.280.1551226247978; Tue, 26 Feb 2019 16:10:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551226247; cv=none; d=google.com; s=arc-20160816; b=OUSrkNOzii9tohdIN1D4Iy2cNJr9+cu4rQagI1KJt8E9chcTHWCFB8QpqD4oYUdo+y xBxWgTHJFNtVMRthWy66kh0okGGWYFtV9wglfmAY5rsSHC4s3CmooQC+g7D8k8q7kTX8 LE5JKbc6StSAA5QBy4PYfm9h8VK1EalTraT+Kg3t2UFnUeYnVMi17AUB7R4LVAeFFxj8 Sp5T1slqEmn/USZRMHZHp0ZsU0rBd3XNO+0wjlllZrDvkba0PIePInTWQX6Q27+X6KWo /m4/up1hIAY3vmjARHKMwH1jXiefC7HkbdMuhRf0PENDUR7jhmErKSu9AzJcWXrgMfOt y3Qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=ds0WqW8zu42b+RQJaaWHjZ1tefZnYdq98gy323FUHsk=; b=nWNQMoI9/r+Uu/7GgU9GAn1ewhEdlbamIcreEq9G1zOa8kPuxuInwUGLX+XZeCd22s xNNImJSsmWNFYfkAwiGFq1WUDlDzrhnRHmanYKOWaHpF5ObOrNL2+D3lMs4v4Imp1VQU Hw8vZ/OM6XfiiHSx5c9HpAbqX70wk8crplrR2oK4OUkAeWiJiDg9R/yShJo8hwmAA2lj VtfhzIrgzKT2hTKtaZ9bB4S/dSxDPFhlywCzQSBT5IDGM7u2z+YtLkhj38G2mEABYqzr SIvPZuc/rWtKJ4oPEurTPtE5QqiqfBVmDhqX+/Z1+vKjeChbub/yZLqdcRz5CvyoGNk8 H8XA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="az/Vs4op"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u69si13131513pgd.161.2019.02.26.16.10.32; Tue, 26 Feb 2019 16:10:47 -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; dkim=pass header.i=@chromium.org header.s=google header.b="az/Vs4op"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729487AbfB0AJu (ORCPT + 99 others); Tue, 26 Feb 2019 19:09:50 -0500 Received: from mail-ua1-f66.google.com ([209.85.222.66]:46982 "EHLO mail-ua1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728736AbfB0AJu (ORCPT ); Tue, 26 Feb 2019 19:09:50 -0500 Received: by mail-ua1-f66.google.com with SMTP id j8so13641630uae.13 for ; Tue, 26 Feb 2019 16:09:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ds0WqW8zu42b+RQJaaWHjZ1tefZnYdq98gy323FUHsk=; b=az/Vs4op/y4ME89TBe6RS2WAr04BVnCCONZoLG2ITlsHi+EwWrfGg5um6b1Tya1PcL BBVJzTaM2cs523ujbIkl5TBECtsWTnPBF1C41coCWx51OPqWMgNGqZCRsLEuT0UKAuuj BwjnozYT4GJGWJDe6HPKig0dBaI3KovotpaLk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ds0WqW8zu42b+RQJaaWHjZ1tefZnYdq98gy323FUHsk=; b=LNIg2Ctnuu58N271BdyfP6JCn4QfavrU6S0PIqYraLb/eX3VDhTz8qKlbFeZDic2Dl a4XWvpZXKFTA8cwkxHAy48acEfUtSrMHaVWf1PlxI0/ZaDzco5CxX3BTv6PvDPez8XF8 scGofMBxHlsz3XM2u4atC71eB1ozbkvSM8piOU4iRCuyOV7BhE+ch1rR7tyjQ8migo+v 7kRhVzxB0e/Of7jVjBv9Czfs+XL7oSkW10lAmrfi6vxms/L66VRYbt+FGc7p+2yx8Ut/ n5wy/oARa+iZ8FJxHiknjl2wmi2ovIj4VPjLwFGVEKEhN84q1dVWF1RvtcpqmI5egEKf EgIQ== X-Gm-Message-State: AHQUAuY9deO2Da0LCS7xyFuZzvh21ue6a4Blpx73nSKbSNo5ui+ZwzGs p1sV5RqbMKw+oZxQXz2UbYkjt+pe3G4= X-Received: by 2002:a67:d91e:: with SMTP id t30mr283013vsj.27.1551226188151; Tue, 26 Feb 2019 16:09:48 -0800 (PST) Received: from mail-ua1-f45.google.com (mail-ua1-f45.google.com. [209.85.222.45]) by smtp.gmail.com with ESMTPSA id q131sm4750236vkh.37.2019.02.26.16.09.46 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Feb 2019 16:09:47 -0800 (PST) Received: by mail-ua1-f45.google.com with SMTP id s15so13671932uap.6 for ; Tue, 26 Feb 2019 16:09:46 -0800 (PST) X-Received: by 2002:ab0:645:: with SMTP id f63mr478618uaf.106.1551226186505; Tue, 26 Feb 2019 16:09:46 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Kees Cook Date: Tue, 26 Feb 2019 16:09:35 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 00/11] LSM documentation update To: Denis Efremov Cc: Casey Schaufler , "Eric W. Biederman" , Eric Paris , John Johansen , James Morris , "Serge E. Hallyn" , Paul Moore , Kentaro Takeda , linux-security-module , LKML , Jonathan Corbet , "open list:DOCUMENTATION" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 26, 2019 at 12:49 PM Denis Efremov wrote: > Recent "New LSM Hooks" discussion has led me to the > thought that it might be a good idea to slightly > update the current documentation. The patchset adds > nothing new to the documentation, only fixes the old > description of hooks to reflect their current state. > > V2 adds the clarification on arguments for some hooks. > The format of the documentation is also slightly updated > for better html. However, there are still 10 hooks without > documentation at all. I think that this should be fixed > separatedly. > > Denis Efremov (11): > LSM: fix documentation for sb_copy_data hook > LSM: fix documentation for the syslog hook > LSM: fix documentation for the socket_post_create hook > LSM: fix documentation for the task_setscheduler hook > LSM: fix documentation for the socket_getpeersec_dgram hook > LSM: fix documentation for the path_chmod hook > LSM: fix documentation for the audit_* hooks > LSM: fix documentation for the msg_queue_* hooks > LSM: fix documentation for the sem_* hooks > LSM: fix documentation for the shm_* hooks > LSM: lsm_hooks.h: fix documentation format > > include/linux/lsm_hooks.h | 170 ++++++++++++++++++-------------------- > 1 file changed, 81 insertions(+), 89 deletions(-) Awesome; thanks! This fixes several warnings in "make htmldocs": ./include/linux/lsm_hooks.h:1783: warning: Function parameter or member 'task_setioprio' not described in 'security_list_options' ./include/linux/lsm_hooks.h:1783: warning: Function parameter or member 'task_getioprio' not described in 'security_list_options' ./include/linux/lsm_hooks.h:1783: warning: Function parameter or member 'task_movememory' not described in 'security_list_options' ./include/linux/lsm_hooks.h:1783: warning: Function parameter or member 'secmark_refcount_inc' not described in 'security_list_options' ./include/linux/lsm_hooks.h:1783: warning: Function parameter or member 'secmark_refcount_dec' not described in 'security_list_options' So, for the series: Acked-by: Kees Cook If you want more work, I do notice the following warnings are still present: ./include/linux/lsm_hooks.h:1775: warning: Function parameter or member 'quotactl' not described in 'security_list_options' ./include/linux/lsm_hooks.h:1775: warning: Function parameter or member 'quota_on' not described in 'security_list_options' ./include/linux/lsm_hooks.h:1775: warning: Function parameter or member 'sb_free_mnt_opts' not described in 'security_list_options' ./include/linux/lsm_hooks.h:1775: warning: Function parameter or member 'sb_eat_lsm_opts' not described in 'security_list_options' ./include/linux/lsm_hooks.h:1775: warning: Function parameter or member 'sb_kern_mount' not described in 'security_list_options' ./include/linux/lsm_hooks.h:1775: warning: Function parameter or member 'sb_show_options' not described in 'security_list_options' ./include/linux/lsm_hooks.h:1775: warning: Function parameter or member 'sb_add_mnt_opt' not described in 'security_list_options' ./include/linux/lsm_hooks.h:1775: warning: Function parameter or member 'd_instantiate' not described in 'security_list_options' ./include/linux/lsm_hooks.h:1775: warning: Function parameter or member 'getprocattr' not described in 'security_list_options' ./include/linux/lsm_hooks.h:1775: warning: Function parameter or member 'setprocattr' not described in 'security_list_options' :) -- Kees Cook