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

device: use runtime instead of compile-time environment var for macos drop privileges #297

Merged
merged 1 commit into from
Jul 19, 2022

Conversation

Noah-Kennedy
Copy link
Collaborator

@Noah-Kennedy Noah-Kennedy commented Jul 19, 2022

In #231 we accidentally started using a compile-time environment environment variable instead of a runtime one for dropping privileges on macos. This causes privilege drops to fail when the user who is running the program does not have the same username as the user who compiled the program.

The solution here is to use the runtime variable instead.

…to get user

In #231 we accidentally started using a compile-time environment environment variable instead of a runtime one for dropping privileges on macos. This causes privilege drops to fail when the user who is running the program does not have the same username as the user who compiled the program.

The solution here is to use the runtime variable instead.
@Noah-Kennedy Noah-Kennedy force-pushed the noah/fix-macos-drop-privileges branch from ae7d6a2 to eb6e47d Compare July 19, 2022 16:12
@Noah-Kennedy Noah-Kennedy changed the title device: use runtime instead of compile-time var to get user on macos device: use runtime instead of compile-time environment var for macos drop privileges Jul 19, 2022
@Noah-Kennedy Noah-Kennedy marked this pull request as ready for review July 19, 2022 16:13
@Noah-Kennedy Noah-Kennedy enabled auto-merge (squash) July 19, 2022 16:13
@Noah-Kennedy Noah-Kennedy merged commit 003ba82 into master Jul 19, 2022
@Noah-Kennedy Noah-Kennedy deleted the noah/fix-macos-drop-privileges branch July 19, 2022 16:16
Noah-Kennedy added a commit that referenced this pull request Jul 20, 2022
# v0.5.2

### Fixed

- device: use runtime instead of compile-time environment var for macos drop privileges ([#297])

[#297]: #297
Noah-Kennedy added a commit that referenced this pull request Jul 20, 2022
# v0.5.2

### Fixed

- device: use runtime instead of compile-time environment var for macos drop privileges ([#297])

[#297]: #297
arvydasv pushed a commit to NordSecurity/boringtun that referenced this pull request Aug 1, 2023
… drop privileges (cloudflare#297)

In cloudflare#231 we accidentally started using a compile-time environment environment variable instead of a runtime one for dropping privileges on macos. This causes privilege drops to fail when the user who is running the program does not have the same username as the user who compiled the program.

The solution here is to use the runtime variable instead.
arvydasv pushed a commit to NordSecurity/boringtun that referenced this pull request Aug 1, 2023
…flare#298)

# v0.5.2

### Fixed

- device: use runtime instead of compile-time environment var for macos drop privileges ([cloudflare#297])

[cloudflare#297]: cloudflare#297
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.

2 participants