File tree Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,9 @@ if [ ! -f .cw-initialized ]; then
3434 Linux* )
3535 [[ " ${CW_CONFIG:- } " = * ' boringssl' * ]] && extra=" ${extra} golang nasm"
3636 [[ " ${CW_CONFIG:- } " = * ' musl' * ]] && extra=" ${extra} musl musl-dev musl-tools"
37+ if [[ " ${CW_CONFIG:- } " = * ' linux' * ]]; then
38+ extra=" ${extra} checksec"
39+ fi
3740 # shellcheck disable=SC2086
3841 apt-get --quiet 2 --option Dpkg::Use-Pty=0 install \
3942 curl git gpg rsync python3-pefile make cmake \
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ extra=''
1515[[ " ${CW_CONFIG:- } " = * ' win' * ]] && extra=" ${extra} mingw-w64 osslsigncode wine64"
1616
1717if [[ " ${CW_CONFIG:- } " = * ' linux' * ]]; then
18+ extra=" ${extra} checksec"
1819 if [[ " ${CW_CONFIG:- } " = * ' musl' * ]]; then
1920 extra=" ${extra} musl musl-dev musl-tools"
2021 extra=" ${extra} linux-headers" # for openssl 'secure-memory' feature
Original file line number Diff line number Diff line change 6565 otool -L " ${f} "
6666 elif [ " ${_OS} " = ' linux' ]; then
6767 " ${_READELF} " --file-header --dynamic " ${f} "
68+ if command -v checksec > /dev/null 2>&1 ; then
69+ checksec --format=json --file=" ${f} " | jq
70+ checksec --format=xml --fortify-file=" ${f} " # duplicate keys in json, cannot apply jq
71+ fi
6872 # Show linked GLIBC versions
6973 # https://en.wikipedia.org/wiki/Glibc#Version_history
7074 if [ " ${_CPU} " = ' a64' ]; then
You can’t perform that action at this time.
0 commit comments