mostly useless, information. Incompatible with all other options.
.TP
.B \-\-groups \fIgroup\fR...
-Set supplementary groups. The argument is a comma-separated list.
+Set supplementary groups. The argument is a comma-separated list of GIDs or names.
.TP
.BR \-\-inh\-caps " (" + | \- ) \fIcap "... or " \-\-ambient-caps " (" + | \- ) \fIcap "... or " \-\-bounding\-set " (" + | \- ) \fIcap ...
Set the inheritable capabilities, ambient capabilities or the capability bounding set. See
#define SETPRIV_EXIT_PRIVERR 127 /* how we exit when we fail to set privs */
+static gid_t get_group(const char *s, const char *err);
+
enum cap_type {
CAP_TYPE_EFFECTIVE = CAPNG_EFFECTIVE,
CAP_TYPE_PERMITTED = CAPNG_PERMITTED,
fputs(_(" --clear-groups clear supplementary groups\n"), out);
fputs(_(" --keep-groups keep supplementary groups\n"), out);
fputs(_(" --init-groups initialize supplementary groups\n"), out);
- fputs(_(" --groups <group,...> set supplementary groups\n"), out);
+ fputs(_(" --groups <group,...> set supplementary groups by UID or name\n"), out);
fputs(_(" --securebits <bits> set securebits\n"), out);
fputs(_(" --pdeathsig keep|clear|<signame>\n"
" set or clear parent death signal\n"), out);
opts->groups = xcalloc(opts->num_groups, sizeof(gid_t));
while ((c = strsep(&groups, ",")))
- opts->groups[i++] = (gid_t) strtol_or_err(c,
- _("Invalid supplementary group id"));
+ opts->groups[i++] = get_group(c, _("Invalid supplementary group id"));
free(groups);
}