Can anyone help me understand what is the difference between
current->fs->root and current->fs->rootmnt?
I'm trying to understand the follow_dotdot function in fs/namei.c.
Why both fs>root and fs->rootmnt are checked (to see if we are trying to
escape from chroot jail)?
if (nd->dentry == current->fs->root &&
nd->mnt == current->fs->rootmnt) {
read_unlock(¤t->fs->lock);
break;
}
I would be grateful if anyone could help.
_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/