sudo-rs
sudo-rs copied to clipboard
Safety comments: PR2
trafficstars
This is related to PR #860. Together with that PR it will close #861.
This PR also refactors some code in the signal handling, since there was code duplication going.
There are 3 missing unsafe statements after this:
- 1 in
exec(related topre_exec) - 2 in
system(related toforkandpre_exec)
Anything relating to fork and pre_exec probably needs special attention so I did not annotate those yet; for those please refer to issue #863
There are also two unsafe statements in the visudo module, but that is handled by issue #859.