All of lore.kernel.org
 help / color / mirror / Atom feed
* qemu-ga: safer default command policy? (re: "Improve mechanism for configuring allowed commands", June 2024)
@ 2026-11-27  5:30 Andrija Panic
  2026-11-27  5:53 ` Andrija Panic
  2026-11-27  9:20 ` Daniel P. Berrangé
  0 siblings, 2 replies; 4+ messages in thread
From: Andrija Panic @ 2026-11-27  5:30 UTC (permalink / raw)
  To: qemu-devel; +Cc: berrange, michael.roth, kkostiuk, armbru

Hi Daniel, Michael, Kostiantyn, all,

I would like to revisit Daniel's series from June 2024:

  [PATCH 00/14] Improve mechanism for configuring allowed commands
  https://patchwork.kernel.org/project/qemu-devel/cover/20240604153242.251334-1-berrange@redhat.com/

As far as I can see in the archive, it stopped after the branch
request in July 2024, there was no v2, and current master still has
"allow everything" as the fallback policy in ga_command_is_allowed().
Is the idea still wanted? I would be glad to help with testing.

Why I am asking now: I work on Apache CloudStack and on VMware-to-KVM
migration tooling. Until a few years ago qemu-ga was installed on
relatively few guests. That is changing quickly. Management stacks
now use it for IP reporting, boot readiness checks and quiesced
snapshots, and migration guides tell users to install it. Many guests
that never ran the agent are getting it now, usually from distro
packages, with whatever the distro default is.

Those defaults differ a lot today (read from each packaging source):

  - QEMU upstream: everything allowed.
  - Debian and Ubuntu: the unit runs plain /usr/sbin/qemu-ga and no
    qemu-ga.conf is shipped, so everything is allowed. Debian bug
    #1076139 (July 2024) asked for a change; it was marked wishlist,
    with the service file taken from upstream as-is.
  - Fedora rawhide: a block list is shipped but commented out, so
    everything is allowed.
  - openSUSE Factory: blocks guest-exec and guest-exec-status only;
    guest-file-* stay enabled.
  - RHEL 9/10 and rebuilds: an --allow-rpcs list without guest-exec*
    and guest-file-*. That list still includes guest-set-user-password
    and guest-ssh-add-authorized-keys, i.e. the "user auth" group the
    --no-user-auth flag was meant to cover.

So no distribution I checked blocks password and SSH-key injection,
and only one blocks file access.

I understand the usual answer: without confidential computing the
host can read guest RAM and disks anyway. I think that undersells two
things:

  1. Cost and visibility. Reading secrets out of RAM or editing an
     offline disk is deliberate, specialised work. guest-exec is one
     JSON line, gives a root shell, and looks like routine management
     traffic. Least privilege still matters when the attacker is a
     stolen operator credential or a compromised management service
     rather than a determined host admin.

  2. Confidential guests. As Daniel's cover letter says, with SEV-SNP or
     TDX the host is not trusted, and an agent with every command
     enabled undoes the protection. Guest images are increasingly
     built once and run both ways.

Concretely:

  - Is there interest in a v2 of the series? Was there a design
    objection, or did it run out of review time?
  - Would the maintainers consider changing the built-in default
    (for example blocking the "unrestricted" and "user auth" groups
    unless explicitly allowed), or is that seen as a distro decision?

I can test a v2 on Debian, Ubuntu and RHEL-family guests against
libvirt and Apache CloudStack, and report which management features
keep working with each group blocked. CloudStack, for example, only
needs guest-ping, guest-sync, guest-network-get-interfaces and the
guest-fsfreeze-* commands for its core features.

Thanks,
Andrija Panić


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-11-27 17:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-27  5:30 qemu-ga: safer default command policy? (re: "Improve mechanism for configuring allowed commands", June 2024) Andrija Panic
2026-11-27  5:53 ` Andrija Panic
2026-11-27  9:20 ` Daniel P. Berrangé
2026-11-27 17:43   ` Andrija Panic

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.