I'm trying to compile a module which intercepts the unlink system call.
So far so good but I'm stuck on one point.
By using struct dentry I can get the id of the filesystem that my file
being deleted is on. How can I convert this id to the name of the mount
I found lookup_vfsmnt but when I try to use it I get
./syscall.o: unresolved symbol lookup_vfsmnt
Now lookup_vfsmnt is in my System.map but not in /proc/ksyms
So my question is, what can I do to be able to use lookup_vfsmnt? If I
can't use it, what can I use instead to convert a filesystem ID into its
current mount point.
Dana Echtner \ Unix Systems Administrator
rw-rw-rw-: The file protection of the beast