Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unmaintained 'users' crate #110

Merged

Conversation

tgonzalezorlandoarm
Copy link
Member

The 'users' crate is currently being flagged as unmaintained in https://rustsec.org/advisories/RUSTSEC-2023-0040.html .
It is currently only being used to get the uid of the user of a running process.

  • Replace all users::get_current_uid() calls with libc::getuid() calls.
  • Remove the users crate from Cargo.toml.
  • Add libc to the Cargo.toml to call libc::getuid() instead.

Please refer to parallaxsecond/parsec#684 for more information on this PR.

The 'users' crate is currrently being flagged as unmaintained
in https://rustsec.org/advisories/RUSTSEC-2023-0040.html .
It is currently only being used to get the uid of the user of a
running process.

 * Replace all users::get_current_uid() calls with libc::getuid()
   calls.
 * Remove the users crate from Cargo.toml.
 * Add libc to the Cargo.toml to call libc::getuid() instead.

Signed-off-by: Tomás González <[email protected]>
Copy link
Member

@ionut-arm ionut-arm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏻

@gowthamsk-arm
Copy link
Contributor

LGTM. Thanks.

@gowthamsk-arm gowthamsk-arm merged commit 809bc15 into parallaxsecond:main Aug 10, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants