proc

how to get proc_root

Submitted by Anonymous
on August 28, 2009 - 10:57am

Hi, i am trying to hook readdir call in proc filesystem.

        struct file_operations *fops;

	fops = proc_root.proc_fops;
	readdir_old = fops->readdir;
	fops->readdir = readdir_new;

       

But, proc_root is no longer exported. So, how can I get it?
(No System.map, /dev/kmem ...)

Thank you