Skip to content
Tom Barbette edited this page Oct 3, 2018 · 2 revisions

ChangeUID Element Documentation

NAME

ChangeUID — Click element; relinquish root privilege

SYNOPSIS

ChangeUID()

Ports: none
Drivers: userlevel

DESCRIPTION

Sets the current process's effective user and group IDs to its real user and group IDs, respectively. This relinquishes any set-uid-root privilege.

NOTES

ChangeUID's configure phase is set so that it runs immediately after the "privileged" elements FromDevice.u and ToDevice.u, but before most other elements. Thus, this configuration:

   f1 :: FromDevice(eth0) -> ...
   f2 :: FromDump(/tmp/x) -> ...
   ChangeUID()

should fail to initialize if the user cannot read file /tmp/x. However, your mileage may vary. Set-uid-root programs are a bad idea, and Click is no exception.

Generated by click-elem2man from ../elements/userlevel/changeuid.hh:8 on 2018/10/03.

Clone this wiki locally