|
| 1 | +# jk_init.ini: jailkit initialization config |
| 2 | + |
| 3 | +# Includes paths to handle Enterprise Linux systems like RHEL and its derivatives AlmaLinux, Rocky Linux et cetera |
| 4 | +# if other paths are needed please create an issue with the details or even a merge request at: |
| 5 | +# https://git.ispconfig.org/ispconfig/ispconfig3 |
| 6 | + |
| 7 | +[uidbasics] |
| 8 | +comment = common files for all jails that need user/group information |
| 9 | +paths = /lib*/libnsl.so.*, /lib*/libnss*.so.*, /lib/*/libnsl.so.*, /lib/*/libnss*.so.*, /etc/nsswitch.conf, /etc/ld.so.conf |
| 10 | + |
| 11 | +[netbasics] |
| 12 | +comment = common files for all jails that need any internet connectivity |
| 13 | +paths = /lib*/libnss_dns.so.*, /lib*/libnss_mdns*.so.*, /lib/*/libnss_dns.so.*, /lib/*/libnss_mdns*.so.*, /etc/resolv.conf, /etc/host.conf, /etc/hosts, /etc/protocols, /etc/services, /etc/ssl/certs/, /usr/lib/ssl/certs |
| 14 | + |
| 15 | +[logbasics] |
| 16 | +comment = timezone information and log sockets |
| 17 | +paths = /etc/localtime |
| 18 | +need_logsocket = 1 |
| 19 | + |
| 20 | +[enterpriselinuxbasics] |
| 21 | +comment = Various Enterprise Linux specific directories and programs |
| 22 | +paths = /usr/lib/locale, /usr/share/modulefiles, /usr/share/Modules, /usr/share/tcl*, /usr/bin/lesspipe.sh, /usr/libexec/grepconf.sh, /usr/bin/tclsh, /usr/bin/tty |
| 23 | +includesections = enterpriselinux_etc_env |
| 24 | + |
| 25 | +[enterpriselinux_etc_env] |
| 26 | +comment = Enterprise Linux /etc specific environment related files |
| 27 | +paths = /etc/profile, /etc/modulefiles, /etc/alternatives/modulecmd, /etc/DIR_COLORS*, /etc/sysconfig/bash-prompt-default, /etc/profile.d/bash_completion.sh, /etc/profile.d/color*, /etc/profile.d/lang*, /etc/profile.d/less*, /etc/profile.d/sh.local, /etc/profile.d/vim*, /etc/profile.d/composer*, /etc/profile.d/conda*, /etc/profile.d/guestfish.sh, /etc/locale.conf, /etc/inputrc |
| 28 | +emptydirs = /etc/ssl, /etc/pki |
| 29 | + |
| 30 | +[jk_lsh] |
| 31 | +comment = Jailkit limited shell |
| 32 | +paths = /usr/sbin/jk_lsh, /etc/jailkit/jk_lsh.ini |
| 33 | +users = root |
| 34 | +groups = root |
| 35 | +includesections = uidbasics, logbasics |
| 36 | + |
| 37 | +[limitedshell] |
| 38 | +comment = alias for jk_lsh |
| 39 | +includesections = jk_lsh |
| 40 | + |
| 41 | +[cvs] |
| 42 | +comment = Concurrent Versions System |
| 43 | +paths = cvs |
| 44 | +devices = /dev/null |
| 45 | + |
| 46 | +[git] |
| 47 | +comment = Fast Version Control System |
| 48 | +paths = /usr/bin/git*, /usr/lib/git-core, /usr/share/git-core, pager |
| 49 | +includesections = editors, perl, netbasics, basicshell, coreutils |
| 50 | + |
| 51 | +[scp] |
| 52 | +comment = ssh secure copy |
| 53 | +paths = scp |
| 54 | +includesections = netbasics, uidbasics |
| 55 | +devices = /dev/urandom, /dev/null |
| 56 | + |
| 57 | +[sftp] |
| 58 | +comment = ssh secure ftp |
| 59 | +paths = /usr/lib/sftp-server, /usr/libexec/openssh/sftp-server, /usr/lib/misc/sftp-server, /usr/libexec/sftp-server, /usr/lib/openssh/sftp-server |
| 60 | +includesections = netbasics, uidbasics |
| 61 | +devices = /dev/urandom, /dev/null |
| 62 | + |
| 63 | +[ssh] |
| 64 | +comment = ssh secure shell |
| 65 | +paths = ssh |
| 66 | +includesections = netbasics, uidbasics |
| 67 | +devices = /dev/urandom, /dev/tty, /dev/null |
| 68 | + |
| 69 | +[rsync] |
| 70 | +paths = rsync |
| 71 | +includesections = netbasics, uidbasics |
| 72 | + |
| 73 | +[procmail] |
| 74 | +comment = procmail mail delivery |
| 75 | +paths = procmail, /bin/sh |
| 76 | +devices = /dev/null |
| 77 | + |
| 78 | +[basicshell] |
| 79 | +comment = bash based shell with several basic utilities |
| 80 | +paths = /bin/sh, bash, ls, cat, chmod, mkdir, cp, cpio, date, dd, echo, egrep, false, fgrep, grep, gunzip, gzip, ln, ls, mkdir, mktemp, more, mv, pwd, rm, rmdir, sed, sh, sleep, sync, tar, touch, true, uncompress, zcat, /etc/motd, /etc/issue, /etc/bash.bashrc, /etc/bashrc, /etc/profile, /usr/lib/locale/en_US.utf8, uname, expr, xargs |
| 81 | +users = root |
| 82 | +groups = root |
| 83 | +includesections = uidbasics, enterpriselinuxbasics |
| 84 | + |
| 85 | +[interactiveshell] |
| 86 | +comment = for ssh access to a full shell |
| 87 | +includesections = uidbasics, basicshell, terminfo, editors, extendedshell |
| 88 | + |
| 89 | +[midnightcommander] |
| 90 | +comment = Midnight Commander |
| 91 | +paths = mc, mcedit, mcview, /usr/share/mc |
| 92 | +includesections = basicshell, terminfo |
| 93 | + |
| 94 | +[extendedshell] |
| 95 | +comment = bash shell including things like awk, bzip, tail, less |
| 96 | +paths = awk, bzip2, bunzip2, ldd, less, clear, cut, du, find, head, less, md5sum, nice, sort, tac, tail, tr, sort, wc, watch, whoami |
| 97 | +includesections = basicshell, midnightcommander, editors |
| 98 | + |
| 99 | +[terminfo] |
| 100 | +comment = terminfo databases, required for example for ncurses or vim |
| 101 | +paths = /etc/terminfo, /usr/share/terminfo, /lib/terminfo |
| 102 | + |
| 103 | +[editors] |
| 104 | +comment = vim, joe and nano |
| 105 | +includesections = terminfo |
| 106 | +paths = joe, nano, vi, vim, /etc/vimrc, /etc/joe, /usr/share/vim |
| 107 | + |
| 108 | +[netutils] |
| 109 | +comment = several internet utilities like curl, wget, ftp, rsync, scp, ssh |
| 110 | +paths = curl, wget, lynx, ftp, host, rsync, smbclient |
| 111 | +includesections = netbasics, ssh, sftp, scp |
| 112 | + |
| 113 | +[apacheutils] |
| 114 | +comment = htpasswd utility |
| 115 | +paths = htpasswd |
| 116 | + |
| 117 | +[extshellplusnet] |
| 118 | +comment = alias for extendedshell + netutils + apacheutils |
| 119 | +includesections = extendedshell, netutils, apacheutils |
| 120 | + |
| 121 | +[openvpn] |
| 122 | +comment = jail for the openvpn daemon |
| 123 | +paths = /usr/sbin/openvpn |
| 124 | +users = root,nobody |
| 125 | +groups = root,nogroup |
| 126 | +devices = /dev/urandom, /dev/random, /dev/net/tun |
| 127 | +includesections = netbasics, uidbasics |
| 128 | +need_logsocket = 1 |
| 129 | + |
| 130 | +[apache] |
| 131 | +comment = the apache webserver, very basic setup, probably too limited for you |
| 132 | +paths = /usr/sbin/apache |
| 133 | +users = root, www-data |
| 134 | +groups = root, www-data |
| 135 | +includesections = netbasics, uidbasics |
| 136 | + |
| 137 | +[perl] |
| 138 | +comment = the perl interpreter and libraries |
| 139 | +paths = perl, /usr/lib64/perl, /usr/lib64/perl5, /usr/share/perl, /usr/share/perl5 |
| 140 | + |
| 141 | +[xauth] |
| 142 | +comment = getting X authentication to work |
| 143 | +paths = /usr/bin/X11/xauth, /usr/X11R6/lib/X11/rgb.txt, /etc/ld.so.conf |
| 144 | + |
| 145 | +[xclients] |
| 146 | +comment = minimal files for X clients |
| 147 | +paths = /usr/X11R6/lib/X11/rgb.txt |
| 148 | +includesections = xauth |
| 149 | + |
| 150 | +[vncserver] |
| 151 | +comment = the VNC server program |
| 152 | +paths = Xvnc, Xrealvnc, /usr/X11R6/lib/X11/fonts/ |
| 153 | +includesections = xclients |
| 154 | + |
| 155 | +[ping] |
| 156 | +comment = Ping program |
| 157 | +paths_w_setuid = /bin/ping |
| 158 | + |
| 159 | +#[xterm] |
| 160 | +#comment = xterm |
| 161 | +#paths = /usr/bin/X11/xterm, /usr/share/terminfo, /etc/terminfo |
| 162 | +#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 |
| 163 | + |
| 164 | +[coreutils] |
| 165 | +comment = Progs from coreutils |
| 166 | +paths = arch, b2sum, base32, base64, basename, cat, chcon, chgrp, chmod, chown, cksum, comm, cp, csplit, cut, date, dir, dircolors, dirname, du, echo, env, expand, expr, factor, false, fmt, fold, groups, head, hostid, id, install, join, link, ln, logname, ls, md5sum, mkdir, mkfifo, mknod, mktemp, mv, nice, nl, nohup, nproc, numfmt, od, paste, pathchk, pinky, pr, printenv, printf, ptx, pwd, readlink, realpath, rm, rmdir, runcon, seq, sha1sum, sha224sum, sha256sum, sha384sum, sha512sum, shred, shuf, sleep, sort, split, stat, stdbuf, stty, sum, tac, tail, tee, test, timeout, touch, tr, true, truncate, tsort, uname, unexpand, uniq, unlink, users, vdir, wc, who, whoami, yes |
| 167 | + |
| 168 | +[webutils] |
| 169 | +comment = Collection of commonly used utils for webapps |
| 170 | +paths = /usr/bin/gm, /usr/bin/convert, /usr/bin/identify, /usr/bin/composite, /usr/bin/combine, /usr/bin/cwebp, /usr/bin/pdf* |
| 171 | + |
| 172 | +[mysqlutils] |
| 173 | +comment = MySQL client utils |
| 174 | +paths = mysql, mysqldump, mysqlshow |
| 175 | + |
| 176 | +[composer] |
| 177 | +comment = composer |
| 178 | +paths = composer, /usr/local/bin/composer, /usr/share/doc/composer |
| 179 | +includesections = php, uidbasics, netbasics |
| 180 | + |
| 181 | +[node] |
| 182 | +comment = NodeJS |
| 183 | +paths = npm, npx, node, nodejs, semver, /usr/lib/nodejs, /usr/share/nodejs, /usr/share/npm, /usr/share/node-mime, /usr/lib/node_modules, /usr/local/lib/nodejs, /usr/local/lib/node_modules, /etc/npmrc, /etc/npmignore, elmi-to-json, /usr/local/bin/elmi-to-json |
| 184 | + |
| 185 | +[env] |
| 186 | +comment = /usr/bin/env for environment variables |
| 187 | +paths = env |
| 188 | + |
| 189 | +[php] |
| 190 | +comment = default php version and libraries |
| 191 | +paths = /usr/bin/php |
| 192 | +includesections = php_common |
| 193 | + |
| 194 | +[php_common] |
| 195 | +comment = Common PHP directories and libraries |
| 196 | +# notice: potential information leak |
| 197 | +# do not add all of /etc/php/ or any of the fpm directories |
| 198 | +# or the php config (which includes custom php snippets) from *all* |
| 199 | +# sites which use fpm will be copied to *every* jailkit |
| 200 | +paths = /usr/bin/php, /usr/bin/phar, /usr/lib64/php/, /usr/share/php/, /usr/share/zoneinfo/ |
| 201 | +includesections = env, logbasics, netbasics, mysqlutils, webutils, imagemagick |
| 202 | + |
| 203 | +[php5_4] |
| 204 | +comment = PHP 5.4 |
| 205 | +paths = /opt/remi/php54/root/bin/php, /usr/bin/php54, /opt/remi/php54/root/bin/phar, /opt/remi/php54/root/usr/lib64/, /opt/remi/php54/root/usr/share/ |
| 206 | +includesections = php_common |
| 207 | + |
| 208 | +[php5_5] |
| 209 | +comment = PHP 5.5 |
| 210 | +paths = /opt/remi/php55/root/bin/php, /usr/bin/php55, /opt/remi/php55/root/bin/phar, /opt/remi/php55/root/usr/lib64/, /opt/remi/php55/root/usr/share/ |
| 211 | +includesections = php_common |
| 212 | + |
| 213 | +[php5_6] |
| 214 | +comment = PHP 5.6 |
| 215 | +paths = /opt/remi/php56/root/bin/php, /usr/bin/php56, /opt/remi/php56/root/bin/phar, /opt/remi/php56/root/usr/lib64/, /opt/remi/php56/root/usr/share/ |
| 216 | +includesections = php_common |
| 217 | + |
| 218 | +[php7_0] |
| 219 | +comment = PHP 7.0 |
| 220 | +paths = /opt/remi/php70/root/bin/php, /usr/bin/php70, /opt/remi/php70/root/bin/phar, /opt/remi/php70/root/usr/lib64/, /opt/remi/php70/root/usr/share/ |
| 221 | +includesections = php_common |
| 222 | + |
| 223 | +[php7_1] |
| 224 | +comment = PHP 7.1 |
| 225 | +paths = /opt/remi/php71/root/bin/php, /usr/bin/php71, /opt/remi/php71/root/bin/phar, /opt/remi/php71/root/usr/lib64/, /opt/remi/php71/root/usr/share/ |
| 226 | +includesections = php_common |
| 227 | + |
| 228 | +[php7_2] |
| 229 | +comment = PHP 7.2 |
| 230 | +paths = /opt/remi/php72/root/bin/php, /usr/bin/php72, /opt/remi/php72/root/bin/phar, /opt/remi/php72/root/usr/lib64/, /opt/remi/php72/root/usr/share/ |
| 231 | +includesections = php_common |
| 232 | + |
| 233 | +[php7_3] |
| 234 | +comment = PHP 7.3 |
| 235 | +paths = /opt/remi/php73/root/bin/php, /usr/bin/php73, /opt/remi/php73/root/bin/phar, /opt/remi/php73/root/usr/lib64/, /opt/remi/php73/root/usr/share/ |
| 236 | +includesections = php_common |
| 237 | + |
| 238 | +[php7_4] |
| 239 | +comment = PHP 7.4 |
| 240 | +paths = /opt/remi/php74/root/bin/php, /usr/bin/php74, /opt/remi/php74/root/bin/phar, /opt/remi/php74/root/usr/lib64/, /opt/remi/php74/root/usr/share/ |
| 241 | +includesections = php_common |
| 242 | + |
| 243 | +[php8_0] |
| 244 | +comment = PHP 8.0 |
| 245 | +paths = /opt/remi/php80/root/bin/php, /usr/bin/php80, /opt/remi/php80/root/bin/phar, /opt/remi/php80/root/usr/lib64/, /opt/remi/php80/root/usr/share/ |
| 246 | +includesections = php_common |
| 247 | + |
| 248 | +[php8_1] |
| 249 | +comment = PHP 8.1 |
| 250 | +paths = /opt/remi/php81/root/bin/php, /usr/bin/php81, /opt/remi/php81/root/bin/phar, /opt/remi/php81/root/usr/lib64/, /opt/remi/php81/root/usr/share/ |
| 251 | +includesections = php_common |
| 252 | + |
| 253 | +[php8_2] |
| 254 | +comment = PHP 8.2 |
| 255 | +paths = /opt/remi/php82/root/bin/php, /usr/bin/php82, /opt/remi/php82/root/bin/phar, /opt/remi/php82/root/usr/lib64/, /opt/remi/php82/root/usr/share/ |
| 256 | +includesections = php_common |
| 257 | + |
| 258 | +[php8_3] |
| 259 | +comment = PHP 8.3 |
| 260 | +paths = /opt/remi/php83/root/bin/php, /usr/bin/php83, /opt/remi/php83/root/bin/phar, /opt/remi/php83/root/usr/lib64/, /opt/remi/php83/root/usr/share/ |
| 261 | +includesections = php_common |
| 262 | + |
| 263 | +[php8_4] |
| 264 | +comment = PHP 8.4 |
| 265 | +paths = /opt/remi/php84/root/bin/php, /usr/bin/php84, /opt/remi/php84/root/bin/phar, /opt/remi/php84/root/usr/lib64/, /opt/remi/php84/root/usr/share/ |
| 266 | +includesections = php_common |
| 267 | + |
| 268 | +[imagemagick] |
| 269 | +comment = ImageMagick needed for php-imagemagick extension |
| 270 | +paths = /usr/share/ImageMagick-*, /etc/ImageMagick-*, /usr/lib64/ImageMagick-* |
| 271 | + |
| 272 | + |
0 commit comments