ANDROID: syscall_check: add vendor hook for open syscall
Through this vendor hook, we can get the timing to check current running task for the validation of its credential and open operation. Bug: 191291287 Signed-off-by: Kuan-Ying Lee <Kuan-Ying.Lee@mediatek.com> Change-Id: Ia644ceb02dbc230ee1d25cad3630c2c3f908e41a
This commit is contained in:
@@ -17,6 +17,10 @@ DECLARE_HOOK(android_vh_check_mmap_file,
|
||||
unsigned long flag, unsigned long ret),
|
||||
TP_ARGS(file, prot, flag, ret));
|
||||
|
||||
DECLARE_HOOK(android_vh_check_file_open,
|
||||
TP_PROTO(const struct file *file),
|
||||
TP_ARGS(file));
|
||||
|
||||
#endif /* _TRACE_HOOK_SYSCALL_CHECK_H */
|
||||
/* This part must be outside protection */
|
||||
#include <trace/define_trace.h>
|
||||
|
Reference in New Issue
Block a user