sys_setresgid [kernel/sys.c]
Sets the real GID, effective GID, and saved set-group-ID of the current process (and always modifies the file system GID to be the same as the effective GID). Arguments
eax | 170
ebx | New real GID. If ebx equals -1, the corresponding value is not changed.
ecx | New effective GID. If ecx equals -1, the corresponding value is not changed.
edx | New saved GID. If edx equals -1, the corresponding value is not changed.
Return values If the system call succeeds the return value is 0. If the system call fails the return value is one of the following errno values:
`-EAGAIN` | `This call would bring that user ID over its NPROC rlimit.`
`-EPERM` | `The calling process is not privileged (did not have the CAP_SETUID capability) and tried to change the IDs to values that are not permitted.`
Remarks Unprivileged user processes may change the real GID, effective GID, and saved set-group-ID, each to one of: the current real GID, the current effective GID or the current saved set-user-ID. Privileged processes (those having the CAP_SETUID capability) may set the real GID, effective GID, and saved set-group-ID to arbitrary values. Regardless of what changes are made to the real GID, effective GID, and saved set-group-ID, the file system GID is always set to the same value as the (possibly new) effective GID. Compatibility n/a