qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* qemu-ga guest-exec & SELinux
@ 2022-06-20  9:44 Marc-André Lureau
  2022-06-20 10:06 ` Daniel P. Berrangé
  0 siblings, 1 reply; 4+ messages in thread
From: Marc-André Lureau @ 2022-06-20  9:44 UTC (permalink / raw)
  To: selinux; +Cc: rmetrich, QEMU

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

Hi!

https://bugzilla.redhat.com/show_bug.cgi?id=2093355 ("AVCs when trying to
execute a command through qemu-ga ("guest-exec" command)") describes an
issue with fedora/rhel SELinux rules, where some program executions are
denied.

qemu-ga has "virt_qemu_ga_t" context, and is not allowed to execute
binaries that are not "bin_t", iiuc. The suggestion from Renaud Métrich is
for qemu-ga exec command to launch the user program through an helper
program that would have the virt_qemu_ga_unconfined_exec_t context, and
appropriate rules in selinux (similar to fsfreeze-hook rules), so any
program can be executed. qemu-ga would thus ship and use that helper, in
all OS, to avoid varying code paths.

Does that sound reasonable or should we try to find a solution with SELinux
rules instead?

thanks

-- 
Marc-André Lureau

[-- Attachment #2: Type: text/html, Size: 1305 bytes --]

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

end of thread, other threads:[~2022-06-21 13:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-20  9:44 qemu-ga guest-exec & SELinux Marc-André Lureau
2022-06-20 10:06 ` Daniel P. Berrangé
2022-06-21  8:42   ` Renaud Métrich
2022-06-21  9:30     ` Daniel P. Berrangé

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).