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

Enhancement: swhkd binary should never read environment #286

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

manthanabc
Copy link

@manthanabc manthanabc commented Jan 10, 2025

Since swhkd runs in elevated perms, at no time it should capture the environment variables.
Currently the call to environ::Env::construct(None) is made to initialize env, which captures the environment of swhkd although this is always overwritten it could lead to security issues so its better to initialize it empty

@Shinyzenith
Copy link
Member

Thank you for the PR.

@newtoallofthis123 Can I get your approval on this since you wrote this segment?

@newtoallofthis123
Copy link
Collaborator

Tested it and everything looks good to me!

Thank you for the PR :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants