Messages in this thread | | | Date | Wed, 23 Jul 2003 01:14:54 +0300 | From | Mika Penttilä <> | Subject | Re: pivot_root seems to be broken in 2.4.21-ac4 |
| |
/sbin/init used to start up with files->count > 1 and does close(0);close(1);close(2); -> kernel thread fds close.
Now with unshare_files() and init's files->count ==1 the kernel threads /dev/console fds remain open. But one could ask of course so what :)
--Mika
Alan Cox wrote:
>>If it is not expected behaviour that the kernel processes no longer >>close their fds open an pivot_root, then I'd like to debug this (is my >>use of pivot_root correct or am I doing something wrong here ?). I will >>try with vanilla 2.4.21 now and see how that goes (or should I rather >>try 2.4.22-pre7 ?). >> >> > >2.4.22pre7 has the unshare_files fix - its a security fix. > >It should not have changed the behaviour so I'm very interested to know if >that specific patch set changes the behaviour and precisely what your code >is doing > >- >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/ > > >
- 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/
| |