system.setresgid

Synopsis

local system = require "system"
system.setresgid(rgid: integer, egid: integer, sgid: integer)

Description

Sets the real GID, the effective GID, and the saved set-group-ID of the calling process.

If one of the arguments equals -1, the corresponding value is not changed.

Only the master VM is allowed to use this function.