Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp758209pxb; Thu, 21 Oct 2021 08:57:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx6A4PQ8f3+MbESOj6qNpTD6I+yJxpGiHpBc7LL2qwnwm5pAGDHVILXw9QIUvmhfptnGa2Y X-Received: by 2002:a17:907:d14:: with SMTP id gn20mr8516704ejc.220.1634831865174; Thu, 21 Oct 2021 08:57:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634831865; cv=none; d=google.com; s=arc-20160816; b=IFC8UJ0fAHGeXEgIpGwRda6HqwYuhJrqLAsBPzWWomimONBj/hf1CeIWDhivEcDXkm x1N5CqY3zAQ20MJe/FcUsORSEANrQ6GMMAL5VfESMC50RfQ2l4EydqZ+VgTNphOdsIKR 4xqsMPZJKsHaK2hHY+6G+hqmYJMv7/qAoYomdSwneeO11aG2sPvTwbwTQJaYFmS77ZCt wWFX3D0RZwhxqDN0ByuVtq+l3DDopZ6O4b3iNdHnmDSLR/5oPRoGbUGXkR8i3b60ZIuu j9Ocfgx99nLour4Y5LLIDj2JpjaVbVF4EJtdf4gKli3OfIyH941ehMJ1XUQ3onM5kPt1 1CmQ== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=HRHfFhz4fMPUx9YOtOao9Bpb9t5tjPxJMHEqRqglFwM=; b=iYBM7TCPyx/oWcZSIU6652KuhYfdb3y3SysBR6KGxVe0RZAuwyJWhl3KDXikX4FfsE 09UJLopt3z6VysVL2sxvF9LUBqQEAVzJizopHZRtAi4F5i4A0GwwJkAGHPiKFdm8b/Q+ tGKdPG51ap4CO4t/EyzZTfHZl6UWIY1EGkko4oiA7bfLmq7dfMXLjahkTQo2fdjii5e5 UawvRFu+BD+0jGUK9VWA3ru0K45ENbaA3pOL38I2MmE6fHd2X5VRfBRClu34eiIeMLXm S04GqhKLcSCn4T3aZvMILH6YsKeM5jVbiMaBi2dqSbz0DCD791fNaiEf5dIO5SVNrUg2 +UDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="D/HrhN/0"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id he31si2332939ejc.285.2021.10.21.08.57.19; Thu, 21 Oct 2021 08:57:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="D/HrhN/0"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S231701AbhJUP5h (ORCPT + 99 others); Thu, 21 Oct 2021 11:57:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229597AbhJUP5g (ORCPT ); Thu, 21 Oct 2021 11:57:36 -0400 Received: from mail-ua1-x92b.google.com (mail-ua1-x92b.google.com [IPv6:2607:f8b0:4864:20::92b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 583D2C061764; Thu, 21 Oct 2021 08:55:20 -0700 (PDT) Received: by mail-ua1-x92b.google.com with SMTP id q13so2148443uaq.2; Thu, 21 Oct 2021 08:55:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=HRHfFhz4fMPUx9YOtOao9Bpb9t5tjPxJMHEqRqglFwM=; b=D/HrhN/0LrDrsGRfgdFeR48W6kC4c+X4yDSCCgDvMY9Yfj+9RBHFpF8xdRSQNWWeFd ChlvcCLRdG6+AHyAxGQk/4Urb67IFT4Mqo/xOJvEW0jBCqbV8mGubGjEcpdQkw5saWMX 0RyxJqfrpZwZWb0NxtD/1tSR8chgREekcK+cL82ldGb/Mn0wIKA3a2fVgATgIlPSTMvl Yk7N3lAB1FA0x0BMeeGeqI4X3gntqERs/5yqCE/uDddwEZ+rXA0fUZDjq+DAzSPRNX/f HoTskTjC3uh6iF00W5+CFFV9COkir+vZWCptrM3qPB43dWNhSw/9GD5loHcfHhbhKGZx KPfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=HRHfFhz4fMPUx9YOtOao9Bpb9t5tjPxJMHEqRqglFwM=; b=Ffk4YTdIrTwD1d76vlR/87Wi2w7tLJjAqRGjMtsSFeXzPgiZCOjyI+h9MDkl3ZFSWL CkaaUtbmm1ndJVB/9Y6hwL3pQArNGMR8wr3GOsxBAMvwYGTftZwXtUSO/QBRAz6jWTbU 22xxYob6fyBLRXwjDWJsSAsrNqzCAHvJTFh0hgYK188h5KGHfxXuJiG356/cPJOoDNVI gcTmlLCbyJQFk7iw+8wo+ikfbxwUR9hhbDxKrBfZeyfKNYGuD5OvC5qBGkOyqobDqy6r 3l7dS4sUhmeiB/jlga4vDYtAXXOQx9+Ip/QlxNNZv2A/wh4Oz/gEeSfBIMz0Vchs+NDM Rmbw== X-Gm-Message-State: AOAM531282/kYwYqzMlePJX7nLjIWVOg6VkIkdeXXg0E2d8o/MoqEf/P KQfeQ0PVX4dGwK/zNJ6OIbM= X-Received: by 2002:a05:6102:a4f:: with SMTP id i15mr6981375vss.49.1634831719443; Thu, 21 Oct 2021 08:55:19 -0700 (PDT) Received: from t14s.localdomain ([2001:1284:f013:eca9:86b:fb8c:36a9:6a8f]) by smtp.gmail.com with ESMTPSA id m184sm3296920vsc.6.2021.10.21.08.55.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Oct 2021 08:55:18 -0700 (PDT) Received: by t14s.localdomain (Postfix, from userid 1000) id 1AB9E91D02; Thu, 21 Oct 2021 12:55:17 -0300 (-03) Date: Thu, 21 Oct 2021 12:55:17 -0300 From: Marcelo Ricardo Leitner To: Ondrej Mosnacek Cc: Vlad Yasevich , Neil Horman , linux-sctp@vger.kernel.org, netdev@vger.kernel.org, selinux@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, Richard Haines , Xin Long Subject: Re: [PATCH] sctp: initialize endpoint LSM labels also on the client side Message-ID: References: <20211021153846.745289-1-omosnace@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211021153846.745289-1-omosnace@redhat.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 21, 2021 at 05:38:46PM +0200, Ondrej Mosnacek wrote: > The secid* fields in struct sctp_endpoint are used to initialize the > labels of a peeloff socket created from the given association. Currently > they are initialized properly when a new association is created on the > server side (upon receiving an INIT packet), but not on the client side. +Cc Xin