Skip to content

Commit

Permalink
Terminal: ignore sudo and su
Browse files Browse the repository at this point in the history
Fix #1283
  • Loading branch information
CarterLi committed Sep 22, 2024
1 parent 005d660 commit fc94746
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/detection/terminalshell/terminalshell_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ static pid_t getTerminalInfo(FFTerminalResult* result, pid_t pid)
{
//Known shells
if (
ffStrbufEqualS(&result->processName, "sudo") ||
ffStrbufEqualS(&result->processName, "su") ||
ffStrbufEqualS(&result->processName, "sh") ||
ffStrbufEqualS(&result->processName, "ash") ||
ffStrbufEqualS(&result->processName, "bash") ||
Expand Down

0 comments on commit fc94746

Please sign in to comment.