3 ms·
I'm intrigued to know if Microsoft (where the patch submitter works) have a use case for this or if it's related to one of his other security projects (see http
by rwmj 6y ago
I'm intrigued to know if Microsoft (where the patch submitter works) have a use case for this or if it's related to one of his other security projects (see http://digikod.net/ http://digikod.net/). I think it needs a strong motivating case.
- You-Are-Right 6y agoWhy you write "Microsoft" and "Security" in one sentence?
- PeterisP 6y agoFor me personally a potential application seems to be embedding general purpose languages as scripting tools within nonprivileged applications; such a chroot would make it easier for the app to grant some filesystem access to a potentially malicious script without trying to restrict the language, API and libraries used for that.
- remexre 6y agoWhy not use a mount namespace? And how are you creating a /dev without root?
- Spivak 6y agoI feel like you're assuming that mount namespaces are something greater than they actually are. You still need chroot(2) or pivot_root(2) to actually put a process into its own isolated directory. There's no magic here. Try running `unshare -m` to see what it's like in "just" a mount namespace.
- chasil 6y agoMicrosoft OpenSSH is at least faking it. 4084 2021-03-02 01:08:24.055 fatal: safely_chroot: stat("C:\\sftpjail"): No such file or directory