News for hackers. Stuff that matters.
Re:Wayland Protocol Finally Ready for Fractional Scaling by enriquto on Friday November 25, 2022 @01:26PM (#33745325)
Thanks for your answers! It's reassuring that most things will still be possible.

Still, xeyes is the favorite program of my kid who is starting to learn linux... I'd have a hard time selling wayland to him.

> to make key-loggers less trivial

Really? Is that a serious reason? Key-loggers are still very much possible because any program can read the memory of all other running programs of the same user. This seems to me like a pointless limitation that creates a lot of unnecessary complexity. But what do I know.

Re:Wayland Protocol Finally Ready for Fractional Scaling by exitheone on Friday November 25, 2022 @01:49PM (#33745541)
> Really? Is that a serious reason? Key-loggers are still very much possible because any program can read the memory of all other running programs of the same user.

That's not true. Reading other processes memory requires root even for processes of the same user.

Re:Wayland Protocol Finally Ready for Fractional Scaling by enriquto on Friday November 25, 2022 @02:34PM (#33745969)
I was going to reply in an impulsive manner (saying, derisively "so how does strace work, then? and why can you attach gdb to already running processes?").

But it turns out that you are right! Well, at least in modern ubuntu/fedora desktop installs, a few years ago they disabled the ptrace(2) system call. ("The maniacs! They did it!", I'm tempted to cry in anger.) You can still read children processes, but unless you change the yama defaults in the kernel, ptrace(2) no longer works for processes that are not children.

I didn't notice because I surely have changed this default in my old laptop because I use ptrace daily. But you are right that modern linuxes are likely thus crippled.

Still, it seems that an attack model based on defending against a rogue user process is quite doomed. Can't this process change the init files of other programs that will run, even if they aren't its children?

Re:Wayland Protocol Finally Ready for Fractional Scaling by seba_dos1 on Friday November 25, 2022 @02:49PM (#33746083)
> Still, it seems that an attack model based on defending against a rogue user process is quite doomed. Can't this process change the init files of other programs that will run, even if they aren't its children?

No, they often can't. Things like Flatpak make it so apps have no unnecessary access to the filesystem.

Re:Wayland Protocol Finally Ready for Fractional Scaling by enriquto on Friday November 25, 2022 @03:13PM (#33746289)
Fortunately, things like snap and flatpak are still fringe projects with no realistic perspectives for a widespread adoption. Which would be ridiculous, anyway: why would you want all the programs in /usr/bin to be isolated "apps"?
Re:Wayland Protocol Finally Ready for Fractional Scaling by klooney on Friday November 25, 2022 @04:01PM (#33746702)
I run most of my GUI stuff out of flatpaks now, it's pretty great. Run the latest releases on a stable LTS with no dependency problems.