News for hackers. Stuff that matters.
Re:Wayland is not ready as a 1:1 compatible Xorg replacement... by vetinari on Friday July 01, 2022 @05:12AM (#31944052)
Does your OS use protected memory?

Why? If you knew all your programs, and that they are well-behaved, there is no need for that.

But we do use protected memory. And IOMMU (you know all the peripherals that you connect to your computer as well, right?). And other facilities intended to separate programs and hardware from each other.

So the same way as programs do not snoop on shared global heap, do not big-bang i/o ports, etc, programs are not supposed to snoop on shared display surfaces (really just a subset of 'global shared heap'). If you need something specific from them, you ask them via defined way (e.g. screenshot API), that might or might not have facilities to enforce access control.

Because we are not relying on them to be well behaved. Instead, we will notice if they aren't.

Re:Wayland is not ready as a 1:1 compatible Xorg replacement... by michaelmrose on Friday July 01, 2022 @08:10PM (#31954672)
If protected memory was implemented somehow per desktop environment and relegated me to choosing between Gnome and KDEs respective browsers/office suites instead of installing Firefox and Emacs I would either eschew it and take the risk or give up on Linux entirely and get a Mac.
Re:Wayland is not ready as a 1:1 compatible Xorg replacement... by indolering on Saturday July 02, 2022 @03:42AM (#31957034)
> If protected memory was implemented somehow per desktop environment

I'm sure LOTS of people stopped using certain Unix programs that relied on a single address space whenever that was implemented. But to quote myself a few relies up,

>> These are not compelling arguments for running the GUI as root or allowing different applications to spy on each other.

> or give up on Linux entirely and get a Mac.

You mean the Unix that originally decided against using X11 because it would have required a re-write to do what they wanted anyway [1]? You understand that Wayland was designed by core Xorg contributors to replace X11 because attempts to match OS X resulted in a glitchy nightmare ... right?

[1]: https://news.slashdot.org/comments.pl?sid=75257&cid=6734612

Re:Wayland is not ready as a 1:1 compatible Xorg replacement... by btschaegg on Friday July 01, 2022 @04:23PM (#31952299)
"I was merely endeavoring to indicate that if we do not grab events by the collar they will have us by the throat."

SCNR :)

Re:Wayland is not ready as a 1:1 compatible Xorg replacement... by vetinari on Sunday July 03, 2022 @07:20AM (#31966849)
Yup, exactly :-D