[PATCH v3] Decode paths associated with file descriptors returned by syscalls
Dmitry V. Levin
ldv at altlinux.org
Tue Jun 3 19:42:47 UTC 2014
On Tue, Jun 03, 2014 at 09:08:23PM +0530, zubin.mithra at gmail.com wrote:
[...]
> --- a/file.c
> +++ b/file.c
> @@ -309,6 +309,12 @@ decode_open(struct tcb *tcp, int offset)
> int
> sys_open(struct tcb *tcp)
> {
> + decode_open(tcp, 0);
> + return RVAL_FD;
> +}
> +
> +int sys_delete_module(struct tcb *tcp)
> +{
> return decode_open(tcp, 0);
> }
Please change decode_open to return RVAL_FD so there would be no need to
change sys_open and sys_openat.
--
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20140603/2fd91a20/attachment.bin>
More information about the Strace-devel
mailing list