Re: pivot_root seems to be broken in 2.4.21-ac4

From: Jason Baron (jbaron@redhat.com)
Date: Tue Jul 22 2003 - 12:37:48 EST


> I tell init to re-execute itself (after pivot_root and thus from the new
> root fs), which causes init to close its old fds and open new ones from
> the new root fs with. This is necessary because init already runs as pid
> 1 when I start the root fs switching. Maybe something changed with the
> kernel process fds from 2.4.21-rc2 to 2.4.21-ac4 ?
>

yes, see the addition of the unshare_files function in kernel/fork.c

-Jason

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Jul 23 2003 - 22:00:47 EST