lkml.org 
[lkml]   [1996]   [Nov]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Glitch in sys_chroot()
Date

> sys_chroot() doesn't change directory after the chroot has happened.

It never used to on other OS's (which isnt to say its not a good thing
to fix)

> The simple solution in fs/open.c is the addition of the following
> to sys_chroot() before the return:
>
> iput(current->fs->pwd);
> current->fs->pwd = inode;
> inode->i_count++;

Thats certainly a good idea.


\
 
 \ /
  Last update: 2005-03-22 13:38    [W:0.099 / U:0.076 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site