sudo-rs icon indicating copy to clipboard operation
sudo-rs copied to clipboard

Safety comments: PR2

Open squell opened this issue 1 year ago • 0 comments
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 to pre_exec)
  • 2 in system (related to fork and pre_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.

squell avatar Sep 02 '24 23:09 squell