-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Labels
Description
We noticed an issue with support for group-owned directories where the setfsgid call appears to only get the primary group of the user (frequently the user-specific group, e.g. brianhlin). This is not particularly useful for shared FS access of a dir tree so we'd like to see support added for supplementary groups, perhaps by using getgrouplist and setgroups in addition to the the set UID/GID calls.
We should also consider moving to setuid and setgid (or maybe seteuid/setegid?) as setfs*id says:
Since Linux 2.0, signal permission handling is dif‐
ferent (see kill(2)), with the result that a process can change its ef‐
fective user ID without being vulnerable to receiving signals from un‐
wanted processes. Thus, setfsuid() is nowadays unneeded and should be
avoided in new applications (likewise for setfsgid(2)).