ltt-armall script: disable input subsystem by default
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 25 Mar 2010 20:40:08 +0000 (16:40 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 25 Mar 2010 20:40:08 +0000 (16:40 -0400)
Add -i option to enable input subsystem.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
lttctl/ltt-armall.sh

index 03143235431dfc7bf3cbaeeae6c5210190533111..d73cdbaaf349f94bd5996ad681f5a2bae8f44a50 100755 (executable)
@@ -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}"
This page took 0.024074 seconds and 4 git commands to generate.