Hi list,
I want to hide a file (for education purpose) creating my own readdir VFS call, but i can't because in linux/fs.h struct file_operations *f_op is declared as const. Is there another way to do it?

root_f = filp_open("/", O_RDONLY, 0600);
readdir_old = root_f->f_op->readdir;
root_f->f_op->readdir = readdir_new;
filp_close(root_f, NULL);


----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.



--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecar...@nl.linux.org
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to