From: Eric Anholt Subject: Re: [PATCH 1/2] intel: Add support for overriding the PCI ID via an environment variable Date: Mon, 05 Mar 2012 15:18:17 -0800 Message-ID: <87sjhmprgm.fsf@eliezer.anholt.net> References: <1329857978-30626-1-git-send-email-kenneth@whitecape.org> <20120303152245.GM3395@radis.cristau.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1665632216==" Return-path: In-Reply-To: <20120303152245.GM3395@radis.cristau.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: Julien Cristau , Chris Wilson Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org --===============1665632216== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --=-=-= Content-Transfer-Encoding: quoted-printable On Sat, 3 Mar 2012 16:22:45 +0100, Julien Cristau wro= te: > On Tue, Feb 21, 2012 at 21:11:07 +0000, Chris Wilson wrote: >=20 > > On Tue, 21 Feb 2012 12:59:37 -0800, Kenneth Graunke wrote: > > > @@ -1828,6 +1829,9 @@ drm_intel_gem_bo_mrb_exec2(drm_intel_bo *bo, in= t used, > > > execbuf.rsvd1 =3D 0; > > > execbuf.rsvd2 =3D 0; > > >=20=20 > > > + if (getenv("INTEL_DEVID_OVERRIDE")) > > > + goto skip_execution; > >=20 > > I'm not thrilled about calling getenv() for every execbuffer. And what > > about the original execbuffer path? >=20 > I'm not thrilled about allowing the user to modify X server behaviour > with an env variable. This is setuid root after all. I guess this also > applies to the existing calls to getenv in the dri driver. Yeah, this seems roughly of the same class as the many environment variables we've always had. I'm going to take a shot at disabling a bunch under setuid, though. --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk9VSbkACgkQHUdvYGzw6ve0AgCgigdEtNkyrdVEuqtpwbeczDZE JYEAmwWFqJldZ4yYW8X8uBJkaVEeTPqP =4Nii -----END PGP SIGNATURE----- --=-=-=-- --===============1665632216== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx --===============1665632216==--