Message ID | 20230702170857.15603-1-pairmanxlr@gmail.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp64776vqx; Sun, 2 Jul 2023 10:19:54 -0700 (PDT) X-Google-Smtp-Source: APBJJlFtTFysuVRWlSns1DTY8pvq/OaTTfYBzX7YxahdBrWo/bYXGI4NvtmZiOAPE0yv/B/IM6fl X-Received: by 2002:a05:6a00:3103:b0:67f:ff0a:1bbb with SMTP id bi3-20020a056a00310300b0067fff0a1bbbmr9552266pfb.1.1688318393914; Sun, 02 Jul 2023 10:19:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688318393; cv=none; d=google.com; s=arc-20160816; b=wg6bNnFkJcu97ZKYEjBB9GtAzLfyNZ4hOFIVppiSxp2HJSet6esoaMcVB5zykrAimk J+GxeoTnqyZ/ZrYuB55Xvz6VZF7L0JpR7N753jNBLHvAlDQRNmkJ5/cEmpAiiWBzcqid baA++NSbu3mV07qV6OQ7yjmxX6TkHmdpZF1EZVWbnVMfLFBg1ri1vodjgD11XtaLSEsQ e1dEt0y31roSLO7fh6RnyCcT912FGTUwGKf50K0weFEj+Y95Fv/K5n8EWas7rlQB8MjO n3s3yWShv87jsJvSA0tiyd9BTGHS+4atSPvqw/PwWy3p7TxtfXhDeyasDKDNo3hSO8kR MGAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Z+OWP9mTxDvq9/9bth4FmWGXzG9JshUYvadC+k3pbKI=; fh=DBhPTB1eXYmJbYBOPHG1lR5W9E0cFfuT2JcZ+s4Xzuk=; b=pTPkhGYzHjZF2k0bzaTnAW37ZW9I9aKRWP0RE/qZnL/pfvts4rmBUXViRyDXD856Ey KPh0tRwW9O2afe4uRPakq6Rnrek+TCfwj87AUhGL614HaitfKR6xuuwGAM/Qk9tJcyia 196xqUdnXqJHgwzXypZlO3x1fr7cDBObBiFTVrwUjFHdgKo4Dt4vN5SrilOmEXmXmRhd 1yReEdXp0wOB+YDpH28YbgL9xdPnnrneUmxcFTtZpCnCXLeRXUWakw41PKjd+CVAs9hi 4MHJ9QXdeaR9Pv5lYGMhOHyN6G423J9Hx6+6K60np3fIeXeso9f1E6Dt637QSoyWN6Ur ApQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=ZVyrOGev; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id br12-20020a056a00440c00b0063b8a054e06si15461891pfb.259.2023.07.02.10.19.38; Sun, 02 Jul 2023 10:19:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=ZVyrOGev; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229738AbjGBRJJ (ORCPT <rfc822;ivan.orlov0322@gmail.com> + 99 others); Sun, 2 Jul 2023 13:09:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229569AbjGBRJI (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 2 Jul 2023 13:09:08 -0400 Received: from mail-pf1-x42c.google.com (mail-pf1-x42c.google.com [IPv6:2607:f8b0:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9AA218B; Sun, 2 Jul 2023 10:09:07 -0700 (PDT) Received: by mail-pf1-x42c.google.com with SMTP id d2e1a72fcca58-666e64e97e2so1941452b3a.1; Sun, 02 Jul 2023 10:09:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688317747; x=1690909747; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Z+OWP9mTxDvq9/9bth4FmWGXzG9JshUYvadC+k3pbKI=; b=ZVyrOGeve1JC9HcQiHoQdbvXMQQTytqcF/KiU8fKLltcPhsse4n5HTwiyMvQhljliR s1IVCuu6koKhsEdyWBaUxXSCO8oTtb66/TwczesKLJuaSZJgN2lMsN88Q6Tc8H0fDUG6 /9v43LvZtrsA4/OI+zFrNUc/vgFvwHoIoj6Pe8uYLgZiCm154zi97U1diiXMv2DSQBKJ vF8nlC95f4lTtbaaPoq6xUOz9dRuldyAm+FLxKKPhjcfW6XpJ5UhLkFnRrOBp7CMyQsR f/oSivF6WYQBkX6Ohfa5icWdiAv09HTNuLhgxTlH3zR/dbm3LN2+2FU+yR0JAVB7DX23 NQjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688317747; x=1690909747; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Z+OWP9mTxDvq9/9bth4FmWGXzG9JshUYvadC+k3pbKI=; b=AnmfkGl/qVa3tpWW0PHYqyzydopeqaO2QHmp9kO3pI7hxMiDzfVNuf2w9jWBFxisLI 7sKEwCL82HJ8bfHhqs7C6u6LVeBlTXdDHPMSG4x6eNk8coJwMB9vol5mokcIkbUSl7Gi 2p0UYVPqjflw6qMWgwMT57fWwrGP946IW+vb206p+F/xkMP73Kxx6dQT/8fuuznpOnin +w7pVK2dW1caoSUFyrx0Kiud2M9A/7bO64PDGsFENgnumkhl5NhjrzT1RQZQ04r8bpiK t/HU1jvCXHmvvcVR/IATEkRLhg/YitMdF+hmnt99d6SOpHtPB/+Fry77FUuf3F1dXpkC gJSw== X-Gm-Message-State: AC+VfDyk7nLSwL3u/40Kbek1TpHC6Ka8pAk2dWTeLD5G3n9UNsQS3p5j +7Z+v4uhxBWq/NiX+3LXSMDPzlRzG9MMY5Md X-Received: by 2002:a05:6a20:970a:b0:12c:518:b8de with SMTP id hr10-20020a056a20970a00b0012c0518b8demr6434565pzc.17.1688317747087; Sun, 02 Jul 2023 10:09:07 -0700 (PDT) Received: from fedora.. ([123.139.60.254]) by smtp.gmail.com with ESMTPSA id z2-20020a656642000000b005302682a668sm11847188pgv.17.2023.07.02.10.09.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Jul 2023 10:09:06 -0700 (PDT) From: Pairman Guo <pairmanxlr@gmail.com> To: paul@paul-moore.com Cc: jmorris@namei.org, serge@hallyn.com, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, Pairman Guo <pairmanxlr@gmail.com> Subject: [PATCH] LSM: Fix typo in a comment Date: Mon, 3 Jul 2023 01:08:57 +0800 Message-ID: <20230702170857.15603-1-pairmanxlr@gmail.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770330148504238222?= X-GMAIL-MSGID: =?utf-8?q?1770330148504238222?= |
Series |
LSM: Fix typo in a comment
|
|
Commit Message
Pairman Guo
July 2, 2023, 5:08 p.m. UTC
Hi maintainers,
In the description of function definition security_file_lock(),
the line "@cmd: fnctl command" has a typo where "fnctl" should be
"fcntl". This patch fixes the typo.
Please merge if it is the case. Thanks in advance.
Signed-off-by: Pairman Guo <pairmanxlr@gmail.com>
---
security/security.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Sun, Jul 2, 2023 at 1:09 PM Pairman Guo <pairmanxlr@gmail.com> wrote: > > Hi maintainers, > > In the description of function definition security_file_lock(), > the line "@cmd: fnctl command" has a typo where "fnctl" should be > "fcntl". This patch fixes the typo. > > Please merge if it is the case. Thanks in advance. > > Signed-off-by: Pairman Guo <pairmanxlr@gmail.com> > --- > security/security.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) This looks good to me, I'll plan to merge this once the merge window closes. Thanks. > diff --git a/security/security.c b/security/security.c > index b720424ca37d..adaa7043c172 100644 > --- a/security/security.c > +++ b/security/security.c > @@ -2717,7 +2717,7 @@ int security_file_lock(struct file *file, unsigned int cmd) > /** > * security_file_fcntl() - Check if fcntl() op is allowed > * @file: file > - * @cmd: fnctl command > + * @cmd: fcntl command > * @arg: command argument > * > * Check permission before allowing the file operation specified by @cmd from > -- > 2.41.0
On Wed, Jul 5, 2023 at 6:35 PM Paul Moore <paul@paul-moore.com> wrote: > On Sun, Jul 2, 2023 at 1:09 PM Pairman Guo <pairmanxlr@gmail.com> wrote: > > > > Hi maintainers, > > > > In the description of function definition security_file_lock(), > > the line "@cmd: fnctl command" has a typo where "fnctl" should be > > "fcntl". This patch fixes the typo. > > > > Please merge if it is the case. Thanks in advance. > > > > Signed-off-by: Pairman Guo <pairmanxlr@gmail.com> > > --- > > security/security.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > This looks good to me, I'll plan to merge this once the merge window > closes. Thanks. I'm merging this into lsm/next now, thanks!
diff --git a/security/security.c b/security/security.c index b720424ca37d..adaa7043c172 100644 --- a/security/security.c +++ b/security/security.c @@ -2717,7 +2717,7 @@ int security_file_lock(struct file *file, unsigned int cmd) /** * security_file_fcntl() - Check if fcntl() op is allowed * @file: file - * @cmd: fnctl command + * @cmd: fcntl command * @arg: command argument * * Check permission before allowing the file operation specified by @cmd from