views:

39

answers:

2

Hey guys,

I've implemented a simple Hello World syscall with limited functionality - that simply transitions from user mode to kernel mode, prints a message that is logged with the kernel messages, and transitions back to user mode.

The next step for extra credit is to add a useful (new) syscall that is not normally available to a non-root user. The syscall can be a simple as we like but im struggling to come up with any ideas...can someone point me in the right direction or towards something that would be easily implemented?? (a hint we were given was to; use your new syscall for debugging purposes!!)

Cheers guys, appreciate any input

+1  A: 

There's a fair amount of information in the kernel structures about processes: page locations, memory statistics, I/O statistics and file handle information, CPU scheduling information, etc. While most of it might be available to the user through things like the proc filesystem, getting that information programmatically probably requires parsing the proc output, etc. Providing a way to get this type of information about a process (maybe paying less attention to security issues that might arise for the time being) could be useful.

Wyatt Anderson
A: 

Perhaps a new call to specifically update the system date and time from a trusted NTP server? I believe that a normal user is unable to do this on their own.

Changing the network settings in some way? Release/renew DHCP lease, or implement simple network locations that are predfined batches of settings stored in a root-writable config file.

Coxy