Skip to content

Commit

Permalink
prevents privilege escalation
Browse files Browse the repository at this point in the history
  • Loading branch information
taukakao committed Jul 31, 2024
1 parent 4003a90 commit 345baa9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions vanilla_first_setup/utils/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@ def get_setup_commands(log_path, pre_run, post_run, commands):

f.write(f"{command}\n")

# prevent privilege escalation
f.write(f"chown root:root {commands_script_path}\n")

# run the outRun commands
if out_run:
f.write("if [ $? -eq 0 ]; then")
Expand Down

0 comments on commit 345baa9

Please sign in to comment.