From: Doug Goldstein Subject: Re: XSM denials with 4.7.0 RC1 Date: Wed, 4 May 2016 14:43:41 -0500 Message-ID: References: <37c4c8fe-c803-dcd1-4934-0674628b2c45@cardoe.com> <572A2F5A.1080800@tycho.nsa.gov> <9da3149a-30a6-6fbf-fe53-b24d2dc788ec@cardoe.com> <20160504193955.GE7494@char.us.oracle.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3719912038295739707==" Return-path: In-Reply-To: <20160504193955.GE7494@char.us.oracle.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" To: Konrad Rzeszutek Wilk Cc: Daniel De Graaf , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --===============3719912038295739707== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="qqBg7kK0XdWsWGbME7DjmlSQGgo4jFUvD" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --qqBg7kK0XdWsWGbME7DjmlSQGgo4jFUvD Content-Type: multipart/mixed; boundary="2XDojWxb0KvPl2CuCDrWdvQ7d1uAiaFOh" From: Doug Goldstein To: Konrad Rzeszutek Wilk Cc: Daniel De Graaf , "xen-devel@lists.xen.org" Message-ID: Subject: Re: [Xen-devel] XSM denials with 4.7.0 RC1 References: <37c4c8fe-c803-dcd1-4934-0674628b2c45@cardoe.com> <572A2F5A.1080800@tycho.nsa.gov> <9da3149a-30a6-6fbf-fe53-b24d2dc788ec@cardoe.com> <20160504193955.GE7494@char.us.oracle.com> In-Reply-To: <20160504193955.GE7494@char.us.oracle.com> --2XDojWxb0KvPl2CuCDrWdvQ7d1uAiaFOh Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 5/4/16 2:39 PM, Konrad Rzeszutek Wilk wrote: >> >> Well it turns out yes I was using a bad policy. I grabbed the policy >> updates from master and not from 4.7.0-rc1 when I merged them with my >> policy. So yes the above are incorrect and noise on my part. master >> wasn't (and still isn't) at the same point that 4.7.0-rc1 was at. >> >>> >>>> (XEN) avc: denied { xen_commandline } for domid=3D1 >>>> scontext=3Dsystem_u:system_r:domU_t tcontext=3Dsystem_u:system_r:xen= _t >>>> tclass=3Dversion >>>> (XEN) avc: denied { xen_build_id } for domid=3D1 >>>> scontext=3Dsystem_u:system_r:domU_t tcontext=3Dsystem_u:system_r:xen= _t >>>> tclass=3Dversion >>> >>> If these show up for domUs in normal operation (and I think using >>> "xl devd" probably qualifies for that), then they probably need >>> dontaudit rules. >>> >> >> These are still happening for any domD running "xl devd". >=20 > Is 'domD' not part of domain_type? >=20 > As in the policy has: >=20 > allow domain_type xen_t:version { = =20 > xen_extraversion xen_compile_info xen_capabilities = =20 > xen_changeset xen_pagesize xen_guest_handle = =20 > }; =20 >=20 > Is domD under a different type? In which case it sounds as if you > are using a non-default XSM policy? >=20 I'm calling it domD (since I'm passing a device into it) but its a domU. Ignore my wording. I've got a few extra allows at the bottom of the default policy to allow a PCI device to be passed in. --=20 Doug Goldstein --2XDojWxb0KvPl2CuCDrWdvQ7d1uAiaFOh-- --qqBg7kK0XdWsWGbME7DjmlSQGgo4jFUvD Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0 iQJ8BAEBCgBmBQJXKlDtXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRBNTM5MEQ2RTNFMTkyNzlCNzVDMzIwOTVB MkJDMDNEQzg3RUQxQkQ0AAoJEKK8A9yH7RvUkVkP/2SfuYaLjJqqUUt+uZFALns4 p+iGb6eKr7BZXQaNGLB3/+ORlRDQXOO5BFi3LSjOhyjvET8utgBFBKPjROzuWFsw jj77Sz4AnaiBt5ia91ADXs6pXUGDy0Qy9SehBwaqwGOeaFMPDAsrRcwJXl/2aOlo TdvXyJO8GiEAi1RFgWMtEEG1GxH1NLAp8eAf7NFe4CQ0mk35Wdzv2bncT8Qpt3Mo L+6eFnL9Gd79sggdkIS60GcFlKcoluUtCSpobEIqK1vu8edInhYUz18HPWtfw2v+ 8wD+vY4TQvbFNedGfHWtn26wt316D95hCY5xXvea8ROlroAKxUsDodinK1aTW3Iy LCHiTBMm9AhWINvyBqqPheOyikVuOS8PR/ENeGnOm02m3OgpwEK7TsOvqtBH5nBB huko8ZPJ7HYl9LCPM5XJWl1yoBWc1ThBOaUqzgE6aLgqaLcowRmLroq+FYPV3iMi MdZ69koj0D+Ot63Jzi0F1QmdY7enqUgqAYMjPLFnqFzgCpXx8cMMion+NwT/ffG6 0Sl6kp/a5D1FzfM0P24i4iGM8U0QgKMlJBiloAxrwQ1+F/UShfJOr/SGVTmpCPba kNqoatMicQj+dIgiMnE7lSLaCtIOXsimDioDDh53/gGalwVzTacwXVHEznvTmGKo sYS11OJ6tSYPKkjZv74b =LTeS -----END PGP SIGNATURE----- --qqBg7kK0XdWsWGbME7DjmlSQGgo4jFUvD-- --===============3719912038295739707== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KWGVuLWRldmVs IG1haWxpbmcgbGlzdApYZW4tZGV2ZWxAbGlzdHMueGVuLm9yZwpodHRwOi8vbGlzdHMueGVuLm9y Zy94ZW4tZGV2ZWwK --===============3719912038295739707==--