Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Firefox Under Fire: Anatomy of latest 0-day attack. Parent comment
sudo unshare -m bash -c "mount --make-rslave / && mount -n -o bind /tmp/empty /home && sudo -u $(whoami) firefox -ProfileManager -no-remote"
- forks the mountpoints table for the process to be executed (bash) - it requires capabilities (hence sudo),
- make / as as slave mount in this context (because of systemd which shares the / mountpoint (see: https://www.kernel.org/doc/Documentation/filesystems/shareds...),
- bind an empty directory to /home (that I previously created), it will only be visible for this process and its children, since it's in an unshared mountpoints table,
- I run firefox in user mode.
There are no comments on this comment yet.
- forks the mountpoints table for the process to be executed (bash) - it requires capabilities (hence sudo),
- make / as as slave mount in this context (because of systemd which shares the / mountpoint (see: https://www.kernel.org/doc/Documentation/filesystems/shareds...),
- bind an empty directory to /home (that I previously created), it will only be visible for this process and its children, since it's in an unshared mountpoints table,
- I run firefox in user mode.