[PATCH] pathtrace: Fix missing syscalls

Nikolay Marchuk marchuk.nikolay.a at gmail.com
Sat Aug 5 05:27:52 UTC 2017


* pathtrace.c (pathtrace_match_set): Fix symlink decoding, disable pathtracing
for inotify_init.
---
 pathtrace.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/pathtrace.c b/pathtrace.c
index 26a52fe..b68d2f7 100644
--- a/pathtrace.c
+++ b/pathtrace.c
@@ -195,6 +195,7 @@ pathtrace_match_set(struct tcb *tcp, struct path_set *set)
 	case SEN_link:
 	case SEN_mount:
 	case SEN_pivotroot:
+	case SEN_symlink:
 		/* path, path */
 		return upathmatch(tcp, tcp->u_arg[0], set) ||
 			upathmatch(tcp, tcp->u_arg[1], set);
@@ -341,6 +342,7 @@ pathtrace_match_set(struct tcb *tcp, struct path_set *set)
 	case SEN_eventfd2:
 	case SEN_eventfd:
 	case SEN_fanotify_init:
+	case SEN_inotify_init:
 	case SEN_inotify_init1:
 	case SEN_memfd_create:
 	case SEN_perf_event_open:
-- 
2.1.4





More information about the Strace-devel mailing list