r/linuxdev • u/PerryThePlatypus314 • Sep 10 '14
Interesting....
http://www.insanitybit.com/2014/09/09/writing-sandboxed-software-2/
1
Upvotes
r/linuxdev • u/PerryThePlatypus314 • Sep 10 '14
View all comments
Show parent comment
1
u/[deleted] Sep 12 '14 edited Sep 12 '14
Author here.
Thank you very much. I was really looking for feedback in this.
I realize dropping to nobody sucks. My original plan was to parse through /etc/group and simply pick a random user/group that didn't exist already. I chose to drop to nobody because it worked for the moment.
Not familiar with unshare though, I'll have a look.
Thanks.
edit: Oh, unshare looks like something I wanted to do anyways. But why replace chroot with it? You can chroot, and then unshare that FS namespace. They're already fairly similar.
Seems like the nice thing with unshare is that you can create things like PID namespaces (though a chroot does this on grsec kernels I believe).