I understand why pledge is useful when a trusted program is trying to lower it's own privilege to limit the blast radius.
However I never really quite understood the idea of limiting the permission of untrusted programs hoping that it won't pown you anyway. If you remove network access and allow file system access, what's preventing the program to invoke itself in your .bashrc ? (Or probably 10s of other ways)
Comments (128) 39 threads
Earlier commentsNicely done and if we're ever at the same conference link this comment to me and I'll buy your next drink.
However I never really quite understood the idea of limiting the permission of untrusted programs hoping that it won't pown you anyway. If you remove network access and allow file system access, what's preventing the program to invoke itself in your .bashrc ? (Or probably 10s of other ways)
This seems like a pretty cool feature to have in Linux.
[0] https://unix.stackexchange.com/questions/410056/what-is-open...
All comments shown.
Couldn't load more comments. Check your connection and try again.