From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1Vw1KM-0001D3-4B for mharc-grub-devel@gnu.org; Wed, 25 Dec 2013 22:09:38 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50184) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vw1KF-00014b-02 for grub-devel@gnu.org; Wed, 25 Dec 2013 22:09:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vw1K9-0001eE-Kz for grub-devel@gnu.org; Wed, 25 Dec 2013 22:09:30 -0500 Received: from mail-la0-x22b.google.com ([2a00:1450:4010:c03::22b]:59631) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vw1K9-0001e5-0g for grub-devel@gnu.org; Wed, 25 Dec 2013 22:09:25 -0500 Received: by mail-la0-f43.google.com with SMTP id n7so3557016lam.30 for ; Wed, 25 Dec 2013 19:09:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:subject:from:to:date:in-reply-to:references:content-type :mime-version; bh=/gU7LZ8EAgOD6II2IrmrEOAWouiUSURTI7rIiw2gGcY=; b=iJtew8oi3XROLK0PCai5T6bYP58ra9r2Z5eaeveUEuMY6BCiJ+eA++qSf9Ydk5sGsJ G6S1isAbNT5BY2e+BfaEM+Ah05LC1ln5Eecva8VZHuJTA3tZb/TnlSJkvCpF+GSNSOZS yYaWSS98crObH5Rsf0gQRfZUkHb+IHo2I6TqcqwaVgl9wKik1GIBfbtubJgRzMCP6dZj aPjbYMLHVzxgddDeeZzfVWB2AzkP25H7VPUlrNijvJpP90X4t92havwC5fTwlNjdzlM+ mp1/rtfvbh+N0QyibCASQvgx59+5MmF4TD4YrUnBloISQKUOYECwa6+0dsNG4F4LydLy qEig== X-Received: by 10.112.157.234 with SMTP id wp10mr2254461lbb.50.1388027364007; Wed, 25 Dec 2013 19:09:24 -0800 (PST) Received: from [192.168.1.44] (ppp91-76-134-134.pppoe.mtu-net.ru. [91.76.134.134]) by mx.google.com with ESMTPSA id r10sm22658168lag.7.2013.12.25.19.09.22 for (version=SSLv3 cipher=RC4-SHA bits=128/128); Wed, 25 Dec 2013 19:09:23 -0800 (PST) Message-ID: <1388027362.918.58.camel@opensuse.site> Subject: Re: grub tools and Windows UAC From: Andrey Borzenkov To: grub-devel@gnu.org Date: Thu, 26 Dec 2013 07:09:22 +0400 In-Reply-To: <52BACCB2.3020507@gmail.com> References: <52BACCB2.3020507@gmail.com> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-vPVFMnBy9GUt3k4IvRih" X-Mailer: Evolution 3.10.2 Mime-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::22b X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Dec 2013 03:09:36 -0000 --=-vPVFMnBy9GUt3k4IvRih Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable =D0=92 =D0=A1=D1=80, 25/12/2013 =D0=B2 13:16 +0100, Vladimir '=CF=86-coder/= phcoder' Serbinenko =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > On 25.12.2013 12:11, Andrey Borzenkov wrote: > > If UAC is enabled, running grub-install (and probably others too - did > > not try) will request privilege elevation; but then process is > > re-launched in separate window and disappears after it is finished. > > This makes even reading help impossible. > I think that the cause of it is get_default_platform which uses > get_efi_variable to check for EFI. Yes, of course. > Perhaps we should check privileges > and assume BIOS if get_default_platform is run just for the help. Better would be to tell the truth - platform unknown. We will need privilege elevation to perform installation any way. What we could do is to explicitly warn user about it and later grub-install will simply exit due to unknown platform. > >=20 > > May be grub should check for privilege elevation status and refuse to > > run if it is not sufficient. > >=20 > > _______________________________________________ > > Grub-devel mailing list > > Grub-devel@gnu.org > > https://lists.gnu.org/mailman/listinfo/grub-devel > >=20 >=20 >=20 > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > https://lists.gnu.org/mailman/listinfo/grub-devel --=-vPVFMnBy9GUt3k4IvRih Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iEYEABECAAYFAlK7neIACgkQR6LMutpd94w90gCfV3FbEoTqz/LLAt2OWPKMNyMF YaEAoL4f9SwZD8eOK6ucKL3HzcJDjGfD =1X+N -----END PGP SIGNATURE----- --=-vPVFMnBy9GUt3k4IvRih--