Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

kernel code question

Name: Anonymous 2009-10-10 5:33

Yes, this is homework. No, I don't want /prog/ to do it for me, I'm simply not quite sure how to do something and would like a push in the right direction or a reference of some sort.

In brief, I am implementing a new syscall in the Linux kernel, and I need to get the user making the system call. Poking around told me that it is better to get the UID with getuid() because the kernel doesn't know about usernames, but how do I then get the username?

I hate this course, we learn general theory about operating system design (which is great) but then suddenly we are told to do specific modifications in the Linux kernel without having been taught the basics of how things work in the Linux kernel. i have no aversion to learning on my own, but that is a LOT to learn in a couple weeks' time with a full schedule.

Anyway, any gentle nudge in the right direction would be greatly appreciated.

Name: Anonymous 2009-10-10 5:39

/etc/passwd

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List