Project

General

Profile

Bug #485

fake start with status_services.php and installed packages

Added by robert zelaya about 9 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
Low
Assignee:
-
Category:
-
Target version:
Start date:
04/05/2010
Due date:
% Done:

0%

Estimated time:
Affected Version:
All
Affected Architecture:

Description

Issue:

On status_services.php a process is said to be running if the <executable>snort</executable> name is in ps | grep. Example 'ps | grep snort'. If another process has the executable tag name (snort) anywhere in 'ps' the status_services.php will say it is running when its not.

For example:
Stop all snort processes. In the terminal type ee /var/log/snort_error.php then go to the status_services.php page.
You will see snort is said to be running when it is not running.

Fix:

Package maintainers need to add the process path to the executable tag. Moreover, a longer unique executable tag is even less prone to this error.

Associated revisions

Revision ba8495f0 (diff)
Added by Ermal Luçi over 8 years ago

Ticket #485. Correct code and use pkill/pgrep to match or kill process. Since these utilities know how to handle pidfiles and exact matches on process names.

History

#1 Updated by Chris Buechler about 9 years ago

  • Target version set to 2.0
  • Affected Version set to All

#2 Updated by Chris Buechler about 9 years ago

maybe change it pgrep which will at least not match on arguments of other commands, though that's not perfect it's better.

#3 Updated by Ermal Luçi over 8 years ago

  • Status changed from New to Feedback

#4 Updated by Chris Buechler over 8 years ago

  • Status changed from Feedback to Resolved

Also available in: Atom PDF