Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp166944pxa; Wed, 26 Aug 2020 07:33:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyUbZ+NLSZ7Cumje3IoQAC1XV1//EfRrqiClCqMjd3em61Ij/vdD/VvcDbiZ8JYh9sZFfdE X-Received: by 2002:a17:906:554:: with SMTP id k20mr15866233eja.334.1598452424394; Wed, 26 Aug 2020 07:33:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598452424; cv=none; d=google.com; s=arc-20160816; b=XFi7euDZPcpYahOljcybfz4lZFxKJ+kAKkoJAIwyRtLh+2KyNKeprThYXBMPv6JlSl a/xGx+3HlH2oKsAln5BS3B4CINj7jBvotwjtyhjEK1pcY4i+dirJjn60JhQLd/V2CSI5 PudNX+q6wLMFIHZ1/gTHz80v0ZQ36UVqliSiycbWt5CHxcNM8WRDcj2oUZoivKu0pUAD xXGWdLr8WfWEKHG9oBz0gLwm9jopx2bEKBPai+XpYtcDC+lLfh38tpteZw6d7A5fqh7v W5ottwd+j6wRvKbKqPR5QEph7kXtr4kKMCG7t24qFmmetfZ6m+QVqRr8+VnLRmNfsuuY I2XA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=diZBGnPjcaRpzNNj2xUjW6fq8RTGqEBgIiCRFd1AUvI=; b=WbSpjJbX5k8vV5kombU2vcMx1d2QaG9X1RAjmc6x6Kd+EtMYZAlaQgwmgpnLfhWy8E g/atgHiy4ZfaBaJ2z+oCfiCYu6QuwcgdYEzSqqTWGuJwbaBJpMgAAI+zgjusRYqy9Zi1 TMhJ1oP7gtnU0wZIzh9Jd8IhEiERdowHnBBonANg1vGl07Xu4E/l8Mr2IR9MpwE25UVA ALO1DQcPaheIdSupM43w/GZpvzgJYnMIH9j6v5am+uVdYuJH3jtCVSQUD/QSuBVP4O24 zDA0AkmtVg4P1NjAbrL6TzY7bWOZ+up8SMCjDmefM4MvkVETXxO1+Vuxq4oxVbqzoubi 1mfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ttr3PaIs; 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 bg14si1674784ejb.368.2020.08.26.07.33.21; Wed, 26 Aug 2020 07:33:44 -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=20161025 header.b=ttr3PaIs; 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 S1730031AbgHZMvq (ORCPT + 99 others); Wed, 26 Aug 2020 08:51:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730018AbgHZMvi (ORCPT ); Wed, 26 Aug 2020 08:51:38 -0400 Received: from mail-oo1-xc41.google.com (mail-oo1-xc41.google.com [IPv6:2607:f8b0:4864:20::c41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44F1CC061574; Wed, 26 Aug 2020 05:51:38 -0700 (PDT) Received: by mail-oo1-xc41.google.com with SMTP id x6so408663ooe.8; Wed, 26 Aug 2020 05:51:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=diZBGnPjcaRpzNNj2xUjW6fq8RTGqEBgIiCRFd1AUvI=; b=ttr3PaIsjT/RjpWXQtLVmsui9TXBbtizCopYLMyvJTdW7EZMRA2PpoSrAsjerIXr/z YaNlHvT8BWC263/aLRGBR3zCvP7tqHR8H97Y3oe6Ofc5jEF9EkcrrjTm0hu4W2xqYrqT eYCCCdlkwUXwMGp1Qj/k13eA4A7+ac7kZ0kEmM+fydpqWPkoPivDeaT0U3yKTPjnwo2a qAkJVV+/5B86W4OCfcC6zQshjourutOlO/Xo9/WX0AYAZvFHz5k4TXJu0ZRUEHJNGtG3 UiOEOgk9gXrki77lUns3qG5O8lvJmRPVuZILLFGmiNWwJIz4qyGQRjFthGhdezTsis5G 4fHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=diZBGnPjcaRpzNNj2xUjW6fq8RTGqEBgIiCRFd1AUvI=; b=XX6ux3HJ/oGWCB1YbhHzayR8J1VMZa8IvXS4kLDo7E0siLRjM1SJjISjiJGxvGEPTe BeHjamuKpl3VekqrQlSZuiDyjjR2biF4giuNx5CnEQ2u5oYLbkOehZUqCLH9qRjPdy+f YoaUs5VjzaGdYYfZALx/Q9S5tgKK7DAnNKeZam9OX7ENhRgNk5T7TXvxQTE202L+k5HT WXGQlqWWw5GtKsfRQyg/ozv52YbJbvvXFFITsktyK0ne9T4kZ9tm1cOphUaR4qnWI9vy L60gHKiKLF5zCxgDU2/BX5XpSs5pSoJuoBjBxTnxYmYaZlRywIfFZ1GSlU6bq5Duzck8 c0ew== X-Gm-Message-State: AOAM530gN747LKJevhr0DCZ38pApMlixXWoe5loAny7ptS3YUT44OsFG abjQCCqm1Rbl0N8CpwnsswHBs5U1iykmOl8L19zfEV6E X-Received: by 2002:a4a:b80b:: with SMTP id g11mr10543780oop.13.1598446297471; Wed, 26 Aug 2020 05:51:37 -0700 (PDT) MIME-Version: 1.0 References: <20200822010018.19453-1-nramas@linux.microsoft.com> <418618c4-a0c6-6b28-6718-2726a29b83c5@linux.microsoft.com> <07854807-c495-b7e5-fc44-26d78ff14f1b@linux.microsoft.com> In-Reply-To: <07854807-c495-b7e5-fc44-26d78ff14f1b@linux.microsoft.com> From: Stephen Smalley Date: Wed, 26 Aug 2020 08:51:26 -0400 Message-ID: Subject: Re: [PATCH] SELinux: Measure state and hash of policy using IMA To: Lakshmi Ramasubramanian Cc: Paul Moore , Ondrej Mosnacek , Mimi Zohar , Casey Schaufler , Tyler Hicks , tusharsu@linux.microsoft.com, Sasha Levin , James Morris , linux-integrity@vger.kernel.org, SElinux list , LSM List , linux-kernel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 25, 2020 at 4:49 PM Lakshmi Ramasubramanian wrote: > > On 8/24/20 3:18 PM, Paul Moore wrote: > > Hi Paul, > > >>>>> Is Ondrej's re-try approach I need to use to workaround policy reload issue? > >>>> > >>>> No, I think perhaps we should move the mutex to selinux_state instead > >>>> of selinux_fs_info. selinux_fs_info has a pointer to selinux_state so > >>>> it can then use it indirectly. Note that your patches are going to > >>>> conflict with other ongoing work in the selinux next branch that is > >>>> refactoring policy load and converting the policy rwlock to RCU. > >>> > >>> Yeah, and I'm experimenting with a patch on top of Stephen's RCU work > >>> that would allow you to do this in a straightforward way without even > >>> messing with the fsi->mutex. My patch may or may not be eventually > >>> committed, but either way I'd recommend holding off on this for a > >>> while until the dust settles around the RCU conversion. > >> > >> I can make the SELinux\IMA changes in "selinux next branch" taking > >> dependencies on Stephen's patches + relevant IMA patches. > > > > I know it can be frustrating to hear what I'm about to say, but the > > best option is probably just to wait a little to let things settle in > > the SELinux -next branch. There is a lot of stuff going on right now > > with patches flooding in (at least "flooding" from a SELinux kernel > > development perspective) and we/I've haven't gotten through all of > > them yet. > > > > Could you please let me know when the current set of changes in SELinux > next branch would be completed and be ready to take new changes? > > I mean, roughly - would it be a month from now or you expect that to > take longer? I can't speak for Paul but I would expect it to be sooner rather than later. Ondrej has some follow ups on top of my policy rcu conversion but then it should be good to go.