Skip to content

Commit

Permalink
Use a constant umask
Browse files Browse the repository at this point in the history
  • Loading branch information
fosslinux committed Jan 24, 2024
1 parent 46949ad commit 2620bdf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rootfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,9 @@ def check_types():
else:
args.swap = 0

# Set constant umask
os.umask(022)

# bootstrap.cfg
try:
os.remove(os.path.join('steps', 'bootstrap.cfg'))
Expand Down
3 changes: 3 additions & 0 deletions steps/helpers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
#
# SPDX-License-Identifier: GPL-3.0-or-later

# Set constant umask
umask 022

# Get a list of files
get_files() {
echo "."
Expand Down

0 comments on commit 2620bdf

Please sign in to comment.