Programming Wiki: US

Programming Wiki : us

WikiHomePage :: Categories :: PageIndex :: RecentChanges :: RecentlyCommented :: Login/Register

US


About


us is a Linux program, written in C, that simulates the program su. All filesystem modifications are simulated and do not effect the real system.

Techniques


  1. Use a modified version of chroot that can run in user space.
    • Have us mimic the users directory structure in this chroot.
    • Have it use modified versions of ls and other tools that report information such as file sizes (since all files in the chroot will just be touched and empty).
    • us will do frivolous read and writes on in tmp space to simulate heavy disk usage for specific commands (rm, cp)
  2. Have everything happen within us.
    • us constructs the command prompt and environment. (probably can have bash do this and mimic it in us)
    • us recieves all input commands. It handles only the commands that have be specificially addressed and makes system calls for some commands while doing its own thing for others.
    • The fake directory structure is held in a data structure that the user is seeing and manulipating instead of the real thing.
  3. Have everything happen as normal, but us catches certain commands and modifies the behaviour.
    • Is this possible? Am I forgetting stuff?

Road Map


Version 0.01

Version 0.05

Version 0.10

Version 0.15

Possible Features



Psychological Trick


There are 2 comments on this page. [Display comments]

Powered by Wikka Wakka Wiki 1.1.6.0
Page was generated in 0.0277 seconds