Skip to content

Commit c06b638

Browse files
committed
proc.parentpid->proc.ppid and proc.parentname->proc.pname
1 parent c943cd5 commit c06b638

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

userspace/libsinsp/filterchecks.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -656,8 +656,8 @@ const filtercheck_field_info sinsp_filter_check_thread_fields[] =
656656
{PT_CHARBUF, EPF_NONE, PF_NA, "proc.args", "the arguments passed on the command line when starting the process generating the event."},
657657
{PT_CHARBUF, EPF_NONE, PF_NA, "proc.cwd", "the current working directory of the event."},
658658
{PT_UINT32, EPF_NONE, PF_DEC, "proc.nchilds", "the number of child threads of that the process generating the event currently has."},
659-
{PT_INT64, EPF_NONE, PF_DEC, "proc.parentpid", "the pid of the parent of the process generating the event."},
660-
{PT_CHARBUF, EPF_NONE, PF_NA, "proc.parentname", "the name (excluding the path) of the parent of the process generating the event."},
659+
{PT_INT64, EPF_NONE, PF_DEC, "proc.ppid", "the pid of the parent of the process generating the event."},
660+
{PT_CHARBUF, EPF_NONE, PF_NA, "proc.pname", "the name (excluding the path) of the parent of the process generating the event."},
661661
{PT_INT64, EPF_NONE, PF_DEC, "thread.tid", "the id of the thread generating the event."},
662662
{PT_BOOL, EPF_NONE, PF_NA, "thread.ismain", "'true' if the thread generating the event is the main one in the process."},
663663
{PT_RELTIME, EPF_NONE, PF_DEC, "thread.exectime", "Thread execution time. Exported only by switch events."},

userspace/sysdig/chisels/spy_users.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function on_init()
3333
fuser = chisel.request_field("user.name")
3434

3535
-- set the filter
36-
chisel.set_filter("(evt.type=execve and not proc.name contains sh and proc.parentname contains sh) or (evt.type=chdir and evt.dir=< and proc.name contains sh)")
36+
chisel.set_filter("(evt.type=execve and not proc.name contains sh and proc.pname contains sh) or (evt.type=chdir and evt.dir=< and proc.name contains sh)")
3737

3838
return true
3939
end

0 commit comments

Comments
 (0)