Skip to content

Commit

Permalink
Update repos/system_upgrade/common/actors/targetuserspacecreator/libr…
Browse files Browse the repository at this point in the history
…aries/userspacegen.py

Co-authored-by: Toshio Kuratomi <[email protected]>
  • Loading branch information
dkubek and abadger authored Nov 9, 2023
1 parent a01ce89 commit b15533d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,7 @@ def _copy_decouple(srcdir, dstdir):

# Ensure parent directory exists
parent_dir = os.path.dirname(target_filepath)
# Note: This is secure because we know that parent_dir is located inside of `$target_userspace/etc/pki` which is a directory that is not writable by unprivileged users. If this function is used elsewhere we may need to be more careful before running `mkdir -p`.
run(['mkdir', '-p', parent_dir])

if os.path.islink(source_filepath):
Expand Down

0 comments on commit b15533d

Please sign in to comment.