Initializes new chroot file systems compatible with Firejail sandboxing utility
This project in intended to be used with Firejail, ensure that Firejail is available, of version 0.9.63 or greater, and has chroot support enabled...
firejail --version
#> firejail version 0.9.63
#>
#> Compile time support:
#> ...
#> - chroot support is enabled
#> ...This repository makes use of Git Submodules to track script dependencies, to avoid incomplete downloads clone with the --recurse-submodules option.
Perhaps as easy as one, 2.0,...
If utilizing the project on a multi-user device then clone with sudo/root level permissions...
cd /usr/local/etc
sudo git clone --recurse-submodules [email protected]:paranoid-linux/build-firejail-chroot.gitNote, if installing system-wide then
upgrade, anduninstallMakescript targets will requiresudo/rootlevel permissions too.
Else if using this project on a single-user device, then it should be okay to clone to a user home directory path...
mkdir ~/git/hub/paranoid-linux
cd ~/git/hub/paranoid-linux
git clone --recurse-submodules [email protected]:paranoid-linux/build-firejail-chroot.gitAfter cloning this repository run the Makefile script to symbolically link the project script...
cd ~/git/hub/paranoid-linux/build-firejail-chroot
make installTo remove symbolic links run the uninstall make target...
cd ~/git/hub/paranoid-linux/build-firejail-chroot
make uninstallRun the upgrade make target to update this project...
cd ~/git/hub/paranoid-linux/build-firejail-chroot
make upgradePrint available command line parameters via --help or -h option...
build-firejail-chroot.sh --helpBuild a chroot file system based on Debian (accepts defaults)...
sudo build-firejail-chroot.sh --mount-name debian jailed_serverMount/start Firejailed chroot shell session with mount script...
jailed_debian.sh... or run command within Firejail chroot session...
jailed_debian.sh ls -ahl /homeThis repository may not be feature complete and/or fully functional, Pull Requests that add features or fix bugs are certainly welcomed.
Run project script with -h or --help option to list available parameters and currently set values...
build-firejail-chroot -hTo show available make command options run with list option...
make listOptions for contributing to build-firejail-chroot and paranoid-linux
Start making a Fork of this repository to an account that you have write permissions for.
- Add remote for fork URL. The URL syntax is
[email protected]:<NAME>/<REPO>.git...
cd ~/git/hub/paranoid-linux/build-firejail-chroot
git remote add fork [email protected]:<NAME>/build-firejail-chroot.git- Commit your changes and push to your fork, eg. to fix an issue...
cd ~/git/hub/paranoid-linux/build-firejail-chroot
git commit -F- <<'EOF'
:bug: Fixes #42 Issue
**Edits**
- `<SCRIPT-NAME>` script, fixes some bug reported in issue
EOF
git push fork mainNote, the
-uoption may be used to setforkas the default remote, eg.git push fork mainhowever, this will also default theforkremote for pulling from too! Meaning that pulling updates fromoriginmust be done explicitly, eg.git pull origin main
- Then on GitHub submit a Pull Request through the Web-UI, the URL syntax is
https://github.com/<NAME>/<REPO>/pull/new/<BRANCH>
Note; to decrease the chances of your Pull Request needing modifications before being accepted, please check the dot-github repository for detailed contributing guidelines.
Thanks for even considering it!
Via Liberapay you may on a repeating basis.
Regardless of if you're able to financially support projects such as build-firejail-chroot that paranoid-linux maintains, please consider sharing projects that are useful with others, because one of the goals of maintaining Open Source repositories is to provide value to the community.
Initializes new chroot file systems compatible with Firejail sandboxing utility
Copyright (C) 2020 S0AndS0
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, version 3 of the License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
For further details review full length version of AGPL-3.0 License.