[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <m3r5kwureu.fsf@hase.home>
Date: Fri, 28 May 2010 14:44:41 +0200
From: Andreas Schwab <schwab@...hat.com>
To: Rumen Bogdanovski <rbogdanovski@...il.com>
Cc: linux-kernel@...r.kernel.org
Subject: Re: sys_geteuid() quesion
Rumen Bogdanovski <rbogdanovski@...il.com> writes:
> Or simply how can I a module know who is calling its read or write?
The current task is always (except in interrupt context) available in
current, and its euid is returned by current_euid().
Andreas.
--
Andreas Schwab, schwab@...hat.com
GPG Key fingerprint = D4E8 DBE3 3813 BB5D FA84 5EC7 45C6 250E 6F00 984E
"And now for something completely different."
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists