aboutsummaryrefslogtreecommitdiff
path: root/build-firmware-package.py
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2016-06-29 14:36:08 -0400
committerRob Austein <sra@hactrn.net>2016-06-29 14:36:08 -0400
commit3d14fb2bef848ad3945ec896f4704c32185c3cbc (patch)
treee8bed6a597b852a24f050a478d37f8a3c3372876 /build-firmware-package.py
parentb1e0f384a6c73eb9df5d353bb042823847fa82cc (diff)
Tweak ownerships and permissions in firmware tarball.
Diffstat (limited to 'build-firmware-package.py')
-rwxr-xr-xbuild-firmware-package.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/build-firmware-package.py b/build-firmware-package.py
index de77243..c44b8bd 100755
--- a/build-firmware-package.py
+++ b/build-firmware-package.py
@@ -25,6 +25,7 @@ for fn in args.firmware:
tar.add(fn, os.path.basename(fn))
with tempfile.NamedTemporaryFile() as f:
+ os.fchmod(f.fileno(), 0644)
gpg = subprocess.Popen(("gpg", "--clearsign", "--personal-digest-preferences", "SHA256", "--no-permission-warning"),
stdin = subprocess.PIPE, stdout = f)
json.dump(dict(head = head, time = time, commits = commits, sha256 = sha256), gpg.stdin, indent = 2)