general high-level discussion about spectrum
 help / color / mirror / Atom feed
From: Thomas Leonard <talex5@gmail.com>
To: Alyssa Ross <hi@alyssa.is>
Cc: Michael Raskin <7c6f434c@mail.ru>, discuss@spectrum-os.org
Subject: Re: New user getting started questions
Date: Sat, 13 Mar 2021 07:21:50 +0000	[thread overview]
Message-ID: <CAG4opy_JztAH3tD+ZUqpf9Un9mcLauYeuQaTrEA1sF7CY0z9fA@mail.gmail.com> (raw)
In-Reply-To: <20210309162556.ctiy3yfp7plkbdqs@x220.qyliss.net>

On Tue, 9 Mar 2021 at 16:26, Alyssa Ross <hi@alyssa.is> wrote:
>
> Hi Thomas!
>
> Thanks for keeping us updated.  It's really great to have all this
> written up to read, even though I'm only getting to it a month and a
> half later.
>
> On Wed, Jan 27, 2021 at 05:31:08PM +0000, Thomas Leonard wrote:
[...]
> > Once this is working more smoothly, I guess the next issues will be
> > setting up some kind of secure window manager on the host (e.g.
> > labelling windows with the VM they come from, not allowing
> > screenshots, etc). Would also be good to get sound forwarding working
> > somehow (Qubes routes pulseaudio to all the VMs and gives you a mixer
> > to control the levels for each, but I don't know how that worked). It
> > also needs some kind of VM manager to keep track of which VMs are
> > running. And some kind of IPC system like qrexec would be useful. Do
> > you have thoughts or plans about how to do any of this?
>
> The window manager is a part of this whole thing that makes me very
> nervous.  A secure window manager is very important for Wayland, and I'm
> not sure how much I trust any of the existing ones to get it right.  But
> with Wayfire I'm hoping it'll at least be easy enough to implement stuff
> like tagged/coloured windows for the proof of concept (since the
> plugin API and stuff is Wayfire's niche), and I'm hoping at some point
> somebody comes up with a security-focused Wayland window manager we can
> switch to -- I'd love a Rust one, and there's work going on in that
> area[1].

For the short-term, it would be fairly easy to make a slight change to
the wayland-virtwl-proxy[*] so that a version of it could run on the
host. Unlike the guest one, which has to copy frames and deal with
virtwl, this would just pass FDs through. And instead of connecting to
/dev/wl0, it would just connect to the host compositor socket. It
would then block access to screenshots (since it doesn't proxy that),
and would add the VM's name to each window's title.

Eventually I'd like to turn it into a full compositor, but I'm going
to be busy for the next 6 months at least.

> Not sure about IPC yet, but I recently read an article about PipeWire[2],
> and that's been making me think a bit about audio.  With PipeWire, they
> seem to have cared about security from the start:

Thanks for the link. I hadn't realised PulseAudio was in such a bad state!

> > To avoid the PulseAudio sandboxing limitations, security was
> > baked-in: a per-client permissions bitfield is attached to every
> > PipeWire node — where one or more SPA nodes are wrapped. This
> > security-aware design allowed easy and safe integration with Flatpak
> > portals; the sandboxed-application permissions interface now promoted
> > to a freedesktop XDG standard.
>
> And it gets better!  In particular, this sounds very promising:
>
> > a native fully asynchronous protocol that was inspired by Wayland —
> > without the XML serialization part — was implemented over Unix-domain
> > sockets. Taymans wanted a protocol that is simple and hard-realtime
> > safe.
>
> It goes on to say they use this for sending file descriptors and stuff.
> The similarity to Wayland is very exciting, because it means we might
> just be able to run PipeWire over the existing virtio_wl infrastructure
> very efficiently.

Yes. I wonder why they didn't just use Wayland directly. Removing the
XML schema files (I assume that's what they mean) doesn't seem like an
improvement. That's what makes it easy to use Wayland from safer
languages than C!


[*] https://github.com/talex5/wayland-virtwl-proxy


-- 
talex5 (GitHub/Twitter)        http://roscidus.com/blog/
GPG: 5DD5 8D70 899C 454A 966D  6A51 7513 3C8F 94F6 E0CC

  reply	other threads:[~2021-03-13 12:52 UTC|newest]

Thread overview: 49+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-05 19:27 Thomas Leonard
2021-01-05 20:09 ` Michael Raskin
2021-01-06  7:04   ` Alyssa's break Alyssa Ross
2021-01-06  9:11     ` Michał "rysiek" Woźniak
2021-01-06  7:00 ` New user getting started questions Alyssa Ross
2021-01-06 15:56   ` Thomas Leonard
2021-01-07 11:38     ` Thomas Leonard
2021-01-07 15:33     ` Thomas Leonard
2021-01-14 12:29     ` Alyssa Ross
2021-01-14 12:51       ` Alyssa Ross
2021-01-20 13:04         ` Thomas Leonard
2021-01-27 17:31           ` Thomas Leonard
2021-03-07 12:52             ` Thomas Leonard
2021-03-09 16:59               ` Qubes-lite With KVM and Wayland Alyssa Ross
2021-03-10 14:19                 ` Thomas Leonard
2021-03-10 22:34                   ` Alyssa Ross
2021-03-09 16:25             ` New user getting started questions Alyssa Ross
2021-03-13  7:21               ` Thomas Leonard [this message]
2021-03-13 13:52                 ` Alyssa Ross
2021-10-30 12:58                 ` Thomas Leonard
2021-11-03 11:36                   ` Alyssa Ross
2021-11-03 18:27                     ` Thomas Leonard
2021-11-10 12:58                       ` Alyssa Ross
2021-11-10 12:00                         ` Thomas Leonard
2021-11-11 11:09                           ` Alyssa Ross
2021-11-11 16:12                             ` Thomas Leonard
2021-11-12 10:47                               ` Alyssa Ross
2022-03-13 15:08                         ` Thomas Leonard
2022-03-15 14:06                           ` Alyssa Ross
2022-03-15 20:23                             ` Alyssa Ross
2022-03-16 16:18                               ` Using virtio-gpu instead of virtwl Thomas Leonard
2022-03-16 16:54                                 ` Alyssa Ross
2022-03-21 12:10                                 ` Thomas Leonard
2022-03-21 16:05                                   ` Alyssa Ross
2022-03-22 11:08                                     ` Thomas Leonard
2022-03-22 11:16                                       ` Alyssa Ross
2022-03-22 20:05                                         ` Thomas Leonard
2022-04-06 12:19                                           ` Thomas Leonard
2022-04-13 17:12                                             ` Thomas Leonard
2022-04-14 13:57                                               ` Alyssa Ross
2022-04-19 12:58                                                 ` Thomas Leonard
2022-04-19 12:01                                                   ` Alyssa Ross
2022-05-15 15:20                                                 ` Thomas Leonard
2022-05-16 11:55                                                   ` Alyssa Ross
2022-05-18  9:55                                                     ` Thomas Leonard
2022-06-05 16:29                                                       ` Thomas Leonard
2022-08-09 12:00                                     ` Alyssa Ross
2022-10-10 15:16                                       ` Thomas Leonard
2022-10-10 16:53                                         ` Alyssa Ross

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=CAG4opy_JztAH3tD+ZUqpf9Un9mcLauYeuQaTrEA1sF7CY0z9fA@mail.gmail.com \
    --to=talex5@gmail.com \
    --cc=7c6f434c@mail.ru \
    --cc=discuss@spectrum-os.org \
    --cc=hi@alyssa.is \
    /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).