News for hackers. Stuff that matters.
Re:Sandboxed Mac apps can record screen any time without you... by geofft on Saturday February 10, 2018 @08:35PM (#16350669)
And a separate user account, otherwise they can just connect to the original X server. (And on almost all existent Linux systems, either running as a separate user isn't trivial or the sandboxing process has root.)
Re:Sandboxed Mac apps can record screen any time without you... by pritambaral on Saturday February 10, 2018 @08:46PM (#16350702)
Is a separate user account necessary if the Xauthority cookie is shadowed in the sandbox? I think firejail's nested X server setup works this way, without a separate user account.
Re:Sandboxed Mac apps can record screen any time without you... by geofft on Saturday February 10, 2018 @09:32PM (#16350852)
What prevents you from reading the Xauthority cookie out of disk / an existing process's environment / out of an existing process's memory / etc.? You need a sandbox to prevent it fro doing these things, which is certainly doable, but much harder than just opening a new X server.

(On a system without Yama enabled, you can also ptrace any other process running as the same user and run code as it, e.g., using gdb, but lots of desktop-focused Linux distros enable Yama to close this particular approach.)

Re:Sandboxed Mac apps can record screen any time without you... by pritambaral on Sunday February 11, 2018 @01:32AM (#16351495)
> What prevents you from reading the Xauthority cookie out of disk / an existing process's environment / out of an existing process's memory / etc.?

The sandbox does.

> You need a sandbox to prevent it fro doing these things, which is certainly doable, but much harder than just opening a new X server.

Of course. I never said simply running a new X server is sufficient. All I asked is if the sandbox needed to run the program in a separate user account.