home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / c / cops_104.zip / cops_104 / init_kuang < prev    next >
Text File  |  1992-03-10  |  950b  |  48 lines

  1. # /* Copyright 1985 Robert W. Baldwin */
  2. # /* Copyright 1986 Robert W. Baldwin */
  3. ###############################################
  4. # Kuang: Rule based computer security checker.
  5. ###############################################
  6.  
  7. CAT=/bin/cat
  8. ECHO=/bin/echo
  9.  
  10. #
  11. # Initialization.
  12. #
  13. ./clearfiles
  14. #
  15. # First setup what we have access to.
  16. # The uids.k file must include the user 'OTHER' meaning the world access bits.
  17. # Add any other UIDs accessible to the attacker (e.g., ftp, daemon).
  18. #
  19. # Directly accessible user IDs.
  20. $CAT >uids.k <<END
  21. OTHER
  22. END
  23.  
  24. #  Commented out example of how to set up above:
  25. #
  26. #$CAT >uids.k <<END
  27. #guest
  28. #df
  29. #foo
  30. #END
  31. #
  32. # Directly accessible group IDs.
  33. # This usually includes a group like 'users', which most users are in.
  34. #
  35. $CAT >gids.k <<END
  36. END
  37.  
  38. #  Commented out example of how to set up above:
  39. #
  40. #$CAT >gids.k <<END
  41. #guest
  42. #END
  43. #
  44. # Setup the primary goal(s).
  45. #
  46. $ECHO Setting up goal                        #>/dev/tty
  47. ./addto uids root DO ANYTHING
  48.