trifectatechfoundation / sudo-rs

A memory safe implementation of sudo and su.
Other
2.88k stars 77 forks source link

make `sudo -l` print sudoers entries #720

Closed japaric closed 1 year ago

japaric commented 1 year ago

best reviewed commit by commit closes #710

github-actions[bot] commented 1 year ago

Number of dependencies and binary size impact report

Metric main PR #720 Delta
Direct dependencies 3 3 -
Total dependencies 4 4 -
Binary size 1003.7 KiB 1009.3 KiB +0.6%
Text size 586.5 KiB 591.1 KiB +0.8%
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: 12.13% and project coverage change: -1.01% :warning:

Comparison is base (522fcf5) 55.87% compared to head (c4b54f2) 54.86%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #720 +/- ## ========================================== - Coverage 55.87% 54.86% -1.01% ========================================== Files 69 70 +1 Lines 9369 9545 +176 ========================================== + Hits 5235 5237 +2 - Misses 4134 4308 +174 ``` | [Files Changed](https://app.codecov.io/gh/memorysafety/sudo-rs/pull/720?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=memorysafety) | Coverage Δ | | |---|---|---| | [src/sudo/pipeline/list.rs](https://app.codecov.io/gh/memorysafety/sudo-rs/pull/720?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=memorysafety#diff-c3JjL3N1ZG8vcGlwZWxpbmUvbGlzdC5ycw==) | `0.00% <0.00%> (ø)` | | | [src/sudoers/entry.rs](https://app.codecov.io/gh/memorysafety/sudo-rs/pull/720?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=memorysafety#diff-c3JjL3N1ZG9lcnMvZW50cnkucnM=) | `0.00% <0.00%> (ø)` | | | [src/sudoers/mod.rs](https://app.codecov.io/gh/memorysafety/sudo-rs/pull/720?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=memorysafety#diff-c3JjL3N1ZG9lcnMvbW9kLnJz) | `71.45% <1.75%> (-7.57%)` | :arrow_down: | | [src/sudoers/tokens.rs](https://app.codecov.io/gh/memorysafety/sudo-rs/pull/720?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=memorysafety#diff-c3JjL3N1ZG9lcnMvdG9rZW5zLnJz) | `96.31% <50.00%> (-0.62%)` | :arrow_down: | | [src/sudoers/ast.rs](https://app.codecov.io/gh/memorysafety/sudo-rs/pull/720?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=memorysafety#diff-c3JjL3N1ZG9lcnMvYXN0LnJz) | `85.84% <100.00%> (+0.13%)` | :arrow_up: | | [src/sudoers/policy.rs](https://app.codecov.io/gh/memorysafety/sudo-rs/pull/720?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=memorysafety#diff-c3JjL3N1ZG9lcnMvcG9saWN5LnJz) | `76.92% <100.00%> (ø)` | | | [src/sudoers/test/mod.rs](https://app.codecov.io/gh/memorysafety/sudo-rs/pull/720?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=memorysafety#diff-c3JjL3N1ZG9lcnMvdGVzdC9tb2QucnM=) | `98.33% <100.00%> (ø)` | |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.