security: restrict permissions of temporary dir
This commit is contained in:
parent
5f1fc6bae4
commit
a6799d986f
1 changed files with 2 additions and 0 deletions
|
|
@ -45,6 +45,8 @@ archive_exec()
|
||||||
# tmp files
|
# tmp files
|
||||||
archive_tmpdir="$TMPDIR/zpass_$(randalnum 20)"
|
archive_tmpdir="$TMPDIR/zpass_$(randalnum 20)"
|
||||||
keyfile="$archive_tmpdir/$(randalnum 20).key"
|
keyfile="$archive_tmpdir/$(randalnum 20).key"
|
||||||
|
mkdir -p "$archive_tmpdir" || exit $?
|
||||||
|
chmod 700 "$archive_tmpdir" || exit $?
|
||||||
# operation
|
# operation
|
||||||
(
|
(
|
||||||
# unpack
|
# unpack
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue