]> xenbits.xensource.com Git - xen.git/commit
tools: add configure option for disabling pygrub
authorJuergen Gross <jgross@suse.com>
Wed, 9 Aug 2023 07:05:23 +0000 (09:05 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 9 Aug 2023 07:05:23 +0000 (09:05 +0200)
commitc9a899f7f497ce39aa7d5f35bf6f15feca94e260
tree6abc53469ced6051fe3d1d7c7c54f8d763b7b25d
parentf974004ccb69d2d987815b431a5f58672e6e4686
tools: add configure option for disabling pygrub

Add a "--disable-pygrub" option for being able to disable the build
and installation of pygrub.

There are two main reasons to do so:

- A main reason to use pygrub is to allow a PV guest to choose its
  bitness (32- or 64-bit). Pygrub allows that by looking into the boot
  image and to start the guest in the correct mode depending on the
  kernel selected. With 32-bit PV guests being deprecated and the
  possibility to even build a hypervisor without 32-bit PV support,
  this use case is gone for at least some configurations.

- Pygrub is running in dom0 with root privileges. As it is operating
  on guest controlled data (the boot image) and taking decisions based
  on this data, there is a higher security risk. Not being possible
  to use pygrub is thus a step towards a reduction of attack surface.

Default is still to build and install pygrub.

Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Anthony PERARD <anthony.perard@citrix.com>
config/Tools.mk.in
tools/Makefile
tools/config.h.in
tools/configure
tools/configure.ac