[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] Add uselib syscall
From: |
Paul Brook |
Subject: |
Re: [Qemu-devel] [PATCH] Add uselib syscall |
Date: |
Sun, 21 Sep 2008 13:59:11 +0100 |
User-agent: |
KMail/1.9.9 |
> case TARGET_NR_uselib:
> - goto unimplemented;
> + {
> + if(!(p = lock_user_string(arg1))) {
> + ret = -TARGET_EFAULT;
> + goto efault;
> + }
> + ret = get_errno(uselib(path(p)));
> + unlock_user(p, arg1, 0);
> + }
> + break;
I'm pretty sure this is wrong. The last thing we want to be doing is loading a
host library.
Paul