commit: 21820767732724416b990684f5058e19c0c1e7a1
parent 67acb607f6539a69b64d7e111cbbcb5c1f3849b2
Author: fosslinux <fosslinux@aussies.space>
Date: Wed, 24 Jan 2024 17:30:12 +1100
Use a constant umask
Diffstat:
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/rootfs.py b/rootfs.py
@@ -159,6 +159,9 @@ def main():
else:
args.swap = 0
+ # Set constant umask
+ os.umask(0o022)
+
# bootstrap.cfg
try:
os.remove(os.path.join('steps', 'bootstrap.cfg'))
diff --git a/steps/helpers.sh b/steps/helpers.sh
@@ -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 "."