=========================================================== .___ __ __ _________________ __ __ __| _/|__|/ |_ / ___\_` __ \__ \ | | \/ __ | | \\_ __\ / /_/ > | \// __ \| | / /_/ | | || | \___ /|__| (____ /____/\____ | |__||__| /_____/ \/ \/ grep rough audit - static analysis tool v2.8 written by @Wireghoul =================================[justanotherhacker.com]=== lava-2020.06/doc/content/admin/advanced-tutorials/remote-workers.md-232- * by using published container images: lava-2020.06/doc/content/admin/advanced-tutorials/remote-workers.md:233: `docker run -v $PWD:/tmp/certs --rm lavasoftware/lava-dispatcher /usr/share/lava-common/create_certificate.py --directory /tmp/certs foo_slave_1` lava-2020.06/doc/content/admin/advanced-tutorials/remote-workers.md-234- * alternatively you can create the certificates on system which has LAVA ############################################## lava-2020.06/doc/v2/actions-deploy-to-recovery.rsti-104- can use single quotes but the second parameter **must** use double lava-2020.06/doc/v2/actions-deploy-to-recovery.rsti:105: quotes ``"`` so that the values of ``$SCRIPT`` and ``$LOADER`` are lava-2020.06/doc/v2/actions-deploy-to-recovery.rsti-106- substituted. Portable scripts are free to use whatever language you ############################################## lava-2020.06/doc/v2/actions-protocols.rst-226-+-----------------------------------+-------------------------+ lava-2020.06/doc/v2/actions-protocols.rst:227:| ``- lava-send ipv4 ipaddr=$(IP)`` | | lava-2020.06/doc/v2/actions-protocols.rst-228-+-----------------------------------+-------------------------+ ############################################## lava-2020.06/doc/v2/actions-timeout.rst-80- lava-2020.06/doc/v2/actions-timeout.rst:81:* Log message is of the form: ``${name}: timeout``:: lava-2020.06/doc/v2/actions-timeout.rst-82- ############################################## lava-2020.06/doc/v2/actions-timeout.rst-148- lava-2020.06/doc/v2/actions-timeout.rst:149:* Log message is of the form: ``${name}: Wait for prompt``:: lava-2020.06/doc/v2/actions-timeout.rst-150- ############################################## lava-2020.06/doc/v2/actions-timeout.rst-165- lava-2020.06/doc/v2/actions-timeout.rst:166:* Log message is of the form: ``${name}: timeout``:: lava-2020.06/doc/v2/actions-timeout.rst-167- ############################################## lava-2020.06/doc/v2/debian.rst-443-devices/\*.jinja2 next testjob submission lava-2020.06/doc/v2/debian.rst:444:\*_app/\*.py ``$ sudo apache2ctl restart`` lava-2020.06/doc/v2/debian.rst-445-====================== ============================================== ############################################## lava-2020.06/doc/v2/lava_test_shell.rst-97- lava-2020.06/doc/v2/lava_test_shell.rst:98:When a test runs, ``$PATH`` is arranged so that some LAVA-specific lava-2020.06/doc/v2/lava_test_shell.rst-99-utilities are available: ############################################## lava-2020.06/doc/v2/lava_test_shell.rst-130- lava-2020.06/doc/v2/lava_test_shell.rst:131:* ``--result $RESULT``: $RESULT should be one of pass/fail/skip/unknown lava-2020.06/doc/v2/lava_test_shell.rst:132:* ``--measurement $MEASUREMENT``: A numerical measurement associated with the test result lava-2020.06/doc/v2/lava_test_shell.rst:133:* ``--units $UNITS``: The units of $MEASUREMENT lava-2020.06/doc/v2/lava_test_shell.rst-134- ############################################## lava-2020.06/doc/v2/multinodeapi.rst-302- lava-2020.06/doc/v2/multinodeapi.rst:303: SPACE=`df -h | grep "/$" | awk '{print $4}'` lava-2020.06/doc/v2/multinodeapi.rst-304- echo $SPACE ############################################## lava-2020.06/doc/v2/multinodeapi.rst-344- echo $! > /tmp/iperf-server.pid lava-2020.06/doc/v2/multinodeapi.rst:345: IP=`ip route get 8.8.8.8 | head -n 1 | awk '{print $NF}'` lava-2020.06/doc/v2/multinodeapi.rst-346- echo $IP ############################################## lava-2020.06/doc/v2/pipeline-debug.rst-68- individual files are in a directory named after the start time of the lava-2020.06/doc/v2/pipeline-debug.rst:69: corresponding job ``<year>/<month>/<day/$ID``, e.g. ``2018/08/10/1234``. lava-2020.06/doc/v2/pipeline-debug.rst-70- The directory includes the validation output ``description.yaml`` and the ############################################## lava-2020.06/doc/v2/results-intro.rst-186-exception. The current test shell result will be marked as ``fail`` and lava-2020.06/doc/v2/results-intro.rst:187:the ``${MESSAGE}`` will be recorded. The test job itself will go ``Incomplete`` lava-2020.06/doc/v2/results-intro.rst:188:and the ``${MESSAGE}`` will be recorded as the job failure comment. lava-2020.06/doc/v2/results-intro.rst-189- ############################################## lava-2020.06/doc/v2/review-criteria.rst-100-test wants an image deployed, the LAVA extensions should be deployed lava-2020.06/doc/v2/review-criteria.rst:101:alongside the image and then mounted to create a ``/lava-$hostname/`` lava-2020.06/doc/v2/review-criteria.rst-102-directory. Images for testing within LAVA are no longer broken up or ############################################## lava-2020.06/doc/v2/secondary-media.rst-413-a device where UUID is required, as it is this kernel which needs to make lava-2020.06/doc/v2/secondary-media.rst:414:``/dev/disk/by-id/$path`` exist for ``dd`` to use. Remember not to quote the lava-2020.06/doc/v2/secondary-media.rst-415-UUID:: ############################################## lava-2020.06/doc/v2/simple-admin.rst-929- lava-2020.06/doc/v2/simple-admin.rst:930:See ``$ sudo lava-server manage users add --help`` for more information lava-2020.06/doc/v2/simple-admin.rst-931-and available options. ############################################## lava-2020.06/doc/v2/simple-admin.rst-947- lava-2020.06/doc/v2/simple-admin.rst:948:See ``$ sudo lava-server manage groups add --help`` or ``$ sudo lava-server lava-2020.06/doc/v2/simple-admin.rst-949-manage groups update --help`` for more information and available options. ############################################## lava-2020.06/doc/v2/vland.rst-159- # identify the interface name from the matching sysfs path. lava-2020.06/doc/v2/vland.rst:160: NAME=`grep -l ${MAC} ${SYSFS}*/address | awk -F/ '{print $(NF-1)}'` lava-2020.06/doc/v2/vland.rst-161- echo ${NAME} ############################################## lava-2020.06/doc/v2/writing-tests.rst-56- characters or special characters from the following list, lava-2020.06/doc/v2/writing-tests.rst:57: including white space(s): ``$& "'`()<>/\|;`` lava-2020.06/doc/v2/writing-tests.rst-58- ############################################## lava-2020.06/doc/v2/writing-tests.rst-1049- lava-2020.06/doc/v2/writing-tests.rst:1050:This example checks for ``lava-test-case`` in ``$PATH`` to determine lava-2020.06/doc/v2/writing-tests.rst-1051-whether to use the LAVA helpers. ############################################## lava-2020.06/doc/v2/writing-tests.rst-1196-This snippet is also :ref:`portable <test_definition_portability>` lava-2020.06/doc/v2/writing-tests.rst:1197:because if ``lava-test-case`` is not in the ``$PATH``, the setup lava-2020.06/doc/v2/writing-tests.rst-1198-command is executed without needing ``lava-test-case`` or ############################################## lava-2020.06/lava_dispatcher/lava_test_shell/lava-test-runner-37-for line in $(cat ${WORKFILE} | grep -v LAVA_SIGNAL); do lava-2020.06/lava_dispatcher/lava_test_shell/lava-test-runner:38: test=`basename $line` lava-2020.06/lava_dispatcher/lava_test_shell/lava-test-runner-39- odir=${RESULTSDIR}/${test}-`date +%s` ############################################## lava-2020.06/lava_dispatcher/lava_test_shell/multi_node/lava-multi-node.lib-135-_NETWORK_INTERFACE=$1 lava-2020.06/lava_dispatcher/lava_test_shell/multi_node/lava-multi-node.lib:136:_RAW_STREAM_V4=`ifconfig $_NETWORK_INTERFACE |grep -o -E '([[:xdigit:]]{1,3}\.){3}[[:xdigit:]]{1,3}'` lava-2020.06/lava_dispatcher/lava_test_shell/multi_node/lava-multi-node.lib:137:_RAW_STREAM_V6=`ifconfig $_NETWORK_INTERFACE |grep "inet6 "` lava-2020.06/lava_dispatcher/lava_test_shell/multi_node/lava-multi-node.lib:138:_RAW_STREAM_MAC=`ifconfig $_NETWORK_INTERFACE |grep -o -E '([[:xdigit:]]{1,2}:){5}[[:xdigit:]]{1,2}'` lava-2020.06/lava_dispatcher/lava_test_shell/multi_node/lava-multi-node.lib-139- lava-2020.06/lava_dispatcher/lava_test_shell/multi_node/lava-multi-node.lib:140:_IPV4_STREAM_IP=`echo $_RAW_STREAM_V4 | awk '{print$1}'` lava-2020.06/lava_dispatcher/lava_test_shell/multi_node/lava-multi-node.lib-141- lava-2020.06/lava_dispatcher/lava_test_shell/multi_node/lava-multi-node.lib:142:_IFCONFIG_CHECK=`ifconfig $_NETWORK_INTERFACE | grep HWaddr` lava-2020.06/lava_dispatcher/lava_test_shell/multi_node/lava-multi-node.lib-143- lava-2020.06/lava_dispatcher/lava_test_shell/multi_node/lava-multi-node.lib-144-if [ "${_IFCONFIG_CHECK}x" != "x" ] ; then lava-2020.06/lava_dispatcher/lava_test_shell/multi_node/lava-multi-node.lib:145: _IPV4_STREAM_NM=`echo $_RAW_STREAM_V4 | awk '{print$3}'` lava-2020.06/lava_dispatcher/lava_test_shell/multi_node/lava-multi-node.lib:146: _IPV4_STREAM_BC=`echo $_RAW_STREAM_V4 | awk '{print$2}'` lava-2020.06/lava_dispatcher/lava_test_shell/multi_node/lava-multi-node.lib-147-else lava-2020.06/lava_dispatcher/lava_test_shell/multi_node/lava-multi-node.lib:148: _IPV4_STREAM_NM=`echo $_RAW_STREAM_V4 | awk '{print$2}'` lava-2020.06/lava_dispatcher/lava_test_shell/multi_node/lava-multi-node.lib:149: _IPV4_STREAM_BC=`echo $_RAW_STREAM_V4 | awk '{print$3}'` lava-2020.06/lava_dispatcher/lava_test_shell/multi_node/lava-multi-node.lib-150-fi ############################################## lava-2020.06/lava_dispatcher/lava_test_shell/multi_node/lava-multi-node.lib-154- lava-2020.06/lava_dispatcher/lava_test_shell/multi_node/lava-multi-node.lib:155:_IPV6_STREAM_IP=`echo $_RAW_STREAM_V6 | grep -o -E '\s[[:xdigit:]]{0,4}:(:[[:xdigit:]]{0,4}){0,4}' | sed 's/ //'` lava-2020.06/lava_dispatcher/lava_test_shell/multi_node/lava-multi-node.lib-156-_IPV6_STREAM="ipv6="$_IPV6_STREAM_IP ############################################## lava-2020.06/lava_dispatcher/lava_test_shell/multi_node/lava-multi-node.lib-169- export _DNS_${_Counter}_STREAM=$line lava-2020.06/lava_dispatcher/lava_test_shell/multi_node/lava-multi-node.lib:170: _Counter=`expr ${_Counter} + 1` lava-2020.06/lava_dispatcher/lava_test_shell/multi_node/lava-multi-node.lib-171-done ############################################## lava-2020.06/lava_dispatcher/lava_test_shell/multi_node/lava-multi-node.lib-196-_INFO=$2 lava-2020.06/lava_dispatcher/lava_test_shell/multi_node/lava-multi-node.lib:197:_RAW_STREAM=`cat $LAVA_MULTI_NODE_NETWORK_CACHE |grep "$_HOSTNAME:$_INFO="` lava-2020.06/lava_dispatcher/lava_test_shell/multi_node/lava-multi-node.lib-198- ############################################## lava-2020.06/lava_dispatcher/lava_test_shell/multi_node/lava-multi-node.lib-206- lava-2020.06/lava_dispatcher/lava_test_shell/multi_node/lava-multi-node.lib:207:for line in `grep ":ipv4" $LAVA_MULTI_NODE_NETWORK_CACHE` ; do lava-2020.06/lava_dispatcher/lava_test_shell/multi_node/lava-multi-node.lib:208: _IP_STREAM=`echo $line | cut -d'=' -f2` lava-2020.06/lava_dispatcher/lava_test_shell/multi_node/lava-multi-node.lib:209: _TARGET_STREAM=`echo $line | cut -d':' -f1` lava-2020.06/lava_dispatcher/lava_test_shell/multi_node/lava-multi-node.lib-210- _HOSTNAME_STREAM=`grep "$_TARGET_STREAM:hostname=" \ ############################################## lava-2020.06/lava_dispatcher/lava_test_shell/multi_node/lava-multi-node.lib-223-SEEN_ROLES="." lava-2020.06/lava_dispatcher/lava_test_shell/multi_node/lava-multi-node.lib:224:for DEVICE in `lava-group| awk '{ if ($1 == "^[a-z]\t"); print $1 }'`; do lava-2020.06/lava_dispatcher/lava_test_shell/multi_node/lava-multi-node.lib-225- # dump disallowed characters out of the device name, it's used as a variable. lava-2020.06/lava_dispatcher/lava_test_shell/multi_node/lava-multi-node.lib:226: DEV_NAME=`printf $DEVICE | sed -e 's/[^a-z0-9]//g'` lava-2020.06/lava_dispatcher/lava_test_shell/multi_node/lava-multi-node.lib-227- # dump disallowed characters out of the role, it's used as a variable. lava-2020.06/lava_dispatcher/lava_test_shell/multi_node/lava-multi-node.lib:228: ROLE_NAME=`lava-group | grep ${DEVICE} | cut -f3 | sed -e 's/[^a-z0-9]//g'` lava-2020.06/lava_dispatcher/lava_test_shell/multi_node/lava-multi-node.lib:229: ROLE_SUFFIX=$ROLE_NAME`printf "%02d" $r` lava-2020.06/lava_dispatcher/lava_test_shell/multi_node/lava-multi-node.lib:230: while [ -n "`printf "${SEEN_ROLES}" | grep ${ROLE_SUFFIX}`" ]; do lava-2020.06/lava_dispatcher/lava_test_shell/multi_node/lava-multi-node.lib:231: r=`expr $r + 1` lava-2020.06/lava_dispatcher/lava_test_shell/multi_node/lava-multi-node.lib:232: ROLE_SUFFIX=$ROLE_NAME`printf "%02d" $r` lava-2020.06/lava_dispatcher/lava_test_shell/multi_node/lava-multi-node.lib-233- done lava-2020.06/lava_dispatcher/lava_test_shell/multi_node/lava-multi-node.lib-234- SEEN_ROLES="${SEEN_ROLES} ${ROLE_SUFFIX}" lava-2020.06/lava_dispatcher/lava_test_shell/multi_node/lava-multi-node.lib:235: for DEVROLE in `lava-group | grep ${DEVICE} | cut -f3`; do lava-2020.06/lava_dispatcher/lava_test_shell/multi_node/lava-multi-node.lib:236: eval $DEVROLE`printf "%02d" $r`="${ROLE_SUFFIX}" lava-2020.06/lava_dispatcher/lava_test_shell/multi_node/lava-multi-node.lib:237: ROLE_NAME="$DEVROLE"`printf "%02d" $r` lava-2020.06/lava_dispatcher/lava_test_shell/multi_node/lava-multi-node.lib-238- done lava-2020.06/lava_dispatcher/lava_test_shell/multi_node/lava-multi-node.lib:239: line=`grep $DEVICE ${LAVA_MULTI_NODE_NETWORK_CACHE} | grep ":ipv4" ` lava-2020.06/lava_dispatcher/lava_test_shell/multi_node/lava-multi-node.lib:240: _IP_STREAM=`printf $line | cut -d'=' -f2` lava-2020.06/lava_dispatcher/lava_test_shell/multi_node/lava-multi-node.lib:241: _TARGET_STREAM=`printf $line | cut -d':' -f1` lava-2020.06/lava_dispatcher/lava_test_shell/multi_node/lava-multi-node.lib:242: _HOSTNAME_STREAM=`grep "$_TARGET_STREAM:hostname=" ${LAVA_MULTI_NODE_NETWORK_CACHE} | cut -d'=' -f2` lava-2020.06/lava_dispatcher/lava_test_shell/multi_node/lava-multi-node.lib:243: ALIAS=`eval printf "%s" \\$${ROLE_NAME}` lava-2020.06/lava_dispatcher/lava_test_shell/multi_node/lava-multi-node.lib-244- if [ -n "$_IP_STREAM" ]; then ############################################## lava-2020.06/share/debian-dev-build.sh-13- set +e lava-2020.06/share/debian-dev-build.sh:14: chk=`dpkg-architecture -a$ARCH > /dev/null 2>&1 ; echo $?` lava-2020.06/share/debian-dev-build.sh-15- set -e ############################################## lava-2020.06/share/debian-dev-build.sh-30- o) lava-2020.06/share/debian-dev-build.sh:31: DIR=`readlink -f $OPTARG` lava-2020.06/share/debian-dev-build.sh-32- ;; ############################################## lava-2020.06/tests/lava_scheduler_app/test_uboot_templates.py-331- lava-2020.06/tests/lava_scheduler_app/test_uboot_templates.py:332: def test_ethaddr(self): lava-2020.06/tests/lava_scheduler_app/test_uboot_templates.py-333- data = """{% extends 'b2260.jinja2' %} ############################################## lava-2020.06/debian/lava-dispatcher.postinst-20-# Irrelevant with the dumb dispatcher model of V2 lava-2020.06/debian/lava-dispatcher.postinst:21:LAVA_SERVER_IP=`ip addr | awk '{ if ($1 == "inet" && $4 != "host") { gsub("/.*", "", $2); print($2) } }'` lava-2020.06/debian/lava-dispatcher.postinst-22- ############################################## lava-2020.06/debian/lava-server.postrm-31- # echo "checking ${MEDIADIR}" lava-2020.06/debian/lava-server.postrm:32: if [ ! `mountpoint $MEDIADIR >/dev/null; echo $?` ]; then lava-2020.06/debian/lava-server.postrm-33- # not an sshfs mountpoint, check for only empty directories. lava-2020.06/debian/lava-server.postrm-34- # echo "Not an SSHFS mountpoint" lava-2020.06/debian/lava-server.postrm:35: EMPTY=`find ${MEDIADIR} -type f | grep -v ${MEDIADIR}/media/.mounted || true` lava-2020.06/debian/lava-server.postrm-36- if [ -z "${EMPTY}" ]; then