reworked the privilege escalation works by changing the way target user info is passed around, now we pass struct passwd* and struct group* instead of strings wich allows much greater flexibility. Also now us mimics the behavior of sudo and doas regarding the shell proxies: - commands are started under a subshell, that shell is the user's - if no command is specified just the shell is executed
8 lines
247 B
Plaintext
8 lines
247 B
Plaintext
- Modify the following environment variables: (listed in environ(7))
|
|
* USER -> to target user
|
|
* LOGNAME -> to target user
|
|
* SHELL -> to the target user's SHELL
|
|
* HOME -> to the target user's HOME
|
|
|
|
- Reconsider executing programs in a subshell
|