Open System Services System Calls Reference Manual (G06.29+, H06.08+, J06.03+)

System Functions (s and S) setregid(2)
STANDARDS CONFORMANCE
The following are HP extensions to the XPG4 Version 2 specification:
If both the real and effective group IDs are changed so that they differ from each other
and from the saved-set group ID, then the saved-set group ID is set to the value of the
effective group ID.
A process without appropriate privileges can set the effective group ID if the new
effective group ID matches a group ID in the group list of the process.
527186-023 Hewlett-Packard Company 765