=========================================================== .___ __ __ _________________ __ __ __| _/|__|/ |_ / ___\_` __ \__ \ | | \/ __ | | \\_ __\ / /_/ > | \// __ \| | / /_/ | | || | \___ /|__| (____ /____/\____ | |__||__| /_____/ \/ \/ grep rough audit - static analysis tool v2.8 written by @Wireghoul =================================[justanotherhacker.com]=== fcoe-utils-1.0.32+git20190507.9834b34/build.sh-7-AC_INIT=`grep AC_INIT configure.ac` fcoe-utils-1.0.32+git20190507.9834b34/build.sh:8:PACKAGE=`echo ${AC_INIT} | awk 'BEGIN { FS="[][]" }; { print $2 };'` fcoe-utils-1.0.32+git20190507.9834b34/build.sh:9:VERSION=`echo ${AC_INIT} | awk 'BEGIN { FS="[][]" }; { print $4 };'` fcoe-utils-1.0.32+git20190507.9834b34/build.sh-10- ############################################## fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcc.sh-27-sdir=/sys/class/scsi_host fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcc.sh:28:cmdname=`basename $0` fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcc.sh-29- ############################################## fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcc.sh-80- fi fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcc.sh:81: val=`cat $y` fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcc.sh-82- if [ "$val" != 0xffffffffffffffff ] ############################################## fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcc.sh-103- rdir=/sys/class/fc_remote_ports fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcc.sh:104: host=`echo $hba | sed -e 's/host//'` fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcc.sh:105: rports=`ls -d $rdir/rport-$host:* 2>/dev/null` fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcc.sh-106- if [ -z "$rports" ] ############################################## fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcc.sh-118- do fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcc.sh:119: btl="`echo $x | sed -e 's/.*-\(.*-.*\)/\1/'`" fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcc.sh-120- printf "$fmt" "$btl" \ fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcc.sh:121: "`fmt_hex $x/port_name`" \ fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcc.sh:122: "`fmt_hex $x/port_id`" \ fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcc.sh:123: "`cat $x/port_state`" \ fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcc.sh:124: "`cat $x/roles`" fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcc.sh-125- done ############################################## fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcc.sh-163- fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcc.sh:164: host=`echo $hba | sed -e 's/host//'` fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcc.sh-165- ############################################## fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcc.sh-189- dev=`ls block | tail -1` fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcc.sh:190: size=`cat block/$dev/size` fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcc.sh:191: cap=`lun_cap $size` fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcc.sh-192- elif [ -d char ] ############################################## fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcc.sh-197- then fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcc.sh:198: dev=`ls scsi_tape | egrep '^st[0-9]*$'` fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcc.sh-199- cap=- ############################################## fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcc.sh-208- then fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcc.sh:209: size=`cat block:$dev/size` fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcc.sh:210: cap=`lun_cap $size` fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcc.sh-211- fi ############################################## fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcc.sh-249- do fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcc.sh:250: if [ "`sym_name $hba`" = "$sym" ] fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcc.sh-251- then ############################################## fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcc.sh-269- printf "$fmt" "$x" \ fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcc.sh:270: "`fmt_hex $fdir/$x/port_name`" \ fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcc.sh:271: "`fmt_hex $fdir/$x/port_id`" \ fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcc.sh:272: "`cat $fdir/$x/port_state`" \ fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcc.sh:273: "`sym_name $x`" fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcc.sh-274- ) 2>/dev/null ############################################## fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcc.sh-278-hba_info() { fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcc.sh:279: local x=`hba_name $1` fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcc.sh-280- local fmt="\t%-20s %s\n" ############################################## fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcc.sh-312- cd $fdir/$x fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcc.sh:313: dev="`cat $sdir/$x/proc_name``cat $sdir/$x/unique_id`" fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcc.sh-314- printf "$fmt" "$x" "$dev" \ fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcc.sh:315: "`cat $sdir/$x/active_mode`" \ fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcc.sh:316: "`cat $sdir/$x/state`" \ fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcc.sh:317: "`cat $sdir/$x/host_busy`" fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcc.sh-318- ) 2>/dev/null ############################################## fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcc.sh-376- then fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcc.sh:377: host=`hba_name $hba` fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcc.sh-378- dir=$fdir/$host ############################################## fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcc.sh-429-then fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcc.sh:430: scsi_hbas=`ls $sdir 2>/dev/null` fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcc.sh-431-fi ############################################## fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcc.sh-434- # sort the list of HBAs by the number after the 't' in "host9" fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcc.sh:435: all_hbas=`ls $fdir 2>/dev/null | sort -n -tt -k2` fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcc.sh-436-fi ############################################## fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcoe_edd.sh-58- fi fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcoe_edd.sh:59:# for disk in `find ${SYSEDD} -maxdepth 1 -name 'int13*'` fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcoe_edd.sh-60- for disk in ${SYSEDD}/int13_* ############################################## fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcoe_edd.sh-66- LOG " checking ${disk}/interface..." fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcoe_edd.sh:67: prefix=`awk '{printf $1}' < ${disk}/interface` fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcoe_edd.sh-68- if [ "${PREFIX}" != "${prefix}" ]; then ############################################## fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcoe_edd.sh-71- fi fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcoe_edd.sh:72: FCOE_INF=`cat ${disk}/interface` fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcoe_edd.sh-73- LOG " found FCoE boot info. from boot rom:${FCOE_INF}..." fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcoe_edd.sh-74- fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcoe_edd.sh:75: FCOE_WWN=`awk '{printf $3}' < ${disk}/interface` fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcoe_edd.sh-76- if [ ${#FCOE_WWN} -ne 16 ]; then ############################################## fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcoe_edd.sh-79- fi fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcoe_edd.sh:80: FCOE_LUN=`awk '{printf $5}' < ${disk}/interface` fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcoe_edd.sh-81- if [ -z "${#FCOE_LUN}" ]; then ############################################## fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcoe_edd.sh-100- if [ -e ${nic}/address ]; then fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcoe_edd.sh:101: FCOE_MAC=`cat ${nic}/address` fcoe-utils-1.0.32+git20190507.9834b34/contrib/fcoe_edd.sh-102- FCOE_NIC=$(basename ${nic}) ############################################## fcoe-utils-1.0.32+git20190507.9834b34/debug/fcoedump.sh-8-if [ -z $1 ]; then fcoe-utils-1.0.32+git20190507.9834b34/debug/fcoedump.sh:9: echo "Usage: `basename $0` eth[0-9]" fcoe-utils-1.0.32+git20190507.9834b34/debug/fcoedump.sh-10- exit 1; ############################################## fcoe-utils-1.0.32+git20190507.9834b34/include/fc_types.h-45-#define FC_OPT_PASSIVE 0x20 /* Responding to connect */ fcoe-utils-1.0.32+git20190507.9834b34/include/fc_types.h:46:#define FC_OPT_SET_MAC 0x40 /* use non-standard MAC addr (FCOE) */ fcoe-utils-1.0.32+git20190507.9834b34/include/fc_types.h-47-#define FC_OPT_FCOE_OLD 0x80 /* use old prototype FCoE encaps */ ############################################## fcoe-utils-1.0.32+git20190507.9834b34/lib/fip.c-98-static int fcoe-utils-1.0.32+git20190507.9834b34/lib/fip.c:99:fip_socket_add_addr(int s, int ifindex, bool add, const __u8 *mac, bool multi) fcoe-utils-1.0.32+git20190507.9834b34/lib/fip.c-100-{ ############################################## fcoe-utils-1.0.32+git20190507.9834b34/lib/fip.c-133- fcoe-utils-1.0.32+git20190507.9834b34/lib/fip.c:134: return fip_socket_add_addr(s, ifindex, add, smac, false); fcoe-utils-1.0.32+git20190507.9834b34/lib/fip.c-135-} ############################################## fcoe-utils-1.0.32+git20190507.9834b34/lib/fip.c-149- smac[ETHER_ADDR_LEN - 1] = multi; fcoe-utils-1.0.32+git20190507.9834b34/lib/fip.c:150: fip_socket_add_addr(s, ifindex, add, smac, true); fcoe-utils-1.0.32+git20190507.9834b34/lib/fip.c-151-} ############################################## fcoe-utils-1.0.32+git20190507.9834b34/debian/fcoe-utils.init-108- if [ $? -eq 0 ]; then fcoe-utils-1.0.32+git20190507.9834b34/debian/fcoe-utils.init:109: log_daemon_msg "$FCOEMON -- RUNNING, pid=`cat $PID_FILE`" fcoe-utils-1.0.32+git20190507.9834b34/debian/fcoe-utils.init-110- else ############################################## fcoe-utils-1.0.32+git20190507.9834b34/debian/patches/libsa-Fix-build-warning-on-sparc.patch-18-make[1]: Entering directory `/«PKGBUILDDIR»' fcoe-utils-1.0.32+git20190507.9834b34/debian/patches/libsa-Fix-build-warning-on-sparc.patch:19:depbase=`echo lib/fcoe_utils.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ fcoe-utils-1.0.32+git20190507.9834b34/debian/patches/libsa-Fix-build-warning-on-sparc.patch-20- gcc -DPACKAGE_NAME=\"fcoe-utils\" -DPACKAGE_TARNAME=\"fcoe-utils\" -DPACKAGE_VERSION=\"1.0.28\" -DPACKAGE_STRING=\"fcoe-utils\ 1.0.28\" -DPACKAGE_BUGREPORT=\"fcoe-devel@open-fcoe.org\" -DPACKAGE_URL=\"\" -DPACKAGE=\"fcoe-utils\" -DVERSION=\"1.0.28\" -DPACKAGE=\"fcoe-utils\" -DVERSION=\"1.0.28\" -I. -I./include -I./include -DSYSCONFDIR="\"/etc\"" -D_FORTIFY_SOURCE=2 -Wall -Wformat=2 -Werror -g -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -MT lib/fcoe_utils.o -MD -MP -MF $depbase.Tpo -c -o lib/fcoe_utils.o lib/fcoe_utils.c &&\ fcoe-utils-1.0.32+git20190507.9834b34/debian/patches/libsa-Fix-build-warning-on-sparc.patch-21- mv -f $depbase.Tpo $depbase.Po fcoe-utils-1.0.32+git20190507.9834b34/debian/patches/libsa-Fix-build-warning-on-sparc.patch:22:depbase=`echo lib/sa_log.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ fcoe-utils-1.0.32+git20190507.9834b34/debian/patches/libsa-Fix-build-warning-on-sparc.patch-23- gcc -DPACKAGE_NAME=\"fcoe-utils\" -DPACKAGE_TARNAME=\"fcoe-utils\" -DPACKAGE_VERSION=\"1.0.28\" -DPACKAGE_STRING=\"fcoe-utils\ 1.0.28\" -DPACKAGE_BUGREPORT=\"fcoe-devel@open-fcoe.org\" -DPACKAGE_URL=\"\" -DPACKAGE=\"fcoe-utils\" -DVERSION=\"1.0.28\" -DPACKAGE=\"fcoe-utils\" -DVERSION=\"1.0.28\" -I. -I./include -I./include -DSYSCONFDIR="\"/etc\"" -D_FORTIFY_SOURCE=2 -Wall -Wformat=2 -Werror -g -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -MT lib/sa_log.o -MD -MP -MF $depbase.Tpo -c -o lib/sa_log.o lib/sa_log.c &&\