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

Use sudo only if not running as root #180

Merged
merged 1 commit into from
Jun 30, 2022
Merged

Use sudo only if not running as root #180

merged 1 commit into from
Jun 30, 2022

Conversation

vin01
Copy link
Contributor

@vin01 vin01 commented Mar 4, 2022

sudo can be skipped in some cases, like when running in a container as root.

Might address #133

Copy link
Contributor

@jayjb jayjb left a comment

Choose a reason for hiding this comment

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

Hi @vin01,

Thanks for submitting a PR. I like the idea of it but currently it breaks with our newly merged PRs.

Basically, we allowing environment variables which are preserved using sudo -E. So as you can probably see, if we remove that sudo, we have have a floating -E.

@vin01
Copy link
Contributor Author

vin01 commented Jun 26, 2022

I have updated it @jayjb. Please review.

bin/opencanaryd Outdated Show resolved Hide resolved
@vin01 vin01 requested a review from jayjb June 29, 2022 09:33
@jayjb jayjb merged commit 13b81bd into thinkst:master Jun 30, 2022
@jayjb
Copy link
Contributor

jayjb commented Jun 30, 2022

Hi @vin01,

Thanks for contributing to the Opencanary project. Please email me at jay [at] thinkst [dot] com please.

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.

None yet

2 participants