trifectatechfoundation / sudo-rs

A memory safe implementation of sudo and su.
Other
2.9k stars 79 forks source link

Implement `--check` for `visudo` #690

Closed pvdrz closed 1 year ago

pvdrz commented 1 year ago

Describe the changes done on this pull request This PR adds the required logic to implement the --check/-c flag for visudo.

Blocked by #689.

Pull Request Checklist

github-actions[bot] commented 1 year ago

Number of dependencies and binary size impact report

Metric main PR #690 Delta
Direct dependencies 3 3 -
Total dependencies 4 4 -
Binary size 996.6 KiB 996.4 KiB -
Text size 580.3 KiB 580.5 KiB -
Dependencies diff ```diff └─ sudo-rs [v0.2.0-dev.20230711] ├─ glob [v0.3.1] ├─ libc [v0.2.147] └─ log [v0.4.19] ```
codecov[bot] commented 1 year ago

Codecov Report

Patch coverage has no change and project coverage change: -0.26 :warning:

Comparison is base (fad6b90) 57.53% compared to head (b70b946) 57.27%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #690 +/- ## ========================================== - Coverage 57.53% 57.27% -0.26% ========================================== Files 68 68 Lines 9035 9076 +41 ========================================== Hits 5198 5198 - Misses 3837 3878 +41 ``` | [Impacted Files](https://app.codecov.io/gh/memorysafety/sudo-rs/pull/690?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=memorysafety) | Coverage Δ | | |---|---|---| | [src/visudo/mod.rs](https://app.codecov.io/gh/memorysafety/sudo-rs/pull/690?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=memorysafety#diff-c3JjL3Zpc3Vkby9tb2QucnM=) | `0.00% <0.00%> (ø)` | |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.