News for hackers. Stuff that matters.
Re:Firefox 75 on Wayland now to have full WebGL, working VA-... by slightwinder on Tuesday March 03, 2020 @12:02PM (#22476315)
> Upsides: more secure (in X.org every client can read every other client's keystrokes, pointer position, and do screen grabs)

What if i want this as a feature? Does wayland allow this per app?

Re:Firefox 75 on Wayland now to have full WebGL, working VA-... by sp332 on Tuesday March 03, 2020 @12:28PM (#22476609)
The screen-grabbing app would have to interface with the compositor instead of the display server. For example, krfb is adding Wayland screen sharing support with KDE.
Re:Firefox 75 on Wayland now to have full WebGL, working VA-... by jandrese on Tuesday March 03, 2020 @03:09PM (#22478286)
Is this better from a security standpoint? Does the compositor verify clients in a more secure fashion? Presumably screenshotting is still a thing on Wayland so this has to be a solved problem.
Re:Firefox 75 on Wayland now to have full WebGL, working VA-... by kelnos on Wednesday March 04, 2020 @02:23AM (#22481830)
The idea is that the compositor can then pop up a dialog saying "App X wants to record your screen. Allow?"
Re:Firefox 75 on Wayland now to have full WebGL, working VA-... by sp332 on Wednesday March 04, 2020 @09:49PM (#22490494)
It could also limit recording to certain windows, or heck even redraw the whole screen any way it wants, like pretending sensitive windows aren't there.
Re:Firefox 75 on Wayland now to have full WebGL, working VA-... by Bnshsysjab on Tuesday March 03, 2020 @04:45PM (#22479013)
The point is apps can’t grab other apps input/output. If you run the app in an otherwise secure manner (eg execute in a perfect security chroot/container).

A malicious application on your host can still do anything at the executing privilege level (read .ssh, inject malware into .bashrc) but can’t sniff your gksudo password

Re:Firefox 75 on Wayland now to have full WebGL, working VA-... by michaelmrose on Tuesday March 03, 2020 @09:42PM (#22480770)
Why would you assume it's a solved problem? Basically every compositor has to implement this feature.
Re:Firefox 75 on Wayland now to have full WebGL, working VA-... by Bnshsysjab on Tuesday March 03, 2020 @04:41PM (#22478983)
Does this lead to a more fragmented application space? If each compostor required its own screen grabbing tool, and each DE has its own compostor?
Re:Firefox 75 on Wayland now to have full WebGL, working VA-... by PlutoIsAPlanet on Tuesday March 03, 2020 @05:10PM (#22479204)
Whilst backend implementations are going to be different per-compositor, they're exposed as freedesktop apis so tools shouldn't need to be adjusted for each one.
Re:Firefox 75 on Wayland now to have full WebGL, working VA-... by Bnshsysjab on Thursday March 05, 2020 @04:36PM (#22498611)
I respect what your saying, but I’ve seen that model tried and failed multiple times
Re:Firefox 75 on Wayland now to have full WebGL, working VA-... by asveikau on Tuesday March 03, 2020 @01:07PM (#22477066)
Furthermore I kind of wonder if anybody bringing up this point has ever in their life seen or heard of a malicious X11 client ...

I know this is not how security works (a theoretical hole is often as bad as a practical one) but it's a bit like saying you should have antivirus software, to which I might say: where are the viruses?

Re:Firefox 75 on Wayland now to have full WebGL, working VA-... by Bnshsysjab on Tuesday March 03, 2020 @04:47PM (#22479032)
If containerisation takes off and ends up being perfect security it’ll make sense. An example would be running Android on X, apps would be able to read / modify windows of other apps via The X socket.
Re:Firefox 75 on Wayland now to have full WebGL, working VA-... by michaelmrose on Tuesday March 03, 2020 @09:45PM (#22480783)
Why would anyone suppose that containers on Linux which are designed to keep applications isolated enough not to interfere with each other ends up being perfectly secure when it's not really designed to be secure at all?
Re:Firefox 75 on Wayland now to have full WebGL, working VA-... by Bnshsysjab on Thursday March 05, 2020 @04:35PM (#22498596)
I’m not suggesting it’s sane particularly if your threat model is nation state level actors, but people use containers (chroot, docker, vms) as a security boundary all the time.
Re:Firefox 75 on Wayland now to have full WebGL, working VA-... by michaelmrose on Sunday March 08, 2020 @06:46AM (#22517408)
Neither chroot or docker is a worthwhile security boundary. People that act as if it is risk appearing incompetent when they get compromised.
Re:Firefox 75 on Wayland now to have full WebGL, working VA-... by Bnshsysjab on Monday March 09, 2020 @09:45PM (#22531980)
I’d argue that anything but bare metal is not a good compromise, but I’m not balancing the books of a large company.

People care about docker escapes so they’re getting more difficult, at least.

Edit: Plus, I’d rather $app_i_dont_fully_trust be sitting in a container rather than on my host. And no, not running apps i don’t fully trust is not something which is at all viable for me.