From: Dmitry V. Levin Date: Sun, 6 Aug 2017 12:39:56 +0000 (+0000) Subject: pathtrace: fix matching of symlinkat syscall X-Git-Tag: v4.19~175 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=10360644ca04c2da5b767b981e1dd0004cde85e2;p=strace pathtrace: fix matching of symlinkat syscall * pathtrace.c (pathtrace_match_set) : The first argument of symlinkat syscall is not a path but an arbitrary string, ignore it. --- diff --git a/pathtrace.c b/pathtrace.c index f0b85513..e6e122ac 100644 --- a/pathtrace.c +++ b/pathtrace.c @@ -225,9 +225,8 @@ pathtrace_match_set(struct tcb *tcp, struct path_set *set) return fdmatch(tcp, tcp->u_arg[4], set); case SEN_symlinkat: - /* path, fd, path */ + /* x, fd, path */ return fdmatch(tcp, tcp->u_arg[1], set) || - upathmatch(tcp, tcp->u_arg[0], set) || upathmatch(tcp, tcp->u_arg[2], set); case SEN_copy_file_range: