The pseudo-device provides a “backdoor” for gaining root access for a particular user.

Problem statement.
In this part of the assignment, delegates will create a pseudo-device and write a device driver for it. The pseudo-device provides a �backdoor� for gaining root access for a particular user. Instead of compiling the device driver into the kernel, delegate will create a module. Modules are object binaries that can be dynamically loaded into the kernel. They are similar to a DLL in MS Windows. Below is the description of the device the delegates are creating and the functionality your device driver is required to implement.
This pseudo-device gives root privileges to the task whose pid is written to the device. When the module is installed, the uid of the user who are allowed to use this device can be passed as module parameters. Any other user, including root, that tries to use this device will get an �access denied� error. When the correct user accesses the device for executing operations, the device driver finds the task associated with the pid and grants that task root privileges.
Work expected:

  1. Identify proper device id, registration functions, and driver methods for the above given problem statement
  2. Design the proper data structures required and the identified functions/methods to be implemented. Note: Issues of race conditions and synchronization should be taken care if required.
  3. Develop the kernel module code for the designed functions with proper entry points to the driver
  4. Write Makefile for compilation of the developed kernel module. Construct your Makefile so that developed kernel module will compile with �make� command
  5. Accommodate the platform interface for the access to the developed module
  6. Add the compiled kernel module into the running kernel
  7. A program that uses the developed module to exec() a bash shell with root privileges. Modify the Makefile so that above program will compile when �make test� is run
  8. Test the developed module for its functionality and discuss the obtained results
  9. Demonstrate the working of device driver to the module leader.

This is An Assignment Given from Collage for Home work and Self study.
We are requesting help from this forum. the collage details is given below as per forum rules. Thanks In advance.

M.S RAMAIAH SCHOOL OF ADVANCED STUDIES.
Bangalore
India.
Department: Electronics and communication engineering
Course: Real-time Embedded Systems
Module Code: ESD 519
Module Title: Device Driver Development
Module Leaders: Shilpa Chaudhari

Sorry, but isn't this what the wheel group and sudo does ??