Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
I
ISPConfig 3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Manoa Ratefiarison
ISPConfig 3
Commits
e91fa78e
Commit
e91fa78e
authored
4 years ago
by
Jesse Norell
Browse files
Options
Downloads
Patches
Plain Diff
update jk_init.ini based on upstream version 2.21, add coreutils and php sections
parent
bbe020e4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
install/tpl/jk_init.ini.master
+109
-47
109 additions, 47 deletions
install/tpl/jk_init.ini.master
with
109 additions
and
47 deletions
install/tpl/jk_init.ini.master
+
109
−
47
View file @
e91fa78e
# jk_init.ini: jailkit initialization config
# Includes paths to handle Debian 10/9,
# if other paths are needed please create an issue with the details:
# https://git.ispconfig.org/ispconfig/ispconfig3/-/issues
[uidbasics]
[uidbasics]
# this section probably needs adjustment on 64bit systems
# this section probably needs adjustment non-Linux systems
# or non-Linux systems
comment = common files for all jails that need user/group information
comment = common files for all jails that need user/group information
libraries = /lib/libnsl.so.1, /lib64/libnsl.so.1, /lib/libnss*.so.2, /lib64/libnss*.so.2, /lib/x86_64-linux-gnu/libnss*.so.2
paths = /lib/libnsl.so.1, /lib64/libnsl.so.1, /lib/libnss*.so.2, /lib64/libnss*.so.2, /lib/i386-linux-gnu/libnsl.so.1, /lib/i386-linux-gnu/libnss*.so.2, /lib/x86_64-linux-gnu/libnsl.so.1, /lib/x86_64-linux-gnu/libnss*.so.2, /lib/arm-linux-gnueabihf/libnss*.so.2, /lib/arm-linux-gnueabihf/libnsl*.so.1, /etc/nsswitch.conf, /etc/ld.so.conf
regularfiles = /etc/nsswitch.conf, /etc/ld.so.conf
# Solaris allegedly needs
# paths = /etc/default/nss, /lib/libnsl.so.1, /usr/lib/nss_*.so.1, /etc/nsswitch.conf
[netbasics]
[netbasics]
comment = common files for all jails that need any internet connectivity
comment = common files for all jails that need any internet connectivity
librarie
s = /lib/libnss_dns.so.2, /lib64/libnss_dns.so.2, /lib/x86_64-linux-gnu/libnss_dns.so.2
path
s = /lib/libnss_dns.so.2, /lib64/libnss_dns.so.2,
/lib/libnss_mdns*.so.2,
/lib/x86_64-linux-gnu/libnss_dns.so.2
, /etc/resolv.conf, /etc/host.conf, /etc/hosts, /etc/protocols, /etc/services, /etc/ssl/certs/, /usr/lib/ssl/certs
regularfiles = /etc/resolv.conf, /etc/host.conf, /etc/hosts, /etc/protocols
# on Solaris devices /dev/udp and /dev/tcp might be needed too, not sure
[logbasics]
[logbasics]
comment = timezone information
comment = timezone information
and log sockets
regularfile
s = /etc/localtime
path
s = /etc/localtime
need_logsocket = 1
need_logsocket = 1
# Solaris allegedly does not need logsocket, but needs
# devices = /dev/log, /dev/conslog
[jk_lsh]
[jk_lsh]
comment = Jailkit limited shell
comment = Jailkit limited shell
executables = /usr/sbin/jk_lsh
paths = /usr/sbin/jk_lsh, /etc/jailkit/jk_lsh.ini
regularfiles = /etc/jailkit/jk_lsh.ini
users = root
users = root
groups = root
groups = root
need_logsocket = 1
includesections = uidbasics, logbasics
includesections = uidbasics
[limitedshell]
[limitedshell]
comment = alias for jk_lsh
comment = alias for jk_lsh
...
@@ -30,78 +36,77 @@ includesections = jk_lsh
...
@@ -30,78 +36,77 @@ includesections = jk_lsh
[cvs]
[cvs]
comment = Concurrent Versions System
comment = Concurrent Versions System
executables = /usr/bin/
cvs
paths =
cvs
devices = /dev/null
devices = /dev/null
[git]
[git]
comment = Fast Version Control System
comment = Fast Version Control System
executables = /usr/bin/git*
paths = /usr/bin/git*, /usr/lib/git-core, /usr/share/git-core, /usr/bin/pager
directories = /usr/share/git-core
includesections = editors, perl, netbasics, basicshell, coreutils
includesections = editors
[scp]
[scp]
comment = ssh secure copy
comment = ssh secure copy
executables = /usr/bin/
scp
paths =
scp
includesections = netbasics, uidbasics
includesections = netbasics, uidbasics
devices = /dev/urandom
devices = /dev/urandom
[sftp]
[sftp]
comment = ssh secure ftp
comment = ssh secure ftp
executable
s = /usr/lib/sftp-server, /usr/libexec/openssh/sftp-server, /usr/lib/misc/sftp-server, /usr/libexec/sftp-server
path
s = /usr/lib/sftp-server, /usr/libexec/openssh/sftp-server, /usr/lib/misc/sftp-server, /usr/libexec/sftp-server
, /usr/lib/openssh/sftp-server
includesections = netbasics, uidbasics
includesections = netbasics, uidbasics
devices = /dev/urandom, /dev/null
devices = /dev/urandom, /dev/null
# on solaris
#paths = /usr/lib/ssh/sftp-server
[ssh]
[ssh]
comment = ssh secure shell
comment = ssh secure shell
executables = /usr/bin/
ssh
paths =
ssh
includesections = netbasics, uidbasics
includesections = netbasics, uidbasics
devices = /dev/urandom, /dev/tty
devices = /dev/urandom, /dev/tty
, /dev/null
[rsync]
[rsync]
executables = /usr/bin/
rsync
paths =
rsync
includesections = netbasics, uidbasics
includesections = netbasics, uidbasics
[procmail]
[procmail]
comment = procmail mail delivery
comment = procmail mail delivery
executables = /usr/bin/
procmail, /bin/sh
paths =
procmail, /bin/sh
devices = /dev/null
devices = /dev/null
[basicshell]
[basicshell]
comment = bash based shell with several basic utilities
comment = bash based shell with several basic utilities
executables = /bin/sh, /bin/bash, /bin/ls, /bin/cat, /bin/chmod, /bin/mkdir, /bin/cp, /bin/cpio, /bin/date, /bin/dd, /bin/echo, /bin/egrep, /bin/false, /bin/fgrep, /bin/grep, /bin/gunzip, /bin/gzip, /bin/ln, /bin/ls, /bin/mkdir, /bin/mktemp, /bin/more, /bin/mv, /bin/pwd, /bin/rm, /bin/rmdir, /bin/sed, /bin/sh, /bin/sleep, /bin/sync, /bin/tar, /bin/touch, /bin/true, /bin/uncompress, /bin/zcat
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
regularfiles = /etc/motd, /etc/issue, /etc/bash.bashrc, /etc/bashrc, /etc/profile
directories = /usr/lib/locale/en_US.utf8
users = root
users = root
groups = root
groups = root
includesections = uidbasics
includesections = uidbasics
[midnightcommander]
[midnightcommander]
comment = Midnight Commander
comment = Midnight Commander
executables = /usr/bin/mc, /usr/bin/mcedit, /usr/bin/mcview
paths = mc, mcedit, mcview, /usr/share/mc
directories = /etc/terminfo, /usr/share/terminfo, /usr/share/mc
includesections = basicshell, terminfo
includesections = basicshell
[extendedshell]
[extendedshell]
comment = bash shell including things like awk, bzip, tail, less
comment = bash shell including things like awk, bzip, tail, less
executables = /usr/bin/awk, /usr/bin/bzip2, /usr/bin/bunzip2, /usr/bin/ldd, /usr/bin/less, /usr/bin/clear, /usr/bin/cut, /usr/bin/du, /usr/bin/find, /usr/bin/head, /usr/bin/less, /usr/bin/md5sum, /usr/bin/nice, /usr/bin/sort, /usr/bin/tac, /usr/bin/tail, /usr/bin/tr, /usr/bin/sort, /usr/bin/wc, /usr/bin/watch, /usr/bin/
whoami
paths = awk, bzip2, bunzip2, ldd, less, clear, cut, du, find, head, less, md5sum, nice, sort, tac, tail, tr, sort, wc, watch,
whoami
includesections = basicshell, midnightcommander, editors
includesections = basicshell, midnightcommander, editors
[terminfo]
comment = terminfo databases, required for example for ncurses or vim
paths = /etc/terminfo, /usr/share/terminfo, /lib/terminfo
[editors]
[editors]
comment = vim, joe and nano
comment = vim, joe and nano
executables = /usr/bin/joe, /usr/bin/nano, /usr/bin/vi, /usr/bin/vim, /usr/bin/pico
includesections = terminfo
regularfiles = /etc/vimrc
paths = joe, nano, vi, vim, /etc/vimrc, /etc/joe, /usr/share/vim
directories = /etc/joe, /etc/terminfo, /usr/share/vim, /usr/share/terminfo, /lib/terminfo
[netutils]
[netutils]
comment = several internet utilities like wget, ftp, rsync, scp, ssh
comment = several internet utilities like wget, ftp, rsync, scp, ssh
executables = /usr/bin/wget, /usr/bin/lynx, /usr/bin/ftp, /usr/bin/host, /usr/bin/rsync, /usr/bin/
smbclient
paths = wget, lynx, ftp, host, rsync,
smbclient
includesections = netbasics, ssh, sftp, scp
includesections = netbasics, ssh, sftp, scp
directories = /etc/ssl/certs/
regularfiles = /usr/lib/ssl/certs
[apacheutils]
[apacheutils]
comment = htpasswd utility
comment = htpasswd utility
executables = /usr/bin/
htpasswd
paths =
htpasswd
[extshellplusnet]
[extshellplusnet]
comment = alias for extendedshell + netutils + apacheutils
comment = alias for extendedshell + netutils + apacheutils
...
@@ -109,7 +114,7 @@ includesections = extendedshell, netutils, apacheutils
...
@@ -109,7 +114,7 @@ includesections = extendedshell, netutils, apacheutils
[openvpn]
[openvpn]
comment = jail for the openvpn daemon
comment = jail for the openvpn daemon
executable
s = /usr/sbin/openvpn
path
s = /usr/sbin/openvpn
users = root,nobody
users = root,nobody
groups = root,nogroup
groups = root,nogroup
devices = /dev/urandom, /dev/random, /dev/net/tun
devices = /dev/urandom, /dev/random, /dev/net/tun
...
@@ -118,35 +123,92 @@ need_logsocket = 1
...
@@ -118,35 +123,92 @@ need_logsocket = 1
[apache]
[apache]
comment = the apache webserver, very basic setup, probably too limited for you
comment = the apache webserver, very basic setup, probably too limited for you
executable
s = /usr/sbin/apache
path
s = /usr/sbin/apache
users = root, www-data
users = root, www-data
groups = root, www-data
groups = root, www-data
includesections = netbasics, uidbasics
includesections = netbasics, uidbasics
[perl]
[perl]
comment = the perl interpreter and libraries
comment = the perl interpreter and libraries
executables = /usr/bin/perl
paths = perl, /usr/lib/perl, /usr/lib/perl5, /usr/share/perl, /usr/share/perl5
directories = /usr/lib/perl, /usr/lib/perl5, /usr/share/perl, /usr/share/perl5
[xauth]
[xauth]
comment = getting X authentication to work
comment = getting X authentication to work
executables = /usr/bin/X11/xauth
paths = /usr/bin/X11/xauth, /usr/X11R6/lib/X11/rgb.txt, /etc/ld.so.conf
regularfiles = /usr/X11R6/lib/X11/rgb.txt, /etc/ld.so.conf
[xclients]
[xclients]
comment = minimal files for X clients
comment = minimal files for X clients
regularfile
s = /usr/X11R6/lib/X11/rgb.txt
path
s = /usr/X11R6/lib/X11/rgb.txt
includesections = xauth
includesections = xauth
[vncserver]
[vncserver]
comment = the VNC server program
comment = the VNC server program
executables = /usr/bin/Xvnc, /usr/bin/Xrealvnc
paths = Xvnc, Xrealvnc, /usr/X11R6/lib/X11/fonts/
directories = /usr/X11R6/lib/X11/fonts/
includesections = xclients
includesections = xclients
[ping]
comment = Ping program
paths_w_setuid = /bin/ping
#[xterm]
#[xterm]
#comment = xterm
#comment = xterm
#executables = /usr/bin/X11/xterm
#paths = /usr/bin/X11/xterm, /usr/share/terminfo, /etc/terminfo
#directories = /usr/share/terminfo, /etc/terminfo
#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
#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
+# coreutils from:
+# (echo -ne '\n[coreutils]\ncomment = non-sbin progs from coreutils\npaths = '; dpkg --listfiles coreutils | grep -E '^/bin/|/usr/bin/' | xargs -n1 -i@ echo -n "@, " | sed -e 's/, *$/\n/g' -e 's|/usr/bin/||g' -e 's|/bin/||g') >> /etc/jailkit/jk_init.ini
[coreutils]
comment = non-sbin progs from coreutils
paths = cat, chgrp, chmod, chown, cp, date, dd, df, dir, echo, false, ln, ls, mkdir, mknod, mktemp, mv, pwd, readlink, rm, rmdir, sleep, stty, sync, touch, true, uname, vdir, [, arch, b2sum, base32, base64, basename, chcon, cksum, comm, csplit, cut, dircolors, dirname, du, env, expand, expr, factor, fmt, fold, groups, head, hostid, id, install, join, link, logname, md5sum, mkfifo, nice, nl, nohup, nproc, numfmt, od, paste, pathchk, pinky, pr, printenv, printf, ptx, realpath, runcon, seq, sha1sum, sha224sum, sha256sum, sha384sum, sha512sum, shred, shuf, sort, split, stat, stdbuf, sum, tac, tail, tee, test, timeout, tr, truncate, tsort, tty, unexpand, uniq, unlink, users, wc, who, whoami, yes, md5sum.textutils
[env]
comment = /usr/bin/env for environment variables
paths = env
# Debian 10 default php version is 7.3 (Debian 9 is 7.0)
# Todo: set default version in ISPConfig installer,
# but install the php cli version matching the website
[php]
comment = default php version and libraries
paths = /usr/bin/php
includesections = php_common, php7_3
[php_common]
comment = common php directories and libraries
# notice: potential information leak
# do not add all of /etc/php/ or any of the fpm directories
# or the php config (which includes custom php snippets) from *all*
# sites which use fpm will be copied to *every* jailkit
paths = /usr/bin/php, /usr/lib/php/, /usr/share/php/, /usr/share/zoneinfo/
includesections = env
[php5_6]
comment = php version 5.6
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/
includesections = php_common
[php7_0]
comment = php version 7.0
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/
includesections = php_common
[php7_1]
comment = php version 7.1
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/
includesections = php_common
[php7_2]
comment = php version 7.2
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/
includesections = php_common
[php7_3]
comment = php version 7.3
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/
includesections = php_common
[php7_4]
comment = php version 7.4
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/
includesections = php_common
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment