Hey.

For example i cantrol fchflags syscall via my kernel module.
I got:
int
n_fchflags(register struct proc *p, register struct fchflags_args)
{
...
}
struct fchflags_args {
        int     fd;
        int     flags;
};

I can get vnode of changed file.
I can get inode number of changed file.
But how can i get file name?

There is a way to get inode when i have file name and p (struct proc), so
maybe there is a way to get file name from inode number and p.

And another thing for chflags syscall.
I got file name, but how can I get full path name for this file?

-- 
Paweł Jakub Dawidek
Network Administrator.
Am I Evil? Yes, I Am.

Attachment: msg31370/pgp00000.pgp
Description: PGP signature

Reply via email to