-
Notifications
You must be signed in to change notification settings - Fork 321
ChangeUID
Eddie Kohler edited this page Oct 17, 2017
·
2 revisions
ChangeUID — Click element; relinquish root privilege
ChangeUID()
Ports: none
Drivers: userlevel
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.
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 2017/10/17.