Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp1798838rdf; Sun, 5 Nov 2023 15:09:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IFrZy8nKQCaAbalMSVEBBhknv/sMaNHo6bQEh4TAbsfy7aUYnsAE/BKrrKflFtGrct77xii X-Received: by 2002:a05:6870:d8cf:b0:1d6:5b09:1584 with SMTP id of15-20020a056870d8cf00b001d65b091584mr36667240oac.5.1699225769622; Sun, 05 Nov 2023 15:09:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699225769; cv=none; d=google.com; s=arc-20160816; b=PBI1DVmbp239vph/iQcuUjV8u2BrNcVMgs5ubZuR7HgBgpRvP7DybQOu5cLmUezgcm T3jujyZ34dk3WCWMTdl8fKBPJbmwXD17XuD0UlRFwsQqc/d+kNkSTfLOoPPIpIlJO4jk c2aW2gve6G3zhD8kxHZONepFcBYEc3zabOrWnogUlbSq1is7XvQgUQ2enpyToCNCaVzL MXboOMkyns5SQAfOub7x50/Rta8pSWBifOh6lVIvKisn3wAa/zpZlZyVFEWjXF7Bitfg 8XxIBsBoeoGQuydbeF6q5X6cIanplawNv13UBlYmvl2Hfvssx/Xv/1ZYE/q9ujoNWRy5 mRlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=K0yX5PBFL48awonuW1w9J4/ecr4f7GPYpsQu94b9V+Y=; fh=G8vXYhKcmTnSJUIANFnNg5yaGRlG0Q2td2RXzjMEBrI=; b=clplXr8jyzybtXAGln9ovKK7Bw3LBZcWCGhe2Vkb6fMw1DV8EgWwfOy4uCL2927Wjj pRIMPH7GURIE9JY5ADFzDVhor1DIwAZy9F3n97Hw4+xB2nbpj4cCStRD7zmm43PH9hB5 oSxOhGwGR+3aEuOD2jN+62sQMRzjj/keHuHIn3Ph7xATisiJgvrJVUwfOvvteBuQlHhT Dw77kxPPTbEB4QAxrRdFaCs2jbszhSL3t41gyOKXiR5UTDBjLj+DR0FCQRnhO/iWyPAu rcDHoe98OWitzJnZjJwYTm16OEnyxNyQQGGnRiab51WbB7F7FyXXSGBTMDFIF5xBQbSK dDtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=rQSaLNop; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canb.auug.org.au Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id cm23-20020a056a020a1700b005b8f38f9973si7368604pgb.730.2023.11.05.15.09.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Nov 2023 15:09:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=rQSaLNop; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canb.auug.org.au Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 3E07880ABB28; Sun, 5 Nov 2023 15:09:25 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229854AbjKEXJS (ORCPT + 99 others); Sun, 5 Nov 2023 18:09:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37788 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229597AbjKEXJR (ORCPT ); Sun, 5 Nov 2023 18:09:17 -0500 Received: from gandalf.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59EFCE0; Sun, 5 Nov 2023 15:09:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canb.auug.org.au; s=201702; t=1699225752; bh=K0yX5PBFL48awonuW1w9J4/ecr4f7GPYpsQu94b9V+Y=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=rQSaLNopqQvqYrOwOEyZXOVn4FvZGeycqGSaUWnwgnJx1x2zh7wlSAC5avVWeg+K9 lEvwDXs4gjCuf/DQrLhAVXEwpuHC0MW202kiEK1wYwAQzo9Rm1StC9/s6E/RRlsH3n HgTGFwF2vPOLjgiuFvKVuaWNwn7Qxu+WrtTn0oAC84pP2q/E5nd6fAGdYSnWpXS4PM 9dZ7VlJEPoNR16UPjSuT5i6rqrv50E0uL2KVLRGkCSSoQJl19tigJ3wSD496Kdia1k D7ZcRZp6c6A8eS3/CcmI/2QIxpJaliYRB3sCjzcRHZmY+BMZ66VLBcAjJunkgVcFy5 rbPlVdL/VpQUg== Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4SNqtJ1Wf7z4xPQ; Mon, 6 Nov 2023 10:09:12 +1100 (AEDT) Date: Mon, 6 Nov 2023 10:09:11 +1100 From: Stephen Rothwell To: Paul Moore Cc: John Johansen , Casey Schaufler , Linux Kernel Mailing List , Linux Next Mailing List Subject: Re: linux-next: manual merge of the apparmor tree with the security tree Message-ID: <20231106100911.1f94abd9@canb.auug.org.au> In-Reply-To: <20231027130320.69469330@canb.auug.org.au> References: <20231027130320.69469330@canb.auug.org.au> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/g.iwLCQgR7xwrLqknfsqLo0"; protocol="application/pgp-signature"; micalg=pgp-sha256 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Sun, 05 Nov 2023 15:09:25 -0800 (PST) --Sig_/g.iwLCQgR7xwrLqknfsqLo0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi all, On Fri, 27 Oct 2023 13:03:20 +1100 Stephen Rothwell = wrote: > > Today's linux-next merge of the apparmor tree got a conflict in: >=20 > security/apparmor/lsm.c >=20 > between commit: >=20 > 3c3bda37ca1d ("AppArmor: Add selfattr hooks") >=20 > from the security tree and commits: >=20 > bd7bd201ca46 ("apparmor: combine common_audit_data and apparmor_audit_d= ata") > d20f5a1a6e79 ("apparmor: rename audit_data->label to audit_data->subj_l= abel") >=20 > from the apparmor tree. >=20 > I fixed it up (see below) and can carry the fix as necessary. This > is now fixed as far as linux-next is concerned, but any non trivial > conflicts should be mentioned to your upstream maintainer when your tree > is submitted for merging. You may also want to consider cooperating > with the maintainer of the conflicting tree to minimise any particularly > complex conflicts. >=20 > diff --cc security/apparmor/lsm.c > index 5e16c03936b9,4d34180e9799..000000000000 > --- a/security/apparmor/lsm.c > +++ b/security/apparmor/lsm.c > @@@ -771,16 -868,11 +917,16 @@@ out > return error; > =20 > fail: > - aad(&sa)->label =3D begin_current_label_crit_section(); > + ad.subj_label =3D begin_current_label_crit_section(); > - ad.info =3D name; > + if (attr =3D=3D LSM_ATTR_CURRENT) > - aad(&sa)->info =3D "current"; > ++ ad.info =3D "current"; > + else if (attr =3D=3D LSM_ATTR_EXEC) > - aad(&sa)->info =3D "exec"; > ++ ad.info =3D "exec"; > + else > - aad(&sa)->info =3D "invalid"; > - aad(&sa)->error =3D error =3D -EINVAL; > - aa_audit_msg(AUDIT_APPARMOR_DENIED, &sa, NULL); > - end_current_label_crit_section(aad(&sa)->label); > ++ ad.info =3D "invalid"; > + ad.error =3D error =3D -EINVAL; > + aa_audit_msg(AUDIT_APPARMOR_DENIED, &ad, NULL); > + end_current_label_crit_section(ad.subj_label); > goto out; > } > =20 This is now a conflict between the security tree and Linus' tree. --=20 Cheers, Stephen Rothwell --Sig_/g.iwLCQgR7xwrLqknfsqLo0 Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAmVIIJcACgkQAVBC80lX 0Gw03gf/cFPxT0LwJV+lg/tadhfTiM7d3IenUgzcneeC2kXy7qHoHE2E+gpe126m k6KjOHLgxP8AGBdg+KUOBHV6Bh3Dku+E4yNQz/f4LofqIxwrrbyq2BsMT6jffp60 1eE8QyTHxoLQ34KgiSYjRr9CNNFAwk8vX3Cy0M+8vh+hg4BZplmhpPtFyzcAgsFY h7HnqJxSg29H//tVv3FB5BHNXnfKRCgAq05FD03YD94YPWAm4rqe/XrhoVas9Ijd kzt1b1vzwHRm/gg0xAZTCVCnwVoZrvPm7yTfkdeRZATGTHPyMmmtSY6oDjONInqK FBx3Pi5t3Yv9ctbK+z4bt/AIPY/h5w== =j0VG -----END PGP SIGNATURE----- --Sig_/g.iwLCQgR7xwrLqknfsqLo0--