Skip to content
This repository has been archived by the owner on Nov 7, 2024. It is now read-only.

Commit

Permalink
isolation: Also reset environment
Browse files Browse the repository at this point in the history
Otherwise in some cases the containers/image stack can try
to look at things like `$HOME` which might be set to `/root`
if we're running outside of systemd, and that can cause
permission denials.
  • Loading branch information
cgwalters committed Nov 10, 2023
1 parent 0bb03ef commit 0e7e1f3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/src/isolation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ pub(crate) fn unprivileged_subprocess(binary: &str, user: &str) -> Command {
cmd.args([
"--no-new-privs",
"--init-groups",
"--reset-env",
"--reuid",
user,
"--bounding-set",
Expand Down

0 comments on commit 0e7e1f3

Please sign in to comment.