Q: chroot(9) returning EFAULT

Paul Herman pherman at frenchfries.net
Mon Mar 15 18:19:31 PST 2004


On Mon, 15 Mar 2004, Paul Herman wrote:

> It does:
>
> {
> 	struct prison j;
> 	struct chroot_args ca;
>
> 	[...]
> 	ca.path = j.pr_path;	/* !!!! */
> 	error = chroot(&ca);
> 	[...]
> }
>
> hmmm...

Sorry to reply to myself, I see it now.  The pointer is still in
user land, I assumed it was an array.   Thanks!

-Paul.





More information about the Kernel mailing list