]> granicus.if.org Git - strace/commitdiff
pathtrace: fix missing syscalls
authorNikolay Marchuk <marchuk.nikolay.a@gmail.com>
Sun, 6 Aug 2017 12:22:06 +0000 (19:22 +0700)
committerDmitry V. Levin <ldv@altlinux.org>
Sun, 6 Aug 2017 12:39:56 +0000 (12:39 +0000)
* pathtrace.c (pathtrace_match_set): Fix symlink decoding,
disable pathtracing for inotify_init.

pathtrace.c

index 26a52fecd6034a9838985aa0f4d13b17c12fac4c..f0b85513334ee57ddc365386ad9246b6c2d606cc 100644 (file)
@@ -200,6 +200,7 @@ pathtrace_match_set(struct tcb *tcp, struct path_set *set)
                        upathmatch(tcp, tcp->u_arg[1], set);
 
        case SEN_quotactl:
+       case SEN_symlink:
                /* x, path */
                return 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: