Merge "Update KillFilter to handle 'deleted' exe's."
This commit is contained in:
commit
7bd863faf4
@ -117,6 +117,9 @@ class KillFilter(CommandFilter):
|
||||
return False
|
||||
try:
|
||||
command = os.readlink("/proc/%d/exe" % int(args[1]))
|
||||
# NOTE(dprince): /proc/PID/exe may have ' (deleted)' on
|
||||
# the end if an executable is updated or deleted
|
||||
command = command.rstrip(" (deleted)")
|
||||
if command not in self.args[1]:
|
||||
# Affected executable not in accepted list
|
||||
return False
|
||||
|
Loading…
Reference in New Issue
Block a user