Next: Locations of files
Up: Netlib Anonymous RCP
The versions of rcp and ls installed on
have been modified as follows:
- Both rcp and ls immediately do the following:
setuid (getuid ());
thus limiting their view of the world to everything under /netlib,
and turning off any special privileges.
- The modified rcp can deal with not having an /etc/services or
- The modified rcp has all calls to mkdir()
#ifdef-ed out and replaced with code that prints ``Permission denied''.
In general, the file receiving code is disabled,
but it will talk protocol
with the client rcp and return error messages. The file sending code
- rcp and ls are statically-linked binaries, since they have no
access to system shared libraries.