[go: up one dir, main page]

Module users::switch

source ·
Expand description

Functions for switching the running process’s user or group.

Structs

Guard returned from a switch_user_group call.

Functions

Sets both the current group and the effective group for the running process to the ones with the given group IDs. Uses setregid internally.
Sets both the current user and the effective user for the running process to the ones with the given user IDs. Uses setreuid internally.
Sets the current group for the running process to the one with the given group ID. Uses setgid internally.
Sets the current user for the running process to the one with the given user ID. Uses setuid internally.
Sets the effective group for the running process to the one with the given group ID. Uses setegid internally.
Sets the effective user for the running process to the one with the given user ID. Uses seteuid internally.
Sets the effective user and the effective group for the current scope.