diff options
author | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2019-07-25 15:45:38 -0400 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2019-07-26 09:20:48 -0400 |
commit | b95fbd955c1ee1fda031236e9ac10bb6f014a5f1 (patch) | |
tree | 46b97f856b0367fc76bc411c2af8e133412a1c72 | |
parent | 23518372c046f03dba0848aee87e060f30f5ffc7 (diff) | |
download | trace-cmd-b95fbd955c1ee1fda031236e9ac10bb6f014a5f1.tar.gz |
kernel-shark: Revert adding environment variables to kshark-su-record
This reverts:
8eb0d753e ("kernel-shark: Execute kshark-record from same dir as kshark-su-record")
b084eb5aa ("kernel-shark: Set the DISPLAY environment for pkexec kshark-record")
As the policykit (when installed correctly), should handle both the path to
the executable, as well as the DISPLAY and XAUTHORITY environment variables.
Link: http://lore.kernel.org/linux-trace-devel/20190725194738.979632340@goodmis.org
Reviewed-by: Yordan Karadzhov (VMware) <y.karadz@gmail.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
-rwxr-xr-x | kernel-shark/bin/kshark-su-record | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel-shark/bin/kshark-su-record b/kernel-shark/bin/kshark-su-record index c14f03da..70d781d8 100755 --- a/kernel-shark/bin/kshark-su-record +++ b/kernel-shark/bin/kshark-su-record @@ -2,5 +2,4 @@ xhost +si:localuser:root &>/dev/null -THIS_DIR=`dirname $0` -pkexec env DISPLAY=${DISPLAY} ${THIS_DIR}/kshark-record -o ${PWD}/trace.dat +pkexec kshark-record -o ${PWD}/trace.dat |