jk_init.ini 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  1. [uidbasics]
  2. # this section probably needs adjustment on 64bit systems
  3. # or non-Linux systems
  4. comment = common files for all jails that need user/group information
  5. paths = /lib/libnsl.so.*, /lib64/libnsl.so.*, /lib/libnss*.so.2, /lib64/libnss*.so.2, /lib/i386-linux-gnu/libnsl.so.*, /lib/i386-linux-gnu/libnss*.so.2, /lib/x86_64-linux-gnu/libnsl.so.*, /lib/x86_64-linux-gnu/libnss*.so.2, /lib/arm-linux-gnueabihf/libnss*.so.2, /lib/arm-linux-gnueabihf/libnsl*.so.*, /etc/nsswitch.conf, /etc/ld.so.conf
  6. # Solaris needs
  7. # paths = /etc/default/nss, /lib/libnsl.so.1, /usr/lib/nss_*.so.1, /etc/nsswitch.conf
  8. [netbasics]
  9. comment = common files for all jails that need any internet connectivity
  10. paths = /lib/libnss_dns.so.2, /lib64/libnss_dns.so.2, /lib/libnss_mdns*.so.2, /etc/resolv.conf, /etc/host.conf, /etc/hosts, /etc/protocols, /etc/services, /etc/ssl/certs/, /usr/lib/ssl/certs
  11. # on Solaris devices /dev/udp and /dev/tcp might be needed too, not sure
  12. [logbasics]
  13. comment = timezone information and log sockets
  14. paths = /etc/localtime
  15. need_logsocket = 1
  16. # Solaris does not need logsocket
  17. # but needs
  18. # devices = /dev/log, /dev/conslog
  19. [jk_lsh]
  20. comment = Jailkit limited shell
  21. paths = /usr/sbin/jk_lsh, /etc/jailkit/jk_lsh.ini
  22. users = root
  23. groups = root
  24. includesections = uidbasics, logbasics
  25. [limitedshell]
  26. comment = alias for jk_lsh
  27. includesections = jk_lsh
  28. [cvs]
  29. comment = Concurrent Versions System
  30. paths = cvs
  31. devices = /dev/null
  32. [git]
  33. comment = Fast Version Control System
  34. paths = /usr/bin/git*, /usr/lib/git-core, /usr/bin/basename, /bin/uname, /usr/bin/pager
  35. includesections = editors, perl
  36. [scp]
  37. comment = ssh secure copy
  38. paths = scp
  39. includesections = netbasics, uidbasics
  40. devices = /dev/urandom, /dev/null
  41. [sftp]
  42. comment = ssh secure ftp
  43. paths = /usr/lib/sftp-server, /usr/libexec/openssh/sftp-server, /usr/lib/misc/sftp-server, /usr/libexec/sftp-server, /usr/lib/openssh/sftp-server
  44. includesections = netbasics, uidbasics
  45. devices = /dev/urandom, /dev/null
  46. # on solaris
  47. #paths = /usr/lib/ssh/sftp-server
  48. [ssh]
  49. comment = ssh secure shell
  50. paths = ssh
  51. includesections = netbasics, uidbasics
  52. devices = /dev/urandom, /dev/tty, /dev/null
  53. [rsync]
  54. paths = rsync
  55. includesections = netbasics, uidbasics
  56. [procmail]
  57. comment = procmail mail delivery
  58. paths = procmail, /bin/sh
  59. devices = /dev/null
  60. [basicshell]
  61. comment = bash based shell with several basic utilities
  62. paths = /bin/sh, bash, ls, cat, chmod, mkdir, cp, cpio, date, dd, echo, egrep, false, fgrep, grep, groups, gunzip, gzip, ln, ls, mkdir, mktemp, more, mv, pwd, rm, rmdir, sed, sh, sleep, sync, tar, touch, true, uncompress, unzip, zcat, zip, zstd, /etc/motd, /etc/issue, /etc/bash.bashrc, /etc/bashrc, /etc/profile, /usr/lib/locale/en_US.utf8
  63. users = root
  64. groups = root
  65. includesections = uidbasics
  66. [interactiveshell]
  67. comment = for ssh access to a full shell
  68. includesections = uidbasics, basicshell, terminfo, editors, extendedshell
  69. [midnightcommander]
  70. comment = Midnight Commander
  71. paths = mc, mcedit, mcview, /usr/share/mc
  72. includesections = basicshell, terminfo
  73. [extendedshell]
  74. comment = bash shell including things like awk, bzip, tail, less
  75. paths = awk, bzip2, bunzip2, ldd, less, clear, cut, du, find, head, less, md5sum, nice, sort, tac, tail, tr, sort, wc, watch, whoami
  76. includesections = basicshell, midnightcommander, editors
  77. [terminfo]
  78. comment = terminfo databases, required for example for ncurses or vim
  79. paths = /etc/terminfo, /usr/share/terminfo, /lib/terminfo
  80. [editors]
  81. comment = vim, joe and nano
  82. includesections = terminfo
  83. paths = joe, nano, vi, vim, /etc/vimrc, /etc/joe, /usr/share/vim
  84. [netutils]
  85. comment = several internet utilities like wget, ftp, rsync, scp, ssh
  86. paths = wget, lynx, ftp, host, rsync, smbclient
  87. includesections = netbasics, ssh, sftp, scp
  88. [apacheutils]
  89. comment = htpasswd utility
  90. paths = htpasswd
  91. [extshellplusnet]
  92. comment = alias for extendedshell + netutils + apacheutils
  93. includesections = extendedshell, netutils, apacheutils
  94. [openvpn]
  95. comment = jail for the openvpn daemon
  96. paths = /usr/sbin/openvpn
  97. users = root,nobody
  98. groups = root,nogroup
  99. #includesections = netbasics
  100. devices = /dev/urandom, /dev/random, /dev/net/tun
  101. includesections = netbasics, uidbasics
  102. need_logsocket = 1
  103. [apache]
  104. comment = the apache webserver, very basic setup, probably too limited for you
  105. paths = /usr/sbin/apache
  106. users = root, www-data
  107. groups = root, www-data
  108. includesections = netbasics, uidbasics
  109. [perl]
  110. comment = the perl interpreter and libraries
  111. paths = perl, /usr/lib/perl, /usr/lib/perl5, /usr/share/perl, /usr/share/perl5
  112. [xauth]
  113. comment = getting X authentication to work
  114. paths = /usr/bin/X11/xauth, /usr/X11R6/lib/X11/rgb.txt, /etc/ld.so.conf
  115. [xclients]
  116. comment = minimal files for X clients
  117. paths = /usr/X11R6/lib/X11/rgb.txt
  118. includesections = xauth
  119. [vncserver]
  120. comment = the VNC server program
  121. paths = Xvnc, Xrealvnc, /usr/X11R6/lib/X11/fonts/
  122. includesections = xclients
  123. [ping]
  124. comment = Ping program
  125. paths_w_setuid = /bin/ping
  126. #[xterm]
  127. #comment = xterm
  128. #paths = /usr/bin/X11/xterm, /usr/share/terminfo, /etc/terminfo
  129. #devices = /dev/pts/0, /dev/pts/1, /dev/pts/2, /dev/pts/3, /dev/pts/4, /dev/ptyb4, /dev/ptya4, /dev/tty, /dev/tty0, /dev/tty4
  130. # Hestia Jail Settings
  131. [node]
  132. comment = NodeJS
  133. paths = npm, npx, node, nodejs, /usr/lib/nodejs, /usr/share/nodejs, /usr/share/npm, /usr/lib/node_modules, /usr/local/lib/nodejs, /usr/local/lib/node_modules
  134. [env]
  135. comment = environment variables
  136. executables = /usr/bin/env
  137. # The default version Hestia installs is 8.2 use this as the common PHP version
  138. [php]
  139. comment = default php version and libraries
  140. paths = /usr/bin/php
  141. includesections = php_common, php8.2
  142. [php_common]
  143. comment = common php directories and libraries
  144. # Careful!
  145. # Make sure not to add the upper /etc/php/ or /etc/php/fpm directories.
  146. # theses are unneeded in the jails and adding them can potentially leak
  147. # custom server settings to the customers.
  148. paths = /usr/bin/php, /usr/lib/php/, /usr/share/php/, /usr/share/zoneinfo/
  149. includesections = env, logbasics, netbasics
  150. [php5_6]
  151. comment = php version 5.6
  152. paths = /usr/bin/php5.6, /usr/lib/php/5.6/, /usr/lib/php/20131226/, /usr/share/php/5.6/, /etc/php/5.6/cli/, /etc/php/5.6/mods-available/
  153. includesections = php_common
  154. [php7_0]
  155. comment = php version 7.0
  156. paths = /usr/bin/php7.0, /usr/lib/php/7.0/, /usr/lib/php/20151012/, /usr/share/php/7.0/, /etc/php/7.0/cli/, /etc/php/7.0/mods-available/
  157. includesections = php_common
  158. [php7_1]
  159. comment = php version 7.1
  160. paths = /usr/bin/php7.1, /usr/lib/php/7.1/, /usr/lib/php/20160303/, /usr/share/php/7.1/, /etc/php/7.1/cli/, /etc/php/7.1/mods-available/
  161. includesections = php_common
  162. [php7_2]
  163. comment = php version 7.2
  164. paths = /usr/bin/php7.2, /usr/lib/php/7.2/, /usr/lib/php/20170718/, /usr/share/php/7.2/, /etc/php/7.2/cli/, /etc/php/7.2/mods-available/
  165. includesections = php_common
  166. [php7_3]
  167. comment = php version 7.3
  168. paths = /usr/bin/php7.3, /usr/lib/php/7.3/, /usr/lib/php/20180731/, /usr/share/php/7.3/, /etc/php/7.3/cli/, /etc/php/7.3/mods-available/
  169. includesections = php_common
  170. [php7_4]
  171. comment = php version 7.4
  172. paths = /usr/bin/php7.4, /usr/lib/php/7.4/, /usr/lib/php/20190902/, /usr/share/php/7.4/, /etc/php/7.4/cli/, /etc/php/7.4/mods-available/
  173. includesections = php_common
  174. [php8_0]
  175. comment = php version 8.0
  176. paths = /usr/bin/php8.0, /usr/lib/php/8.0/, /usr/lib/php/20200930/, /usr/share/php/8.0/, /etc/php/8.0/cli/, /etc/php/8.0/mods-available/
  177. includesections = php_common
  178. [php8_1]
  179. comment = php version 8.1
  180. paths = /usr/bin/php8.1, /usr/lib/php/8.1/, /usr/lib/php/20210902/, /usr/share/php/8.1/, /etc/php/8.1/cli/, /etc/php/8.1/mods-available/
  181. includesections = php_common
  182. [php8_2]
  183. comment = php version 8.2
  184. paths = /usr/bin/php8.2, /usr/lib/php/8.2/, /usr/lib/php/20220829/, /usr/share/php/8.2/, /etc/php/8.2/cli/, /etc/php/8.2/mods-available/
  185. includesections = php_common