Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1097964pxk; Mon, 31 Aug 2020 09:40:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyK+Iw5hcW9JNH2vZsu2sPQACzKu0LubXtFzkkTCXTjxUTH+M3aD+85Sw/3PeO+/tLw1Y0b X-Received: by 2002:a50:88a4:: with SMTP id d33mr2014205edd.43.1598892026381; Mon, 31 Aug 2020 09:40:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598892026; cv=none; d=google.com; s=arc-20160816; b=XGmMFAiGt/zC0FnBnrLBLbJQPSfoB+xIItv7RE2Hm6/gU7P1HTk7CxTpzhmiFqt/Ij ahss6rIlAg2pCA68P0RQ8EegYxmiQTfJeqYb+4tl1DpFOWP4uhVrt99uEnrGyM3IwFpl EIG3mn/Ij9taJTHTWDDPxvBZfhlGm+tw3QzKL/9O5kXCFgiaqvrIjAi+ZICPCOmbnNyL fuylND+bChAmCAdFhDZpPoGyED96LhTfKxgwHNB5U12xiAIUDjKxlZfj2/jijW88OsTF 7OOpWocSWx3MMEneEWfXUNhAkZXQtGXnlPXP0U7TsmwAaJTL8d2+0bE/2NvIgt8MgF6T yW6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature:dkim-filter; bh=GgBq+5VlMaXRLhKt8NiZM6TEsQUV1hrj4rr8ds/qjsk=; b=HItxFKr0ynPgv6x00Zp6XpmAzJ0ewKRsrQrCToPfUqaODjaRa10a84R88Xay2DCGT6 IcKbqx75nEnYOe0hl0orYTW73+09B1AQusY8aITpJGCasqCy4DPu4aFL/PukDXNKOPIh SMCsNgedYWGVLCHDlgu90qBB5JTLZIx49x719GP6eVTgupeNSoNW9+vGrZmAWWlQpytW T04frq0iLh+TLNFViEgXEl/MTkGbsy5AcBJeFqZJ/YscVJLaR9I0yScKlajI9mjHNpjJ jOnF8b4OoZW20sjdAGC7a9jiSDT3Ds8eEb8ey3KobJDdBZJBw2GPkclpP2Vxh8oXAEZZ VGmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b="r/gWRXXe"; 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=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z2si5915128eju.353.2020.08.31.09.40.03; Mon, 31 Aug 2020 09:40:26 -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=@linux.microsoft.com header.s=default header.b="r/gWRXXe"; 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=NONE dis=NONE) header.from=linux.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728746AbgHaQjL (ORCPT + 99 others); Mon, 31 Aug 2020 12:39:11 -0400 Received: from linux.microsoft.com ([13.77.154.182]:33892 "EHLO linux.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726939AbgHaQjK (ORCPT ); Mon, 31 Aug 2020 12:39:10 -0400 Received: from [192.168.0.104] (c-73-42-176-67.hsd1.wa.comcast.net [73.42.176.67]) by linux.microsoft.com (Postfix) with ESMTPSA id 671FC20B7178; Mon, 31 Aug 2020 09:39:09 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 671FC20B7178 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1598891949; bh=GgBq+5VlMaXRLhKt8NiZM6TEsQUV1hrj4rr8ds/qjsk=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=r/gWRXXenYRrhPaikEQ9yCrJ/nfN5QdjLAq4e7Vlr6bLrSySkj/Lm9YqXHNBpyDgp MNimwrHUQ0d2NJGiLDhTkI0ejcmFlzzB8ZVlugXuXHg3v0klBGWf7COBfDNrdcNo/2 p6Z2C20qjxsha2QQuhDfDh+V4zZ5cTP3gzbU7DPU= Subject: Re: [PATCH] SELinux: Measure state and hash of policy using IMA To: Stephen Smalley 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 References: <20200822010018.19453-1-nramas@linux.microsoft.com> <418618c4-a0c6-6b28-6718-2726a29b83c5@linux.microsoft.com> <07854807-c495-b7e5-fc44-26d78ff14f1b@linux.microsoft.com> From: Lakshmi Ramasubramanian Message-ID: <612ec12d-0048-2a5f-83a5-518a11eb546d@linux.microsoft.com> Date: Mon, 31 Aug 2020 09:39:08 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/31/20 7:47 AM, Stephen Smalley wrote: >>>> >>> >>> 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. > > I think the major changes are now merged although there are still a > couple of changes coming from Ondrej that could affect your code. For > your purposes, the important things to note are: > > 1) The mutex has moved from selinux_fs_info to selinux_state and is > now named policy_mutex. You will need to take it around your call to > security_read_policy_kernel(). > > 2) security_policydb_len() was removed and security_read_policy() just > directly reads the policydb len. You can do the same from your > security_read_policy_kernel() variant. > > 3) Ondrej has a pending change to move the policycap[] array from > selinux_state to selinux_policy so that it can be atomically updated > with the policy. > > 4) Ondrej has a pending change to eliminate the separate initialized > boolean from selinux_state and just test whether selinux_state.policy > is non-NULL but as long as you are using selinux_initialized() to > test, your code should be unaffected. > Thanks a lot for the update Stephen. I will start updating the IMA measurement changes in selinux next branch. Will post the patches this week. -lakshmi