Let's say the binary downloaded has 2 exploits:
1. It zips all dot files in the user's home and sends them to a server.
2. It send the X clipboard to a server.
Does firejail protect against either attack? If so, how?
For apps like these, I would have a script that creates a new user, copies the app into $newUserHome, starts Xephr [2] a my main user, starts the app as $newUser with DISPLAY=:$xephrDisplay. I'm no security expert, but those 2 issues seem solved that way. Does firejail practically do something similar but with kernel magic?