home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / utilities / utilsc / cmosguard / Docs / WhatItDoes < prev   
Encoding:
Text File  |  1996-08-08  |  3.3 KB  |  59 lines

  1. CMOS Guardian version 1.35 copyright David Sharp
  2.  
  3. What does it do?
  4. ================
  5.  
  6. CMOS Guardian has four main features;
  7.  
  8. 1) it prevents alteration of the CMOS RAM (the battery backed RAM that holds the computer configuration).
  9.  
  10. 2) alteration of the time and date
  11.  
  12. 3) deletion of files through software methods
  13.  
  14. 4) copying of files
  15.  
  16. What is CMOS RAM?
  17. =================
  18.  
  19. Inside your computer there is a special chip that is used to store all the settings about how your computer is set up when it is turned on. When the computer is turned off, these are still supplied with electricity and so the settings remain, this is a form of non-volatile memory. There is a total of 240 different CMOS RAM 'locations' numbered 0 to 239. Each of thse locations holds a number between 0 and 255 (1 byte).
  20.  
  21. The locations between 30 and 79 inclusive have been reserved for use by the user and applications, all the other locations hold some information about the system.
  22.  
  23. How does CMOS Guardian help CMOS RAM?
  24. =====================================
  25.  
  26. When CMOS Guardian is operational, if the user tries to alter the CMOS RAM, CMOS Guardian checks to see whether the location been altered is between 30 and 79, if it is then the alteration is allowed. If it isn't then CMOS Guardian issues a beep for the user, and prevents the alteration.
  27.  
  28. How is the time and date held?
  29. ==============================
  30.  
  31. Inside your computer, there are 3 different clocks;
  32.  
  33. 1) there is a monotonic timer that is simply a number between 0 and 4.228 x 10^9 this is incremented every centi-second, and is set back to 0 on a hard reset, this cannot be altered by the user.
  34.  
  35. 2) the system clock is also incremented every second and is reset to 0 by a hard reset, this however can be altered by the SWI "OS_Word",2.
  36.  
  37. 3) the real time clock stores the elapsed time since 00:00:00 January 1900 this can be set by the !Alarm application.
  38.  
  39. as you can see, only clocks 2 & 3 can be altered.
  40.  
  41. How does CMOS Guardian help the time and date?
  42. ==============================================
  43.  
  44. When CMOS Guardian is operational, if the user tries to alter either clock 2 or 3, then CMOS Guardian issues a beep to inform the user and prevents the alteration of the clock.
  45.  
  46. How is deletion prevented?
  47. ==========================
  48.  
  49. Whenever the user tries to delete an object, the operating system tells the rest of the applications that this has happened by means of 'software vectors', these are simple signals that tell applications what is happening. Each application in question is then able to 'claim' the vector thus preventing its action, or let it pass, in which case the action takes place.
  50.  
  51. How does CMOS Guardian prevent deletion?
  52. ========================================
  53.  
  54. This works in exactly the same way, in that it beeps when a deletion is attempted and prevents the deletion from taking place.
  55.  
  56. Copying?
  57. ========
  58.  
  59. This works in exactly the same way as deletion with software vectors being used to inform CMOS Guardian of the copying attempt. The important thing to note about this is that it doesn't work (at the moment) under RISC OS 3's interactive copying, so if you have RISC OS 3 and wish to prevent copying, yo will have to (while CMOS Guardian is disabled) alter the copying to non-interactive (using the !Configure application) and then turn CMOS Guardian on, with the CMOS RAM protection enabled (it should have the same effect).