Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp7424121rwp; Tue, 18 Jul 2023 15:22:24 -0700 (PDT) X-Google-Smtp-Source: APBJJlHrfQnbFL7cmmxV+CPcm9ThJsS/ooQ0f18QyUKzcO2nijpTVSHpKapUlS9DTDqIzrZy4MTy X-Received: by 2002:a17:906:7c0f:b0:993:fe68:569d with SMTP id t15-20020a1709067c0f00b00993fe68569dmr759549ejo.17.1689718944535; Tue, 18 Jul 2023 15:22:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689718944; cv=none; d=google.com; s=arc-20160816; b=jQfMAMkqXQZfTUqe/tD3W3Jqqjrfsh6naSJq0QpzuPuVtGAA7gQqV/c9cZ/PYho3PV ueLWLsMMbTIvC98fbAwd81PuVBi9kmOBA7H2WCnG3efJQKZ7b9seI4iUL02qYAD9uVmL htHxRix3hvcRk9HzTqPmeAb7JVXzvf8ZG/r0Iiea6NJpDnwpqtMieCMHmdmzmycWgNfM vsOGM/r8zlFh8BX4XEBUbIPR7ycVPql5WxSpHf92zAyvLAoWJR3hcimcWJYFze5CES32 rqBmrTC4DVYToC6sBpykPuka4IzF9+JsIjdV0UmhT0fSbOletu8M+wvv/UCj2vnf7wI1 8b6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:references:subject:cc:to:from :message-id:date:dkim-signature; bh=9Jy5bic5jodoqmbRGQBCPtseqk5B/IX+1PNMGDEVdgk=; fh=2qhR+slWlLfCFoI6RRudRB9LWfb5wSXkgOygFC8RU90=; b=RAO3UyrYfR2w2XH1VevDRHJ/oToLrcQQbHoVAOe0h44VgfuMx11Sio2fl/7J/M1CNT 9nppGKo3amw+zagbN9RK+q3sG3arBih5kyr1a5EFl8SsmMexsVxS3yOlAl1mI9eOFC8N wNHkLaPwKp9TECejg/6jPlSBByGQyvqd9zpXXvODU0PL2oENtAbwMnEFORROF7ukuDyK O/PwCvQ+d1nx3N9R70Y4gJGOv4TkLlPMqsjLEltMc6zjKc6Aa38IFwnBzX0Tdh9R14TX ZctGiB/BI1ECo5vBZHPrlV64DDGZBf84VUmVIgQD6/h0Gz2vwq6Ownk/dp7QhhOmcScy diZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@paul-moore.com header.s=google header.b=bxDKoEjA; 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 oq19-20020a170906cc9300b0098d52a2bc16si1890892ejb.438.2023.07.18.15.21.59; Tue, 18 Jul 2023 15:22:24 -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=bxDKoEjA; 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 S230233AbjGRWBt (ORCPT + 99 others); Tue, 18 Jul 2023 18:01:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231237AbjGRWB1 (ORCPT ); Tue, 18 Jul 2023 18:01:27 -0400 Received: from mail-qk1-x734.google.com (mail-qk1-x734.google.com [IPv6:2607:f8b0:4864:20::734]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E970D19A9 for ; Tue, 18 Jul 2023 15:01:21 -0700 (PDT) Received: by mail-qk1-x734.google.com with SMTP id af79cd13be357-7653bd3ff2fso682061285a.3 for ; Tue, 18 Jul 2023 15:01:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paul-moore.com; s=google; t=1689717681; x=1692309681; h=in-reply-to:references:subject:cc:to:from:message-id:date:from:to :cc:subject:date:message-id:reply-to; bh=9Jy5bic5jodoqmbRGQBCPtseqk5B/IX+1PNMGDEVdgk=; b=bxDKoEjAsfDYs8OyejWBAycPM62wdEsI9sM9VRwnh8gkeW1tA+srstqLqDRcDmM8M2 oV/XjwxgXKxZUaxqrxI7PiPebl1L7tr3iiDIiCCKUJwv5uP6g5cGDeMZRQUifnBuAKSy Ek9clW+FoK+7sWQFDFi37i/gFh9yjGC1shzsFIHKu7v17HeOWGN0Hwze065oP/bDIZpy MFGwN3fVZCXH1eGAtjUTp9L9vmpPGHiWNFHRHqWrbQnmNWPdL25a4tYY7HtA8AiZDU/L ZfeEe1gqoqzVascCgZCnWVseKShIYqNk8nsqDytHpfO7qBgyLLhjdeQw0NAzOhDF2zBf jAdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689717681; x=1692309681; h=in-reply-to:references:subject:cc:to:from:message-id:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=9Jy5bic5jodoqmbRGQBCPtseqk5B/IX+1PNMGDEVdgk=; b=aDaKZ9siAPjQGyK9tLe5eK3WViF6iCHCavoO4oZdrV+IlOlhcqVVr2V+b2bBuavdgr BIUht+mMlWJrP9pBWpfrAeNtwh8+nputOtBYux2xE9sQea2DOL5UF6EbrUVcIJFY/3B5 pseq/f7DgtU6SCFmAOvRHHg4AV2sI4QIRx4FkSAD8X0AEOoKMYGBgyN171aIK5Kr8y9X dJRRBwNxqs8p6zDrrmQkFU+o/9JtfiKPSBH49DXnQrM+wF6kVyx2GBOOdNp5QPea8mzK sVo04WrdGtPnr7Hlj6GpP+Wq0I7ljA9cOynoAFD4GeD6BkO9Alo2aWmu2PYoJzI63HYi msAQ== X-Gm-Message-State: ABy/qLb9AhdlpY+jJQFAVoS5C+lF4GSoIHObUk+MNrdUr/XujDn+1o1D EAjoxStpcJvIi5Qj5DEXZuFY X-Received: by 2002:a05:620a:c0f:b0:75b:23a1:3606 with SMTP id l15-20020a05620a0c0f00b0075b23a13606mr17925433qki.23.1689717680837; Tue, 18 Jul 2023 15:01:20 -0700 (PDT) Received: from localhost ([70.22.175.108]) by smtp.gmail.com with ESMTPSA id p9-20020a05620a15e900b00767721aebc0sm889239qkm.32.2023.07.18.15.01.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Jul 2023 15:01:20 -0700 (PDT) Date: Tue, 18 Jul 2023 18:01:20 -0400 Message-ID: <95bf84fd76c7eac5e9e53ad658d26f2c.paul@paul-moore.com> From: Paul Moore To: =?UTF-8?q?Christian=20G=C3=B6ttsche?= , selinux@vger.kernel.org Cc: Stephen Smalley , Eric Paris , Ondrej Mosnacek , Xiu Jianfeng , linux-kernel@vger.kernel.org Subject: Re: [PATCH RFC 9/20] selinux: status: consistently use u32 as sequence number type References: <20230706132337.15924-9-cgzones@googlemail.com> In-Reply-To: <20230706132337.15924-9-cgzones@googlemail.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,PP_MIME_FAKE_ASCII_TEXT, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 Jul 6, 2023 =?UTF-8?q?Christian=20G=C3=B6ttsche?= wrote: > > Align the type with the one used in selinux_notify_policy_change() and > the sequence member of struct selinux_kernel_status. > > Signed-off-by: Christian Göttsche > --- > security/selinux/include/security.h | 2 +- > security/selinux/status.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) I was going to suggest you also update avc_latest_notif_update(), but it looks like you tackle that later in the patchset. Merged into selinux/next, thanks. > diff --git a/security/selinux/include/security.h b/security/selinux/include/security.h > index 0f93fd019bb4..a16c52d553e1 100644 > --- a/security/selinux/include/security.h > +++ b/security/selinux/include/security.h > @@ -376,7 +376,7 @@ struct selinux_kernel_status { > } __packed; > > extern void selinux_status_update_setenforce(int enforcing); > -extern void selinux_status_update_policyload(int seqno); > +extern void selinux_status_update_policyload(u32 seqno); > extern void selinux_complete_init(void); > extern struct path selinux_null; > extern void selnl_notify_setenforce(int val); > diff --git a/security/selinux/status.c b/security/selinux/status.c > index 19ef929a075c..e436e4975adc 100644 > --- a/security/selinux/status.c > +++ b/security/selinux/status.c > @@ -101,7 +101,7 @@ void selinux_status_update_setenforce(int enforcing) > * It updates status of the times of policy reloaded, and current > * setting of deny_unknown. > */ > -void selinux_status_update_policyload(int seqno) > +void selinux_status_update_policyload(u32 seqno) > { > struct selinux_kernel_status *status; > > -- > 2.40.1 -- paul-moore.com