Re: rdist: use passwd/group caches

2018-09-17 Thread Theo Buehler
On Sun, Sep 16, 2018 at 07:55:19AM -0600, Todd C. Miller wrote: > Any rdist users out there? The way rdist does group caching (stash > the struct group pointer) will stop working in the future so I'd > like to get these changes in before then. Perhaps we can give potential testers a bit more

rdist: use passwd/group caches

2018-09-13 Thread Todd C. Miller
Use password/group cache functions and avoid stashing a pointer to the return value of getgrgid(3) or getgrnam(3) which relies on undefined behavior. When run as non-root, rdistd now uses the group list from getgroups(2) for group membership checks instead of looking up the group by name. This