lkml.org 
[lkml]   [2004]   [May]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
Subjectwierd current->uid
hi
i am doing a project on
a very simple system call interception module.
the module is supposed to return the uid of the
user who made the call to the syscall. i m trying to
do it thus:

//in the kernel module
asmlinkage long my_syscall(arg1,arg2)
{
sprintf(buffer, "%s%s%i", arg1,arg2,current->uid);
//this buffer is later read.
return original_syscall(arg1,arg2);
}

the problem is that the uid returned is always -1.
i found you had a similar problem very long back
and had posted a msg on a mailing list.

could you suggest a way out please.
thanx
-kt

--
http://www.fastmail.fm - Same, same, but different…
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:02    [W:0.134 / U:0.132 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site