Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp4730473rwb; Tue, 8 Aug 2023 12:55:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFygFyvIbGlj0q6mohM4bhJ8Y4L69uJxWd383K5JhSOBBb5/ooSGVtnM4BYnmn/xPmDYTFv X-Received: by 2002:a17:903:2448:b0:1bc:6e5f:392f with SMTP id l8-20020a170903244800b001bc6e5f392fmr659701pls.48.1691524535728; Tue, 08 Aug 2023 12:55:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691524535; cv=none; d=google.com; s=arc-20160816; b=0qsN6rmrJLLGWYlim/DY/dzoO4cHLn1PrR3QA2hwlmvrDcb61+jacXiVhAPZ5fh/5y 33u4HAWy9ufk41JWpRQZxmCD1ur1Tjo43RjRp8TgagRLAsv31xzMJ+mgy8NG8unkEPLv jUZKZrIr33PKc30DVEa423JAVvvrTp85FnVNWU4OHT7bzzIZ/Wr4t9ZMK7WsdjTzOV0A iLxcmY5zf4Zf47rEpUW42gG1FsanFoOUp7xyMOiEOhrIsYMeiZe0ZJ/hVZEFjSf/8Zem /j+RUiJDmikmbm4U9rj3pYBPmZUnNWHUbw/h+bPXRNOZTxiFDD/GVkOjKRRM+DIL7Wa6 tWKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=w+N5RxJ6j6TsIuXun+/KHtX8AkDeBPMRbGieTCGtLH0=; fh=rH0xQLvuGJqrDm95VoQS/2C0ThUnzt3W1KTXEaX8IOw=; b=FmCqRJj4plTrW10rP4B5c+shizjJ7euFs3cd7H/79h5VKoEmCa7v1tqoUXKnqJqPoQ yNLgd49iisM8ZeEE3A3xPEl6I2iprYUgKBmgHzRlTFoFGgIPXOZjqT8QuSD1P1ILxO5h 3dyVb3pTsdKZZrwWk9L9dwfZ42+KttzV36l+XMd1dZ0Ng2iE5snOIbfwZs7b+ri8X22V 1DWtj7NljjeDvDKKdE1TBEwZpj3rcpnCfEA9AiP7tiDpuASCt9LgBrIQnVk7YQeB5VOE 6r5HSUsJHf6+xYBoO5NcrF3tUeqAEUpEcDV2KaJdNih7RHC1MavwL/KVP2OuxMvGyDFY D/WQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=UehQQQ1v; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b13-20020a170903228d00b001bbabd5b14esi7942661plh.608.2023.08.08.12.55.14; Tue, 08 Aug 2023 12:55:35 -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=UehQQQ1v; 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 S233936AbjHHSyB (ORCPT + 99 others); Tue, 8 Aug 2023 14:54:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231739AbjHHSxj (ORCPT ); Tue, 8 Aug 2023 14:53:39 -0400 Received: from mail-lj1-x236.google.com (mail-lj1-x236.google.com [IPv6:2a00:1450:4864:20::236]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 833946349E; Tue, 8 Aug 2023 10:08:29 -0700 (PDT) Received: by mail-lj1-x236.google.com with SMTP id 38308e7fff4ca-2b9e6cc93c6so90882431fa.2; Tue, 08 Aug 2023 10:08:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691514508; x=1692119308; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=w+N5RxJ6j6TsIuXun+/KHtX8AkDeBPMRbGieTCGtLH0=; b=UehQQQ1vXkVzZS4c2tTeWknevaOpsUVU/94XcQALmgDqehT/nQ6bN0pkXXbhP9E8wU LRzirxRk13f1NSgxNY2xdwwrXqY+lL1Rfe/20336u+IyeZWwERwvS4kcw4gKms7Ow5Ep x/FU0ZABxo0IoYqhJWggpjFuX32Wn1qPCvj15TIjsMttrOoN+H7xtcj3U1n5wQEJ4fpi ulUgPsXD3icKTuksK3lUwlfFQ9zzYyBr9ORjYtnEzU0zo+1D2rlcCRj475F7MiPKS6Ch ACuNYei0Q6IWC2qIVmOWFxqFuuBh+wWkWtARJm9JDqiLC1tYdIklOhJh/zWEHYZe72vM K2Ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691514508; x=1692119308; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=w+N5RxJ6j6TsIuXun+/KHtX8AkDeBPMRbGieTCGtLH0=; b=ZnTou9jnVlcWpUl8QXLeRAnVil17/Amubw45L6wMtsM4QoxAiKf9bx2gXG5ItFjBt2 ZvJutrk7qqfvJEVKQ+KZlpctltjlnXO4WWCPEiU3yxJqdrhiay+d7ZVoEkv4mAdFLAwf 3m2yO1a/rVA14JTtLbDR8HsW21qW7I/p3XS6y7DwPl3Y8X7IqUrRxfymysSvXsgizAsZ xR3J6hueR6bzOubhej2z6Pz6HwKO56OL/7dukPDRYUDUhJopDTQc10+DEydYBP3Epcrz YL5+N/ONF6O42BD8m5WFdMLSlOanSMdE2DzJh9WaDU/JFAsixAxwblB/UNENNEZutB5m m99g== X-Gm-Message-State: AOJu0YzkU4Rv70OFvB+DfgbAoGfggiq40yg677UZ6yiLOjl7SeMO+qCh GVzVELvhZv3oZ0va4P+0gaL/FxGxL7i5LA== X-Received: by 2002:a1c:7211:0:b0:3fe:19cf:93ca with SMTP id n17-20020a1c7211000000b003fe19cf93camr8603683wmc.8.1691473291792; Mon, 07 Aug 2023 22:41:31 -0700 (PDT) Received: from khadija-virtual-machine ([124.29.208.67]) by smtp.gmail.com with ESMTPSA id q7-20020a1cf307000000b003fa98908014sm16983211wmq.8.2023.08.07.22.41.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Aug 2023 22:41:31 -0700 (PDT) Date: Tue, 8 Aug 2023 10:41:29 +0500 From: Khadija Kamran To: Paul Moore Cc: Alison Schofield , ztarkhani@microsoft.com, James Morris , "Serge E. Hallyn" , linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] lsm: add comment block for security_sk_classify_flow() LSM hook Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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_BLOCKED,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 07, 2023 at 07:14:45PM -0400, Paul Moore wrote: > On Mon, Aug 7, 2023 at 3:14 AM Khadija Kamran wrote: > > > > security_sk_classify_flow() LSM hook has no comment block. Add a comment > > block with a brief description of LSM hook and its function parameters. > > > > Signed-off-by: Khadija Kamran > > --- > > Changed in v2: > > - Add parenthesis with security_sk_calssify_flow to refer to it as a > > function in commit message and commit log. > > - Remove an extra space in the comment block. > > > > security/security.c | 7 +++++++ > > 1 file changed, 7 insertions(+) > > Hi Khadija, > > Thanks, but I already merged your original patch :) > > https://lore.kernel.org/linux-security-module/abe91475c7f9e3483405c6096006b2a9.paul@paul-moore.com/ Hey Paul, Great. Thank you. :) Regards, Khadija > > > diff --git a/security/security.c b/security/security.c > > index d5ff7ff45b77..b76fb27a1dc6 100644 > > --- a/security/security.c > > +++ b/security/security.c > > @@ -4396,6 +4396,13 @@ void security_sk_clone(const struct sock *sk, struct sock *newsk) > > } > > EXPORT_SYMBOL(security_sk_clone); > > > > +/** > > + * security_sk_classify_flow() - Set a flow's secid based on socket > > + * @sk: original socket > > + * @flic: target flow > > + * > > + * Set the target flow's secid to socket's secid. > > + */ > > void security_sk_classify_flow(struct sock *sk, struct flowi_common *flic) > > { > > call_void_hook(sk_getsecid, sk, &flic->flowic_secid); > > -- > > 2.34.1 > > -- > paul-moore.com