Re: sys_geteuid() quesion

From: Andreas Schwab
Date: Fri May 28 2010 - 08:44:58 EST


Rumen Bogdanovski <rbogdanovski@xxxxxxxxx> 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@xxxxxxxxxx
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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/