UNISTDX_IPC_IDENTITY
using pid_type = ::pid_t

Alias for pid_t;.

superuser() -> constexpr uid_type

Superuser ID. Always returns 0.

user(uid_type rhs) -> void

Change process' user.

bad_call

group(gid_type rhs) -> void

Change process' group.

bad_call

effective_user() -> uid_type

Get effective UID of the current process.

supergroup() -> constexpr gid_type

Superuser group ID. Always returns 0.

group() -> gid_type

Get real GID of the current process.

effective_group() -> gid_type

Get effective GID of the current process.

user() -> uid_type

Get real UID of the current process.

set_identity(uid_type uid, gid_type gid) -> void

Set both UID and GID of the current process.

bad_call

  • Sets GID first.
  • Reverts process UID and GID upon error.