grub-devel.gnu.org archive mirror
 help / color / mirror / Atom feed
From: Andrey Borzenkov <arvidjaar@gmail.com>
To: grub-devel@gnu.org
Subject: Re: grub tools and Windows UAC
Date: Sun, 29 Dec 2013 20:55:31 +0400	[thread overview]
Message-ID: <1388336131.918.119.camel@opensuse.site> (raw)
In-Reply-To: <52BACCB2.3020507@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1534 bytes --]

В Ср, 25/12/2013 в 13:16 +0100, Vladimir 'φ-coder/phcoder' Serbinenko
пишет:
> 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. Perhaps we should check privileges
> and assume BIOS if get_default_platform is run just for the help.
> > 

It turned out to be completely unrelated. In its infinite wisdom Windows
assumes that if program has "install" or "setup" in its name, it
requires privileges elevation. Just try to run grub-bios-setup.exe :)

I did not find how to prevent it. The only suggestion is to create
manifest, but it has somewhat interesting effect - adding manifest with
level="asInvoker" does not stop Windows from attempting elevation but
now blocks attempt. So program immediately terminates with Access
Denied. And it results in nagging window about unsigned application (may
be signed applications would behave differently).

It is possible to set environment variable __compat_layer to
RunAsInvoker, but it must be done *before* starting process and is
outside of grub control.

Unless someone with better Windows experience can offer solution I'm
afraid we have to live with it. Or rename these programs on Windows.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

      parent reply	other threads:[~2013-12-29 16:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-25 11:11 grub tools and Windows UAC Andrey Borzenkov
2013-12-25 12:16 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-12-26  3:09   ` Andrey Borzenkov
2013-12-29 16:55   ` Andrey Borzenkov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1388336131.918.119.camel@opensuse.site \
    --to=arvidjaar@gmail.com \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).