Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp1029879img; Tue, 26 Feb 2019 12:51:51 -0800 (PST) X-Google-Smtp-Source: AHgI3IaRbwZTeW9Ny5YiVGwxgxYAORD4JS8ytNg6/ZZu50/DqQ3+8hx1ScPhQm6uiEoCNji3SqIj X-Received: by 2002:a63:e101:: with SMTP id z1mr26487507pgh.190.1551214311019; Tue, 26 Feb 2019 12:51:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551214311; cv=none; d=google.com; s=arc-20160816; b=A+BbntKwdBqOMbMljWFUp/H2yXTmaI4JkQkE24hPtuT0zJ+y9A068t/ExW5qmnQXaZ m7FW+gWz26mqWaBxUXFPqQ4cekrxBqGSl2b5mnUhzHEW1R9gGAa5GepsIDYNzsAyStbJ anhk8bhmsgDK0OcovJ5PHqRA2cpa6pgAkHr4bzXIOm607TTafqknoVGRB09NIwoNqZCb pqiMBcaa2TDtx6WNSXif1oWSOp8rMVCn98eQAlg8kdnzGnQWdT7vp+OF+8gVYieufBE8 7PORbzoCXAj/qqlFQTBCl/90UNhDjJyMf2griQ/fkJu15KAy7b7XCOXnJwknupXLKiRu tlgQ== 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=uBZopzp5XfTGrGXGZ0RuNaUXCefgvbCGIdf0meJeioU=; b=gZRxQ7VffnsYFZO0l4wj+MCk8pfRuyYB4xjTsh81dkmVGIiGA246TvwJItU8X9Q0BW CB/Ap1YhaDcqHeOYSDMktmI81XnKRNhK3tkCgIsVVQowKgyT8gx1kWWODM/i+BSIb1vi CeM6cf4r8AnGrNLK4Ds482nctGGf0J0y6ZRCSOzTSkMUfei4xJuZ4GXh67CzLT63c2M7 asoH9m93A7HedZ9Xci1o15rp0iVW8uCQwIEhDWqSYeRXZKD5Bom8Fe7Aw40hyQCf73RX 6krLMuVtAUg7RHv+dzPaHQGDHmi4GVv38PoILE/2mwI1byJ61dR0aX75dwGCoSVHUHmC vLsQ== 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 x14si3762691pfa.239.2019.02.26.12.51.35; Tue, 26 Feb 2019 12:51:51 -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 S1729185AbfBZUuh (ORCPT + 99 others); Tue, 26 Feb 2019 15:50:37 -0500 Received: from mail.ispras.ru ([83.149.199.45]:45222 "EHLO mail.ispras.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727823AbfBZUuh (ORCPT ); Tue, 26 Feb 2019 15:50:37 -0500 Received: from green.intra.ispras.ru (pluton2.ispras.ru [83.149.199.44]) by mail.ispras.ru (Postfix) with ESMTPSA id 7B8FC5400C1; Tue, 26 Feb 2019 23:50:35 +0300 (MSK) From: Denis Efremov To: Eric Paris Cc: Denis Efremov , Casey Schaufler , "Eric W. Biederman" , 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 02/11] LSM: fix documentation for the syslog hook Date: Tue, 26 Feb 2019 23:49:03 +0300 Message-Id: <28416926bb1df87b8b72588999dd90d64ecc9e87.1551213058.git.efremov@ispras.ru> 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 The syslog hook was changed in the commit "capabilities/syslog: open code cap_syslog logic to fix build failure" (12b3052c3ee8). The argument @from_file was removed from the hook. This patch updates the documentation for the syslog hook accordingly. Signed-off-by: Denis Efremov --- include/linux/lsm_hooks.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/linux/lsm_hooks.h b/include/linux/lsm_hooks.h index 1a01383403b3..3f0a0e2c5fba 100644 --- a/include/linux/lsm_hooks.h +++ b/include/linux/lsm_hooks.h @@ -1275,8 +1275,7 @@ * Check permission before accessing the kernel message ring or changing * logging to the console. * See the syslog(2) manual page for an explanation of the @type values. - * @type contains the type of action. - * @from_file indicates the context of action (if it came from /proc). + * @type contains the SYSLOG_ACTION_* constant from * Return 0 if permission is granted. * @settime: * Check permission to change the system time. -- 2.17.2