From a4dc603fbbc706fbad0b6dcf4b2b56239494e45b Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Thu, 25 Mar 2010 16:40:08 -0400 Subject: [PATCH] ltt-armall script: disable input subsystem by default Add -i option to enable input subsystem. Signed-off-by: Mathieu Desnoyers --- lttctl/ltt-armall.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lttctl/ltt-armall.sh b/lttctl/ltt-armall.sh index 0314323..d73cdba 100755 --- a/lttctl/ltt-armall.sh +++ b/lttctl/ltt-armall.sh @@ -24,6 +24,7 @@ usage () { echo "Options:" > /dev/stderr printf "\t-l Also activate locking markers (high traffic)\n" > /dev/stderr printf "\t-n Also activate detailed network markers (large size)\n" > /dev/stderr + printf "\t-i Also activate input subsystem events (security implication: records keyboard inputs)\n" > /dev/stderr echo "" > /dev/stderr printf "\t-q Quiet mode, suppress output\n" > /dev/stderr printf "\t-h Print this help\n" > /dev/stderr @@ -45,6 +46,7 @@ while getopts "lnqh" options; do l) LOCKING="0";; n) NETWORK="0";; q) QUIET="0";; + i) INPUT="0";; h) usage; exit 0;; \?) usage; @@ -62,6 +64,10 @@ if [ ! ${NETWORK} ]; then TESTS="${TESTS} -path '*/net/*_extended' -prune -o" fi +if [ ! ${INPUT} ]; then + TESTS="${TESTS} -name input -prune -o" +fi + (eval "find '${MARKERSROOT}' ${TESTS} -name metadata -prune -o -name enable -print") | while read -r marker; do if [ ! ${QUIET} ]; then echo "Connecting ${marker%/enable}" -- 2.34.1