Skip to content

Instantly share code, notes, and snippets.

@psyray

psyray/jailkit

Last active Apr 7, 2020
Embed
What would you like to do?
Jailkit for Debian Stretch (add PHP, Drush, Composer, NodeJS, NPM, Ruby, Gem, Compass)
[php]
comment = the php interpreter and libraries
executables = /usr/bin/php,/usr/bin/php5.6,/usr/bin/php7.0,/usr/bin/php7.1
directories = /usr/lib/php, /usr/share/php, /usr/share/php5, /etc/php, /usr/share/php-geshi, /usr/share/zoneinfo, /etc/snmp, /usr/share/snmp
includesections = env
[env]
comment = environment variables
executables = /usr/bin/env
[mysql-client]
comment = mysql client
executables = /usr/bin/mysql, /usr/bin/mysqldump
paths = /usr/lib/libmysqlclient.so
[drush]
comment = drush (drupal command line)
executables = /usr/local/bin/drush
includesections = php, mysql-client, uidbasics, netbasics
directories = /etc/ssl/certs, /usr/share/ca-certificates
[composer]
comment = composer
executables = /usr/local/bin/composer
includesections = php, uidbasics, netbasics
[node]
comment = NodeJS
executables = /usr/bin/npm, /usr/bin/node, /usr/bin/nodejs
directories = /usr/lib/node_modules
[ruby]
comment = Ruby
executable = /usr/bin/ruby, /usr/bin/gem, /usr/bin/gem2.3
directories = /usr/lib/ruby, /usr/lib/x86_64-linux-gnu/ruby, /var/lib/gems, /usr/share/rubygems-integration
[compass]
comment = Compass
executables = /usr/bin/compass
includesections = ruby
directories = /usr/share/compass
@renky

This comment has been minimized.

Copy link

@renky renky commented Nov 22, 2018

Section Ruby: executable must be Changed to executables - otherwies it will not work

@rubo77

This comment has been minimized.

Copy link

@rubo77 rubo77 commented Jan 2, 2019

How did you get JailKit running on Debian? I cannot make it work on Debian (only on Ubuntu): https://askubuntu.com/a/102206/34298

@broros

This comment has been minimized.

Copy link

@broros broros commented Feb 18, 2019

Remove php 5.6

@develth

This comment has been minimized.

Copy link

@develth develth commented Apr 7, 2020

You should update directories to paths

The entries executables , regularfiles , directories and libraries are all replaced by the entry paths.. They are still supported, but are handled similar to the paths entry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment