[PATCH] pathtrace: Fix missing syscalls

Dmitry V. Levin ldv at altlinux.org
Sun Aug 6 12:13:47 UTC 2017


On Sat, Aug 05, 2017 at 12:27:52PM +0700, Nikolay Marchuk wrote:
> * 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);

Note that symlink(2) is not that similar to link(2) because
the first argument of symlink syscall is an arbitrary string.


-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20170806/37ef110a/attachment.bin>


More information about the Strace-devel mailing list