ANDROID: vendor_hooks:vendor hook for pidfd_open
Add vendor hook when detecting process status through pidfd_open. Bug: 238725692 Change-Id: I565988cb8bf6dd44ab4dc15c410c2dcf50703def Signed-off-by: xiaofeng <xiaofeng5@xiaomi.com>
This commit is contained in:

committed by
Suren Baghdasaryan

parent
0e1cb27700
commit
242b11e574
@@ -45,6 +45,9 @@
|
||||
#include <net/sock.h>
|
||||
#include <uapi/linux/pidfd.h>
|
||||
|
||||
#undef CREATE_TRACE_POINTS
|
||||
#include <trace/hooks/sched.h>
|
||||
|
||||
struct pid init_struct_pid = {
|
||||
.count = REFCOUNT_INIT(1),
|
||||
.tasks = {
|
||||
@@ -602,6 +605,7 @@ SYSCALL_DEFINE2(pidfd_open, pid_t, pid, unsigned int, flags)
|
||||
else
|
||||
fd = -EINVAL;
|
||||
|
||||
trace_android_vh_pidfd_open(p);
|
||||
put_pid(p);
|
||||
return fd;
|
||||
}
|
||||
|
Reference in New Issue
Block a user