Make set_supplementary_gids abort on memory errors.

Consumers of this API usually cannot continue if this function fails,
since not adding supplementary groups would prevent the caller from
accessing resources. Simplify callers by aborting instead of returning
an error.

This will also prevent callers from forgetting to check the return
value of the function and not actually setting supplementary groups
when they expected to.

Once the callers are updated, we can change this function to return
void.

Bug: 26099611
Change-Id: Ib470e913d734ab4eac01b2aef3cdd4922d98e15a
1 file changed