From 21820767732724416b990684f5058e19c0c1e7a1 Mon Sep 17 00:00:00 2001 From: fosslinux Date: Wed, 24 Jan 2024 17:30:12 +1100 Subject: [PATCH] Use a constant umask --- rootfs.py | 3 +++ steps/helpers.sh | 3 +++ 2 files changed, 6 insertions(+) diff --git a/rootfs.py b/rootfs.py index a6e2419f..c31d5a18 100755 --- 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 index bcff41de..8a89c299 100755 --- 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 "."