Lurker News
Back to discussion

Comment by kaba0

kaba01 reply#
Because it is an electron app, built on top of a browser that doesn’t use the correct build flags?
enriquto2 replies#
But why does the nature of the program matter at all? If a program writes a file on my home directory, I can read that file with other programs, regardless of the build flags of the first program. Why isn't my screen just the same? A program writes pixels to it, then I use another program to read them.

Having the pixels of your screen be more "sacred" than the files on your $HOME is a disturbingly bizarre security model.

jessaustin#
It isn't necessary that any particular program have access to $HOME, is it? That's often the most straightforward way for things to work, but anything can be run in a chroot jail or simply as another user.
kaba01 reply#
Try writing to a file using linux kernel calls on windows — APIs matter.

Also, please have a look at here: https://news.ycombinator.com/item?id=30735099 This simply should not happen, any random executable having access to your $HOME is a terrible terrible practice.

enriquto1 reply#
> any random executable having access to your $HOME is a terrible terrible practice.

Running random executables is the only terrible practice here. If I run "cat" over a file on my $HOME, then I expect to see its contents, regardless of which program wrote the file. Similarly, if a program writes pixels on my screen, then I expect to be able to screenshot them.
Conversely, if I write a file in my $HOME, then I expect that other programs that I run will be able to read it. Similarly, if I write pixels on my screen, I should not be surprised that my other programs can read them.
Call me conspiracist, but this silly wayland security theater seems like a side of a multi-pronged attack to destroy the very principles of unix. First, screens; then, files. But you know what? You'll pry fopen and fread from my cold, dead hands!

Continue this thread — 1 reply