package management discussion - Programming On Unix

Users browsing this thread: 1 Guest(s)
z3bra
Grey Hair Nixers
Agreed that plan9 managed to keep things clear. As I said, this is because of the union mounts. The Linux kernel support these too (see overlayfs, but they're barely used. This could definitely close the issue with our 1km long $PATH, by mergin all binary locations to /bin. There is one issue with it though: permissions. plan9 has a namespace for every user, which means that they can mount directories however they want, it will never affect other users. Under Linux distributions however, all users are part of the same namespace, and thus mounting stuff over / require administrative permissions.

The Linux kernel has a decent namespace support though, including mountpoints. It would be interesting to see what would happen if a new namespace where created for the user in his ~/.profile... ?

EDIT: Got my answer: http://www.halfdog.net/Security/2015/Use...WriteExec/
So it works, but can lead to a privilege escalation bug (though the bug is 5 years old, so I hope it's fixed now :)).
Long story short, user in an unprivileged namespace receive the CAP_SYSADMIN capabilities, and can thus mount whatever shit they need in the namespace. The fact it is unprivileged means that no special permission is needed to create a new namespace. I'll try this out !


Messages In This Thread
package management discussion - by sth - 26-05-2020, 05:55 PM
RE: package management discussion - by z3bra - 26-05-2020, 07:00 PM
RE: package management discussion - by sth - 26-05-2020, 07:18 PM
RE: package management discussion - by z3bra - 26-05-2020, 07:35 PM
RE: package management discussion - by sth - 26-05-2020, 07:41 PM
RE: package management discussion - by sth - 26-05-2020, 09:41 PM
RE: package management discussion - by venam - 27-05-2020, 01:51 AM
RE: package management discussion - by z3bra - 27-05-2020, 03:49 PM
RE: package management discussion - by sth - 28-05-2020, 06:05 PM
RE: package management discussion - by z3bra - 28-05-2020, 08:10 PM
RE: package management discussion - by jkl - 29-05-2020, 03:58 AM
RE: package management discussion - by z3bra - 29-05-2020, 05:18 AM
RE: package management discussion - by ckester - 29-05-2020, 05:24 PM
RE: package management discussion - by movq - 31-05-2020, 02:47 AM
RE: package management discussion - by z3bra - 31-05-2020, 04:14 AM
RE: package management discussion - by sth - 31-05-2020, 05:28 PM
RE: package management discussion - by jkl - 01-06-2020, 06:06 AM
RE: package management discussion - by movq - 01-06-2020, 02:26 PM
RE: package management discussion - by eadwardus - 05-07-2020, 02:32 PM