pathtrace: fix matching of symlinkat syscall

* pathtrace.c (pathtrace_match_set) <SEN_symlinkat>: The first argument
of symlinkat syscall is not a path but an arbitrary string, ignore it.
This commit is contained in:
Дмитрий Левин 2017-08-06 12:39:56 +00:00
parent f027d33049
commit 10360644ca

View File

@ -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: