sys_geteuid() quesion

From: Rumen Bogdanovski
Date: Fri May 28 2010 - 08:07:28 EST


Hi all,
I have a simple question:
I need to make a kernel module for a specific character device.
But I need to know which uid is reading and writing because the
data written and data read should be user specific. So will
sys_geteuid() do the job for me. Or simply how can I a
module know who is calling its read or write?

Thank you in advance.

Rumen
--
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/