forked from osmocom/wireshark
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:
parent
0659802f5f
commit
47bd34873b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue