[collectd] exec patch - alternative
peter at holik.at
Wed Feb 20 14:17:16 CET 2008
>> Also setgroups fixes my problem
> I've taken your code and changed it a bit so that both, `gid' and
> `egid', are in the list of supplementary groups and that this is only
> done if `getuid () == 0'. Does this still fix your problem?
> I _was_ thinking about calling `getgroups' first to see if the (e)gid
> are in the list already and then possibly adding them. I didn't do that
> I frankly I don't recall why. Maybe I'll add that tomorrow.
your patch works !
also exec id gives:
exec plugin: exec_read_one: buffer = uid=65534(nobody) gid=65534(nogroup)
More information about the collectd