You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

73 lines
2.2 KiB

  1. # Sandbox main configuration file
  2. # Note that configuration parser is fairly basic, so try to keep things simple.
  3. #
  4. # BASIC Section
  5. #
  6. # Basic sandbox configuration. Sandbox will use values here if not already set
  7. # in the environment. Assignment works like bash variable assignment (ie, last
  8. # value assigned to the variable is used).
  9. # SANDBOX_VERBOSE
  10. #
  11. # Determine if sandbox print access violations, or if debugging is enabled,
  12. # it will also print allowed operations. Default is "yes"
  13. #SANDBOX_VERBOSE="yes"
  14. # SANDBOX_DEBUG
  15. #
  16. # In addition to the normal log, a debug log is also written containing all
  17. # operations caught by sandbox. Default is "no"
  18. #SANDBOX_DEBUG="no"
  19. # NOCOLOR
  20. #
  21. # Determine the use of color in the output. Default is "false" (ie, use color)
  22. #NOCOLOR="false"
  23. #
  24. # ACCESS Section
  25. #
  26. # The next section contain rules for access. It works a bit different from the
  27. # previous section in that values assigned to variables stack. Also since these
  28. # do NOT get overridded by values already set in the environment, but rather
  29. # those get added.
  30. #
  31. # If you want values that only get set if one of the variables are not already
  32. # present in the environment, place a file in /etc/sandbox.d/ (replace /etc
  33. # with what sysconfdir was configured to).
  34. #
  35. # Another difference from above, is that these support simple variable name
  36. # substitution. Variable names must be in the form of '${variable}' (without
  37. # the ''). It is very basic, so no command substitution, etc is supported.
  38. #
  39. # The values consists of the respective paths seperated by a colon (:)
  40. #
  41. # SANDBOX_DENY - all access to respective paths are denied
  42. #
  43. # SANDBOX_READ - can read respective paths
  44. #
  45. # SANDBOX_WRITE - can write to respective paths
  46. #
  47. # SANDBOX_PREDICT - respective paths are not writable, but no access violation
  48. # will be issued in the case of a write
  49. #
  50. # Needed for stdout, stdin and stderr
  51. SANDBOX_WRITE="/dev/fd:/proc/self/fd"
  52. # Common device nodes
  53. SANDBOX_WRITE="/dev/zero:/dev/null:/dev/full"
  54. # Console device nodes
  55. SANDBOX_WRITE="/dev/console:/dev/tty:/dev/vc/:/dev/pty:/dev/tts"
  56. # Device filesystems
  57. SANDBOX_WRITE="/dev/pts/:/dev/shm"
  58. # Tempory storage
  59. SANDBOX_WRITE="/tmp/:/var/tmp/"
  60. # Needed for shells
  61. SANDBOX_WRITE="${HOME}/.bash_history"