Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp139698lqm; Tue, 30 Apr 2024 15:55:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX+EESjp2ViTVKeV6soCKRiDdbIaCIWJmNWoZHVyMsM15TpPDa9pYGYkjxy1W7v2qO5jXV399n0r0L6EYiSryfOJhsFUZYke7B+sKzsLQ== X-Google-Smtp-Source: AGHT+IG3bccgm/JW8ledyA5rQsW/OpiibBC9UyRISK4kmhPfhml/OWa1oemJQKUCz+pTKNVQ7x8L X-Received: by 2002:a05:622a:45:b0:43c:5d8c:f854 with SMTP id y5-20020a05622a004500b0043c5d8cf854mr871442qtw.11.1714517719845; Tue, 30 Apr 2024 15:55:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714517719; cv=pass; d=google.com; s=arc-20160816; b=RzP0T1KYHK353NaNRYjE/pWVxe7m8maZmUTjFI6t/KWt6iHD7qoL4ttoDssfVcwknp 9BFlfCapCDEr6lG7w8xsymfE0u+ylY7bXkG6z/mkh8gcvOk/BVkMeYPvNarij3epaFAr 8XCrN/S0WEoV+Ry3R9pblBkl5i8QKajfGcxQIoVOjPll9MqMZAPcffyTH1qKyl1zEUZ5 51CS+d/NfSO2Z01Tq8I8ziaEPQ3QhgGGKxfZJH+WaoLbLFezB8ronhqaXMfIy/vXKg1P hXdakkJLXKv8kAoen21lPvt1Jr00WViEn3zeYD46eH3xTCzCbQJhne6Ocun0MRwly+z0 yWXQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:subject:cc:to:from:content-transfer-encoding :content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:date:dkim-signature; bh=qAxmFkbAsUiCyvuOdki7NFBNiRnXQiLD4GpfQPzTS0g=; fh=LlcfSLT/Hewp5V9QwCOk8ACv2hHNHj5EhVXMkSisy90=; b=i5feHyJtqn+7aA/GmhbPk5B0DlO6gw+r8hZ+VhBeJ6JxMSSPs6ta7g8Dir38P3oITZ fG+0tsqfzwL2BDvw9mQZk4kvTIew9WcBgg6+5/FhVWDmXQEXHoqN1DgJj50x/Bzm4WTF yqm7bgaAj54SXx83NGan3dsoKC+rip+VTJSynqdZbJ/YisYcYAk59dDoQjkSKgkj8x8Q RNto5/O1z+917nD/QfiwN4D6Wt1aTkglVRUMX/r0ANHbNbSFAU12tzJeb/Jpmtp6zqcJ izm0TeC/AyPIabs4fdotD0RXU3XE6knVDRWUz4Cz+sJuL5l0E7C8hFEE4XjDfjSRZOHF uttg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@paul-moore.com header.s=google header.b=LR1+SD3b; arc=pass (i=1 spf=pass spfdomain=paul-moore.com dkim=pass dkdomain=paul-moore.com dmarc=pass fromdomain=paul-moore.com); spf=pass (google.com: domain of linux-kernel+bounces-164783-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164783-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=paul-moore.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id bs5-20020ac86f05000000b0043a09afe8b9si18956638qtb.128.2024.04.30.15.55.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 15:55:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-164783-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@paul-moore.com header.s=google header.b=LR1+SD3b; arc=pass (i=1 spf=pass spfdomain=paul-moore.com dkim=pass dkdomain=paul-moore.com dmarc=pass fromdomain=paul-moore.com); spf=pass (google.com: domain of linux-kernel+bounces-164783-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164783-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=paul-moore.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 924061C2256E for ; Tue, 30 Apr 2024 22:55:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6CA7B129E72; Tue, 30 Apr 2024 22:55:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=paul-moore.com header.i=@paul-moore.com header.b="LR1+SD3b" Received: from mail-yb1-f173.google.com (mail-yb1-f173.google.com [209.85.219.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 08ADA2C853 for ; Tue, 30 Apr 2024 22:55:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714517712; cv=none; b=IJAf0u6KCqb/oCxskO8NcMNZn4qFiqi+ezaVmJ3MJYXYCFYNcQ4HgqRQ+1k4wrT9gUU4xGGjm516a2Glr1IeN0ulZtC+O/wpgH3L80uuRolgVMWUxorMTa/+H/EDsKkPfnVyoKrlJnQIhDd0sHWRJZvCAzhHDj77ppu+G0z5UW0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714517712; c=relaxed/simple; bh=ho9UgidLiuIiBiXIVvh/lWotAt12lUioguVCFMrGAmc=; h=Date:Message-ID:MIME-Version:Content-Type:Content-Disposition: From:To:Cc:Subject:References:In-Reply-To; b=HGHKWnyLB5cLL30aa/duXZloE2OIKFJM7oyZByGgBbGAFIYDufv/zh1tY3+44rfnCb55ddfmTDK+TeEYvjLLK6kAOHToVmq0Xg8imdCXbCf4VFZwwpO/s4V3OZ9Zk1RX5mEGZHOXdG0yNsPjbzIXM6OJW4VbH2prnzb/7P5phHo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=paul-moore.com; spf=pass smtp.mailfrom=paul-moore.com; dkim=pass (2048-bit key) header.d=paul-moore.com header.i=@paul-moore.com header.b=LR1+SD3b; arc=none smtp.client-ip=209.85.219.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=paul-moore.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=paul-moore.com Received: by mail-yb1-f173.google.com with SMTP id 3f1490d57ef6-de604ca3cfcso2362114276.3 for ; Tue, 30 Apr 2024 15:55:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paul-moore.com; s=google; t=1714517710; x=1715122510; darn=vger.kernel.org; h=in-reply-to:references:subject:cc:to:from:content-transfer-encoding :content-disposition:mime-version:message-id:date:from:to:cc:subject :date:message-id:reply-to; bh=qAxmFkbAsUiCyvuOdki7NFBNiRnXQiLD4GpfQPzTS0g=; b=LR1+SD3biqdcF6A6o9pUxIPnARLIy/lqOU8lmNIDYmyGTvDQoCNNta3I47of2ph6fW eGU8a2VXkCc9WQHGyIrUzkQUy42/i03fHhhhxKgdYFtByYb2hheXB01p5erwO6Dxtr+Z WdczpBnzj389dx9qVi49wWn4YB1UJx18mPj2LD0Yj4+TCjqOAIWbnfMDFhufIUjGH5BD wBTrckUCqxK0i6Sk7ZX0TxfeStHOWZlLvpEpY3KTiH60NL5z0/CBwZiHzP7tBhMUN3+6 211G1wr87B4266HARbONbsivvTlga/RmPxYfxE31efayQkQPqQLAwh/sbvSQN+5xKv/g 79jA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714517710; x=1715122510; h=in-reply-to:references:subject:cc:to:from:content-transfer-encoding :content-disposition:mime-version:message-id:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=qAxmFkbAsUiCyvuOdki7NFBNiRnXQiLD4GpfQPzTS0g=; b=wTtEDLuBdvWSAjY9FH/XjPN3L+XzczFcdWc+0elKgv0W6wUFNAIeSRVW3JN4Pc5eRD DoxV3uI4R3NTv/2rgRu7QNxslzSIkafHQ/qkAJ5Cl2TMpv2Err49U6u14OIaQ6YsIik4 ubNqzAv6kHiMbl534wGtswO6rXdnWHnwzUNSKLkk9OhEVar110LUa5LZmKb8TgJXYOlO Id3E3cEwcdlyXoyqTEz06l1Kt9Eu85LAQPoKeJTc519brt/w/irhD5b08o03aF2wQp3B OEK6F5l7ZPT0NghNqrKeKT1Wg4CHFmJzp4V4qoqELrjgwiiYFgN2COydnNx4q3RNhw1f 3n4w== X-Forwarded-Encrypted: i=1; AJvYcCXDXf1M/lFdFew8XozEhttYoprMP8mlVB2+ThSQWPWich8Qh4e+gfMqdtOSJULKDeoyIsgale2QkkN87eCIHYZUHyGuxoGg3O+EyPGP X-Gm-Message-State: AOJu0Yw1WAdJzhyEP5g63wpx05pEMgwZhkvVpDfbBsfdinbv8Jada8W3 kGVzDetnlQU9SiHxvEbs0kbYv2/pB+/9RtL0mtjI1/acgRgX1ge8+6Pz8wKGqQ== X-Received: by 2002:a25:e08b:0:b0:de0:f74b:25f3 with SMTP id x133-20020a25e08b000000b00de0f74b25f3mr1085836ybg.60.1714517709840; Tue, 30 Apr 2024 15:55:09 -0700 (PDT) Received: from localhost ([70.22.175.108]) by smtp.gmail.com with ESMTPSA id do7-20020a05622a478700b0043999fccc10sm8941117qtb.62.2024.04.30.15.55.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 15:55:09 -0700 (PDT) Date: Tue, 30 Apr 2024 18:55:09 -0400 Message-ID: <6a578214df994a783c067644c62aa443@paul-moore.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit From: Paul Moore To: =?UTF-8?q?Christian=20G=C3=B6ttsche?= , selinux@vger.kernel.org Cc: =?UTF-8?q?Christian=20G=C3=B6ttsche?= , Stephen Smalley , Ondrej Mosnacek , linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] selinux: constify source policy in cond_policydb_dup() References: <20240405161042.260113-2-cgoettsche@seltendoof.de> In-Reply-To: <20240405161042.260113-2-cgoettsche@seltendoof.de> On Apr 5, 2024 =?UTF-8?q?Christian=20G=C3=B6ttsche?= wrote: > > cond_policydb_dup() duplicates conditional parts of an existing policy. > Declare the source policy const, since it should not be modified. > > Signed-off-by: Christian Göttsche > --- > security/selinux/ss/conditional.c | 12 ++++++------ > security/selinux/ss/conditional.h | 2 +- > security/selinux/ss/hashtab.c | 9 +++++---- > security/selinux/ss/hashtab.h | 4 ++-- > 4 files changed, 14 insertions(+), 13 deletions(-) I had to do some line length fixups, but otherwise this looked good to me, merged into selinux/dev. Thanks! -- paul-moore.com