macOS: Add a sanity check.

Check the file permissions in our application bundle.

Ping-Bug: 16407
Change-Id: I41c9dc903f764ea74b6f34a21ecb99d44bd1658f
Reviewed-on: https://code.wireshark.org/review/36193
Reviewed-by: Gerald Combs <gerald@wireshark.org>
This commit is contained in:
Gerald Combs 2020-02-26 10:20:11 -08:00
parent 0659802f5f
commit 47bd34873b
1 changed files with 7 additions and 0 deletions

View File

@ -563,4 +563,11 @@ else
echo "Code signing not performed (no identity)"
fi
# File permission sanity check.
if ! badperms=$( find "$bundle" ! -perm -0444 -exec ls -l "{}" + | grep . ) ; then
echo "Found files with restrictive permissions:"
echo "$badperms"
exit 1
fi
exit 0