003 File Manager
Current Path:
/usr/src/sys/contrib/openzfs/scripts
usr
/
src
/
sys
/
contrib
/
openzfs
/
scripts
/
📁
..
📄
.gitignore
(10 B)
📄
Makefile.am
(2.46 KB)
📄
commitcheck.sh
(2.87 KB)
📄
common.sh.in
(637 B)
📄
cstyle.pl
(26.17 KB)
📄
dkms.mkconf
(2.93 KB)
📄
dkms.postbuild
(595 B)
📄
enum-extract.pl
(955 B)
📄
kmodtool
(18.41 KB)
📄
make_gitrev.sh
(2 KB)
📄
man-dates.sh
(339 B)
📄
paxcheck.sh
(1.18 KB)
📄
zfs-helpers.sh
(4.46 KB)
📄
zfs-tests.sh
(16.78 KB)
📄
zfs.sh
(5.4 KB)
📄
zfs2zol-patch.sed
(1.14 KB)
📄
zimport.sh
(13.78 KB)
📄
zloop.sh
(8.2 KB)
📄
zol2zfs-patch.sed
(809 B)
Editing: paxcheck.sh
#!/bin/sh # shellcheck disable=SC2039 if ! type scanelf > /dev/null 2>&1; then echo "scanelf (from pax-utils) is required for these checks." >&2 exit 3 fi RET=0 # check for exec stacks OUT=$(scanelf -qyRAF '%e %p' "$1") if [ x"${OUT}" != x ]; then RET=2 echo "The following files contain writable and executable sections" echo " Files with such sections will not work properly (or at all!) on some" echo " architectures/operating systems." echo " For more information, see:" echo " https://wiki.gentoo.org/wiki/Hardened/GNU_stack_quickstart" echo echo "${OUT}" echo fi # check for TEXTRELS OUT=$(scanelf -qyRAF '%T %p' "$1") if [ x"${OUT}" != x ]; then RET=2 echo "The following files contain runtime text relocations" echo " Text relocations force the dynamic linker to perform extra" echo " work at startup, waste system resources, and may pose a security" echo " risk. On some architectures, the code may not even function" echo " properly, if at all." echo " For more information, see:" echo " https://wiki.gentoo.org/wiki/Hardened/HOWTO_locate_and_fix_textrels" echo echo "${OUT}" echo fi exit $RET
Upload File
Create Folder