hi,
can i do something like changing the code of proc file system
so that when we mount it in chrooted environment it show only process running from chrooted shell....
like i check before displaying directory in proc filesys that whether a process is from chrooted shell or not .....
or do the checking in the proc_read_inode function
any suggestion
rohit
On Wed, 02 Mar 2005 Herbert Poetzl wrote :
>On Wed, Mar 02, 2005 at 05:15:26AM -0000, rohit hooda wrote:
> >
> > i can do a
> > mount /proc /proc -t proc
> > but i don't wanna do this
> > i want to do this to virtualize the ps, uptime , top and other
> > commands.
> > tell me how this is implemented in the vserver
>
>well, linux-vserver does virtualize this by adjusting
>the various procfs functions supplying the data
>
>HTH,
>Herbert
>
>