Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp3599945rwb; Mon, 7 Aug 2023 16:57:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG7BYgFGrZkDG323Q9x1CJZReS/dMRjsjesFqKovpk7p5HHqrs0Yfdfg9KEQerGXBQMQsrI X-Received: by 2002:a05:6a21:27aa:b0:137:93d7:6ab7 with SMTP id rn42-20020a056a2127aa00b0013793d76ab7mr7641146pzb.30.1691452655136; Mon, 07 Aug 2023 16:57:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691452655; cv=none; d=google.com; s=arc-20160816; b=AwiAH6GCC6pHJmnzqOxGHTK5AHhD1NtDeqx69y/nfbnqUAmxuXN/5TnUBtCT0YPGIt TYC9Fob35C9TZnHTDYQbqI9ZvD1T+ObhQn4OUcpLVMRYhsM9OMhV5wUX0n7aIEZtHXlf XWGBgAweNDgR1emODa24DFqsnP9wwOg/mQPcfiDtT9laVwiJDp5yvFxb0XH+Ldy09lOm RPjkbPQxU24xBgU66R1KINtJFtQR/BI/FKwJPDvC2Fu0l/DfjhspH+OgvrWVysLw59co dRBIgkXNkBi1+pB/2ggq4hObxMFv8KVlHhtduDfNSO0ty3wrfnpSTmWcDABLoAh70XT7 O74g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=gC650LVe61HwPim1FSUuzXp4C/B2DwrSSnI6+3CNzQ8=; fh=f0hF6H9K5lK8HZ/uevEuRoN+eA/KS+lTVOh25l5scdY=; b=G9ch44qfKJs2ZSZGjz8eiW0bel8G7SQdlbwSsfTirjTD44GFL45+bgs6K0sOWkm3ej hCeHQgl/tPJ2GJh3wMxWhhQq4XRn44DGhehYuYObeVCfSdJY/3dSwxiz83700LZkmnCQ VO6EOOwW2ULInMDdRrjEduxtPqVXnMP5J+i0CGTXrL15mjfKjmYvf+1ds3M2dOjcXRjP FU75XL2qr8/2WuqvBCQnT+OUUV+Xg9O0tEFouUhuA/o+hIOR3MMZYaYYtlwAo1oQmAxd 5k9ZPdZa1kDRUdNU1+begwppL2H0orAfaDmqlq0YNN04cuEl7nDU6WRkclpH3bTSGTd2 oRBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@paul-moore.com header.s=google header.b=ct+ge2PG; 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=NONE dis=NONE) header.from=paul-moore.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u21-20020a056a00159500b00643ba887601si6409169pfk.307.2023.08.07.16.57.18; Mon, 07 Aug 2023 16:57: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=@paul-moore.com header.s=google header.b=ct+ge2PG; 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=NONE dis=NONE) header.from=paul-moore.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229810AbjHGXPN (ORCPT + 99 others); Mon, 7 Aug 2023 19:15:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229812AbjHGXPL (ORCPT ); Mon, 7 Aug 2023 19:15:11 -0400 Received: from mail-yw1-x1134.google.com (mail-yw1-x1134.google.com [IPv6:2607:f8b0:4864:20::1134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5C45C6 for ; Mon, 7 Aug 2023 16:14:56 -0700 (PDT) Received: by mail-yw1-x1134.google.com with SMTP id 00721157ae682-583b019f1cbso54855577b3.3 for ; Mon, 07 Aug 2023 16:14:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paul-moore.com; s=google; t=1691450096; x=1692054896; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=gC650LVe61HwPim1FSUuzXp4C/B2DwrSSnI6+3CNzQ8=; b=ct+ge2PGifRP3AlMIL/2uh0Qxnp5/FFhMPFh1pADmZFwbBUUztR9EjiH+7kkziM74s qZAjmrkpD1CdVps/VpDrKBYmtg03d/GoP3/+FfqBBBzrSn30IWE0+ixoqmDOrAH+O2qx ZK8X6B1b0Yy/2dyuIRVptN2hY9zk0fC2xMCvLJg0HIlu3iG5ejaOh48zKA9JDbI0t6QD rpxIeR/fckdT+rJDS3i78lzOjpgMigIQPcLmeo18ttjBsgQLeSzWhLJ1ZxGhfMnHptbj 4O0xCy8K4HT5PqD1tsQ+/WUR0cRwPsdhCIiCp/x0sf3IcIR6lFhOzr5cfWtSNH10j0NE s9sA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691450096; x=1692054896; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gC650LVe61HwPim1FSUuzXp4C/B2DwrSSnI6+3CNzQ8=; b=Lqk9MwENkKI3asi8sa9NssyCWlwcdlLfIbMTeFR2JBKph4HLBNdA3vmMLVY89h+TvG Y3b5bp6ldPrigVkTC9ULM0RBlHDhoXC4UAwmKky4Sg8e6CScOTm0uWxtWkvMKrxUHw2i uLTe+94XSvY6pEGIHmW/8TxBREFcaYj5C6BPnwHQl2AUXPRJD0a9C5fy/xmW55IeSFTl XEh2HXYhEs4r4DVFN6eMkMRPH85rpe8bWZedHEFfKyJweJUF7ogRPYaNZsWkLh6nJsxf V7SVuMPo6tl5uu89+0ey4jFYHOIbIUm0vb16ftyz8u40b784Ihz8qq/a9PFiXTkPX35f W+yw== X-Gm-Message-State: AOJu0YyyTtqaQ+eIx7ry6lJTOqh4CiFNNb+COrQDMnIhkDojyvR0TuFa +c5jGCyjV8/ksWN4J4q8DZS4hkQJ3VZSSdNIuWPk X-Received: by 2002:a81:6e86:0:b0:584:5e7e:40c1 with SMTP id j128-20020a816e86000000b005845e7e40c1mr10333423ywc.28.1691450095895; Mon, 07 Aug 2023 16:14:55 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Paul Moore Date: Mon, 7 Aug 2023 19:14:45 -0400 Message-ID: Subject: Re: [PATCH v2] lsm: add comment block for security_sk_classify_flow() LSM hook To: Khadija Kamran Cc: Alison Schofield , ztarkhani@microsoft.com, James Morris , "Serge E. Hallyn" , linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS 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 7, 2023 at 3:14=E2=80=AFAM 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/abe91475c7f9e3483405c6096006b= 2a9.paul@paul-moore.com/ > 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, stru= ct 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 *fli= c) > { > call_void_hook(sk_getsecid, sk, &flic->flowic_secid); > -- > 2.34.1 --=20 paul-moore.com