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

Safety comments: PR1

Open squell opened this issue 1 year ago • 0 comments
trafficstars

It's tedious to do, but let's have proper # Safety and // SAFETY comments all across the board.

This PR addresses some low-hanging fruit:

  • simple routines from system
  • pam and cutils.
  • file locking
  • this PR also replaces our raw sys call with libc::close_range, since that is available now.

This is related to #861 but does not close that issue. I've broken it up in multiple PR's for easier reviewing.

squell avatar Sep 02 '24 23:09 squell