[Bug 3253] start-stop-daemon --chuid does not set supplemental groups

bugzilla at busybox.net bugzilla at busybox.net
Thu Sep 15 13:03:20 UTC 2011


https://bugs.busybox.net/show_bug.cgi?id=3253

--- Comment #3 from Denys Vlasenko <vda.linux at googlemail.com>  ---
(In reply to comment #2)
> Not reset, but setup according to groups file. Plus the specified as gid.
> See initgroups(3) for reference.

Did you confirm that standard Debian's start-stop-daemon does that?

Specifically, start-stop-daemon -c user1:1234 will still set user1's
supplementary groups, and will add group 1234 to them?

I'm asking because it's not the only one sensible behavior. Clearly,

start-stop-daemon -c user1

should set uid to user1's uid, gid to user1's gid, and set his supplementary
groups too. But

start-stop-daemon -c user1:1234

may be interpreted as "set uid to user1's uid, set gid to 1234, and DONT set
user1's supplementary groups (because we explicitly say that group should be
1234, not the user1's usual one)!"

To me, both interpretations make sense.

Therefore, the question is: what does standard Debian's start-stop-daemon do?

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the busybox-cvs mailing list