From: "Michal Koutný" <mkoutny@suse.com>
To: Demi Marie Obenour <demiobenour@gmail.com>
Cc: systemd development <systemd-devel@lists.freedesktop.org>,
Alyssa Ross <hi@alyssa.is>,
Spectrum OS Development <devel@spectrum-os.org>
Subject: Re: [systemd-devel] Arranging groups of services
Date: Thu, 4 Sep 2025 19:31:05 +0200 [thread overview]
Message-ID: <no7nek2m5l55yk6btb27dy5xfxafydvpoaomg6jwihq6wodkfo@275gmhwlfk63> (raw)
In-Reply-To: <ebec7d90-76b5-40f2-8eeb-3005609b2b48@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1140 bytes --]
Hello.
On Sat, Aug 16, 2025 at 07:11:32PM -0400, Demi Marie Obenour <demiobenour@gmail.com> wrote:
> If the Cloud Hypervisor instance is stopped or exits, the others
> should be stopped automatically, as they have no other use.
> Having BindsTo=, After=, PropagatesStopTo=, and PropagatesReloadTo=
> should handle most cases, but I don't know if that is sufficient
> if Cloud Hypervisor exits spontaneously (because the guest shut down)
> or crashes.
Maybe
vm.service
Wants=crosvm.service ... xdf-desktop-portal.service
and each of the supporive services would have
StopWhenUnneeded=true
> Additionally, these services have different sandboxing needs.
> Cloud Hypervisor should only be able to connect to its own instance
> of the daemons that serve it, rather than to any instance.
> crosvm needs GPU and Wayland access and vhost-device-sound needs
> to connect to PipeWire. virtiofsd needs an id-mapped mount.
> I would also like to block abstract AF_UNIX socket access.
> Are there existing systemd features that can easily meet these
> needs?
See JoinsNamespaceOf= (systemd.unit(5)) whether it'd cover your usage.
HTH,
Michal
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 265 bytes --]
next prev parent reply other threads:[~2025-09-04 17:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-16 23:11 Arranging groups of services Demi Marie Obenour
2025-09-04 17:31 ` Michal Koutný [this message]
2025-09-05 16:49 ` [systemd-devel] " Lennart Poettering
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=no7nek2m5l55yk6btb27dy5xfxafydvpoaomg6jwihq6wodkfo@275gmhwlfk63 \
--to=mkoutny@suse.com \
--cc=demiobenour@gmail.com \
--cc=devel@spectrum-os.org \
--cc=hi@alyssa.is \
--cc=systemd-devel@lists.freedesktop.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.
Code repositories for project(s) associated with this public inbox
https://spectrum-os.org/git/crosvm
https://spectrum-os.org/git/doc
https://spectrum-os.org/git/mktuntap
https://spectrum-os.org/git/nixpkgs
https://spectrum-os.org/git/spectrum
https://spectrum-os.org/git/ucspi-vsock
https://spectrum-os.org/git/www
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).