On Mon, Feb 04, 2002 at 01:27:39AM -0800, Terry Lambert wrote:
+> char *saved_name;
+>
+> func()
+> {
+> char *foo;
+>
+> ...
+>
+> fd = open( foo, O_RDWR, 0664);
+> saved_name = strdup( foo);
+>
+> ...
+>
+> printf( "name that goes with fd %d is '%s'\n",
+> fd, saved_name);
+> ...
+> }
+>
+> i.e.: You opened the thing, you ought to know its name.
+>
Nope. We are in kernel area.
I want to control for example open() syscall:
static int my_open(register struct proc *p, register struct open_args *ea)
{
[...]
}
Name of file to open is in ea->path, but this name can be: ./somefile
and i need a full path to it.-- Paweł Jakub Dawidek Network Administrator. Am I Evil? Yes, I Am.
msg31386/pgp00000.pgp
Description: PGP signature

