Fix journal matching

This allows for retrieving all tlog recordings and fixes
the broken username/hostname filtering.
This commit is contained in:
Justin Stephenson 2019-09-04 14:22:58 -04:00
parent ac612470bd
commit 5348d111c4

View file

@ -722,10 +722,11 @@ class View extends React.Component {
* Assumes journalctl is not running. * Assumes journalctl is not running.
*/ */
journalctlStart() { journalctlStart() {
let matches = ["_EXE=/usr/bin/tlog-rec-session", let matches = ["_COMM=tlog-rec",
"_EXE=/usr/bin/tlog-rec", "+", /* Strings longer than TASK_COMM_LEN (16) characters
"_COMM=tlog-rec", "+", * are truncated (man proc) */
"_COMM=tlog-rec-session"]; "_COMM=tlog-rec-sessio"];
if (this.state.username && this.state.username !== "") { if (this.state.username && this.state.username !== "") {
matches.push("TLOG_USER=" + this.state.username); matches.push("TLOG_USER=" + this.state.username);
} }