From 2085e1d4877dd822892239a5cac95beefad28968 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Sj=C3=B6gren?= Date: Sat, 30 May 2015 01:15:20 +0200 Subject: [PATCH] restrict ps output to root user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Thomas Sjögren --- helper_lib.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/helper_lib.sh b/helper_lib.sh index e692deb..8c6cfbb 100644 --- a/helper_lib.sh +++ b/helper_lib.sh @@ -1,5 +1,8 @@ #!/bin/sh +ps_command=$(command -v ps) +ps_args='-U root -u root -f' + # Returns the absolute path of a given string abspath () { case "$1" in /*)printf "%s\n" "$1";; *)printf "%s\n" "$PWD/$1";; esac; }