├── .gitignore ├── brlcad.profile ├── firefox-esr.profile ├── freecadcmd.profile ├── calligraauthor.profile ├── calligraflow.profile ├── calligraplan.profile ├── calligraplanwork.profile ├── calligrasheets.profile ├── calligrastage.profile ├── calligrawords.profile ├── calligraconverter.profile ├── qemu-system-i386.profile ├── qemu-system-x86_64.profile ├── jail ├── scrot.profile ├── mpv-relaxed.inc ├── feh.profile ├── geany.profile ├── rtv_em ├── xfburn.profile ├── gradio.profile ├── quodlibet.profile ├── synfigstudio.profile ├── calcurse.profile ├── dropbox ├── freecad.profile ├── ricochet.profile ├── lmms.profile ├── mpsyt.profile ├── shotcut.profile ├── youtube-dl.profile ├── electron-common.inc ├── gerbera.profile ├── linphone.profile ├── mupdf.profile ├── elinks.profile ├── openshot.profile ├── viewnior.profile ├── dia.profile ├── inkscape.profile ├── zart.profile ├── x-terminal-emulator.profile ├── scribus.profile ├── flameshot.profile ├── ssh.profile ├── matlab.profile ├── private-profiles ├── chromium.private └── firefox.private ├── qemu-system-common.profile ├── ping.profile ├── amule.profile ├── opera.profile ├── dropbox.profile ├── mpv.profile ├── rocketchat.profile ├── fontforge.profile ├── flowblade.profile ├── mpd.profile ├── skype.profile ├── google-earth-pro.profile ├── pidgin.profile ├── slack.profile ├── brlcad-gen.sh ├── luminance-hdr.profile ├── blender.profile ├── imagej.profile ├── macrofusion.profile ├── akregator.profile ├── fetchmail.profile ├── telegram-desktop.profile ├── newsboat.profile ├── CONTRIBUTING.md ├── calligra.profile ├── ardour5.profile ├── qpdfview.profile ├── .github └── ISSUE_TEMPLATE │ ├── bug_report.md │ └── profile-request.md ├── google-chrome.profile ├── messengerfordesktop.profile ├── Natron.profile ├── discord.profile ├── brackets.profile ├── git.profile ├── common.inc ├── tor-browser-en.profile ├── kdenlive.profile ├── torbrowser-launcher.profile ├── darktable.profile ├── signal-desktop.profile ├── rtv.profile ├── gimp.profile ├── google-earth-pro ├── virtualbox.profile ├── emacs.profile ├── libreoffice.profile ├── hugin.profile ├── Viber.profile ├── chromium.profile ├── firefox.profile ├── gen_libraries ├── mutt.profile ├── CODE_OF_CONDUCT.md ├── private-profile.sh ├── README.md └── LICENSE /.gitignore: -------------------------------------------------------------------------------- 1 | .orig 2 | -------------------------------------------------------------------------------- /brlcad.profile: -------------------------------------------------------------------------------- 1 | include ${HOME}/.config/firejail/common.inc 2 | 3 | 4 | -------------------------------------------------------------------------------- /firefox-esr.profile: -------------------------------------------------------------------------------- 1 | include ${HOME}/.config/firejail/firefox.profile 2 | -------------------------------------------------------------------------------- /freecadcmd.profile: -------------------------------------------------------------------------------- 1 | include ${HOME}/.config/firejail/freecad.profile 2 | -------------------------------------------------------------------------------- /calligraauthor.profile: -------------------------------------------------------------------------------- 1 | include ${HOME}/.config/firejail/calligra.profile 2 | -------------------------------------------------------------------------------- /calligraflow.profile: -------------------------------------------------------------------------------- 1 | include ${HOME}/.config/firejail/calligra.profile 2 | -------------------------------------------------------------------------------- /calligraplan.profile: -------------------------------------------------------------------------------- 1 | include ${HOME}/.config/firejail/calligra.profile 2 | -------------------------------------------------------------------------------- /calligraplanwork.profile: -------------------------------------------------------------------------------- 1 | include ${HOME}/.config/firejail/calligra.profile 2 | -------------------------------------------------------------------------------- /calligrasheets.profile: -------------------------------------------------------------------------------- 1 | include ${HOME}/.config/firejail/calligra.profile 2 | -------------------------------------------------------------------------------- /calligrastage.profile: -------------------------------------------------------------------------------- 1 | include ${HOME}/.config/firejail/calligra.profile 2 | -------------------------------------------------------------------------------- /calligrawords.profile: -------------------------------------------------------------------------------- 1 | include ${HOME}/.config/firejail/calligra.profile 2 | -------------------------------------------------------------------------------- /calligraconverter.profile: -------------------------------------------------------------------------------- 1 | include ${HOME}/.config/firejail/calligra.profile 2 | -------------------------------------------------------------------------------- /qemu-system-i386.profile: -------------------------------------------------------------------------------- 1 | include ${HOME}/.config/firejail/qemu-system-common.profile 2 | 3 | private-bin qemu-system-i386 4 | -------------------------------------------------------------------------------- /qemu-system-x86_64.profile: -------------------------------------------------------------------------------- 1 | include ${HOME}/.config/firejail/qemu-system-common.profile 2 | 3 | private-bin qemu-system-x86_64 4 | -------------------------------------------------------------------------------- /jail: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | DISP="$1" 4 | COM="$2" 5 | 6 | xpra start $DISP --start-child="$COM" --exit-with-children=yes --attach=yes 7 | -------------------------------------------------------------------------------- /scrot.profile: -------------------------------------------------------------------------------- 1 | include ${HOME}/.config/firejail/common.inc 2 | 3 | whitelist ${DOWNLOADS} 4 | 5 | private-bin scrot 6 | private-etc emp 7 | private-lib imlib2 8 | -------------------------------------------------------------------------------- /mpv-relaxed.inc: -------------------------------------------------------------------------------- 1 | ignore net 2 | 3 | private-bin python3,python3.6,youtube-dl,ffmpeg 4 | private-etc hosts,resolv.conf,ssl 5 | 6 | whitelist /usr/share/ca-certificates -------------------------------------------------------------------------------- /feh.profile: -------------------------------------------------------------------------------- 1 | ignore net none 2 | 3 | include ${HOME}/.config/firejail/common.inc 4 | 5 | private-bin feh,jpegexiforient,jpegtran 6 | private-etc feh,resolv.conf,ssl 7 | private-lib imlib2 8 | -------------------------------------------------------------------------------- /geany.profile: -------------------------------------------------------------------------------- 1 | ignore nodbus 2 | 3 | include ${HOME}/.config/firejail/common.inc 4 | 5 | mkdir ${HOME}/.config/geany 6 | 7 | whitelist ${HOME}/.config/geany 8 | whitelist ${DOCUMENTS} 9 | -------------------------------------------------------------------------------- /rtv_em: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | cp "${1}" /tmp/user/1000/emacs1000/ 3 | /usr/bin/env emacshelper "/tmp/user/1000/emacs1000/$(basename ${1})" 4 | mv /tmp/user/1000/emacs1000/"$(basename ${1})" "${1}" 5 | -------------------------------------------------------------------------------- /xfburn.profile: -------------------------------------------------------------------------------- 1 | include ${HOME}/.config/firejail/common.inc 2 | 3 | mkdir ${HOME}/.config/xfburn 4 | 5 | whitelist ${HOME}/.config/xfburn 6 | whitelist ${DOWNLOADS} 7 | 8 | private-bin xfburn 9 | -------------------------------------------------------------------------------- /gradio.profile: -------------------------------------------------------------------------------- 1 | ignore net 2 | 3 | include ${HOME}/.config/firejail/common.inc 4 | 5 | mkdir ${HOME}/.local/share/gradio 6 | 7 | whitelist ${HOME}/.local/share/gradio 8 | 9 | private-bin gradio 10 | -------------------------------------------------------------------------------- /quodlibet.profile: -------------------------------------------------------------------------------- 1 | ignore net 2 | ignore nodbus 3 | 4 | include ${HOME}/.config/firejail/common.inc 5 | 6 | mkdir $ {HOME}/.config/quodlibet 7 | 8 | whitelist ${MUSIC} 9 | whitelist ${HOME}/.config/quodlibet 10 | 11 | private-bin quodlibet -------------------------------------------------------------------------------- /synfigstudio.profile: -------------------------------------------------------------------------------- 1 | include ${HOME}/.config/firejail/common.inc 2 | 3 | mkdir ${HOME}/.synfig 4 | 5 | whitelist ${DOWNLOADS} 6 | whitelist ${HOME}/.synfig 7 | 8 | private-bin synfigstudio 9 | private-etc fonts,X11,synfig,synfig_modules.cfg 10 | -------------------------------------------------------------------------------- /calcurse.profile: -------------------------------------------------------------------------------- 1 | ignore machine-id 2 | 3 | include ${HOME}/.config/firejail/common.inc 4 | 5 | whitelist ${HOME}/.config/calcurse 6 | 7 | private-bin calcurse,sh,less 8 | private-lib terminfo,libgcc_s.so.1 9 | private-etc localtime 10 | 11 | quiet 12 | -------------------------------------------------------------------------------- /dropbox: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | GENLIB=~/scripts/gen_libraries 4 | VERSION=`cat ~/.dropbox-dist/VERSION` 5 | 6 | . $GENLIB 7 | 8 | LIBS=`compile_list ~/.dropbox-dist/dropbox-lnx.x86_64-${VERSION}/ python2.7` 9 | 10 | firejail --private-lib="$LIBS" dropbox start 11 | -------------------------------------------------------------------------------- /freecad.profile: -------------------------------------------------------------------------------- 1 | include ${HOME}/.config/firejail/common.inc 2 | 3 | mkdir ${HOME}/.config/FreeCAD 4 | 5 | whitelist ${DOWNLOADS} 6 | whitelist ${HOME}/.config/FreeCAD 7 | whitelist ${DOCUMENTS} 8 | 9 | private-bin freecad,freecadcmd 10 | private-etc fonts,passwd,alternatives,X11 11 | -------------------------------------------------------------------------------- /ricochet.profile: -------------------------------------------------------------------------------- 1 | ignore net 2 | 3 | include ${HOME}/.config/firejail/common.inc 4 | 5 | mkdir ${HOME}/.local/share/Ricochet 6 | 7 | whitelist ${DOWNLOADS} 8 | whitelist ${HOME}/.local/share/Ricochet 9 | 10 | private-bin ricochet,tor 11 | private-etc fonts,tor,X11,alternatives 12 | -------------------------------------------------------------------------------- /lmms.profile: -------------------------------------------------------------------------------- 1 | include ${HOME}/.config/firejail/common.inc 2 | 3 | mkfile ${HOME}/.lmmsrc.xml 4 | mkdir ${HOME}/lmms 5 | 6 | whitelist ${DOWNLOADS} 7 | whitelist ${MUSIC} 8 | whitelist ${HOME}/.lmmsrc.xml 9 | whitelist ${HOME}/lmms 10 | 11 | private-bin lmms 12 | private-etc fonts,pulse 13 | -------------------------------------------------------------------------------- /mpsyt.profile: -------------------------------------------------------------------------------- 1 | ignore nodbus 2 | 3 | include ${HOME}/.config/firejail/mpv-relaxed.inc 4 | include ${HOME}/.config/firejail/mpv.profile 5 | 6 | whitelist ${HOME}/.config/mps-youtube/config 7 | whitelist ${HOME}/.config/mps-youtube/mpv-input.conf 8 | 9 | private-bin mpsyt 10 | 11 | quiet 12 | -------------------------------------------------------------------------------- /shotcut.profile: -------------------------------------------------------------------------------- 1 | include ${HOME}/.config/firejail/common.inc 2 | 3 | mkdir ${HOME}/.config/Meltytech 4 | 5 | whitelist ${DOWNLOADS} 6 | whitelist ${VIDEOS} 7 | whitelist ${HOME}/.config/Meltytech 8 | 9 | private-bin shotcut,melt,qmelt,nice 10 | private-etc X11,alternatives,pulse,fonts 11 | -------------------------------------------------------------------------------- /youtube-dl.profile: -------------------------------------------------------------------------------- 1 | ignore net 2 | ignore memory-deny-write-execute 3 | 4 | include ${HOME}/.config/firejail/common.inc 5 | 6 | whitelist ${VIDEOS} 7 | whitelist ${DOWNLOADS} 8 | 9 | private-bin python3,python3.6,youtube-dl,ffmpeg 10 | private-etc hosts,resolv.conf,ssl 11 | 12 | nosound 13 | -------------------------------------------------------------------------------- /electron-common.inc: -------------------------------------------------------------------------------- 1 | private-lib nss,pulseaudio,locale,gconv,libsqlite3.so.0,libudev.so.1,libvorbisenc.so.2,libvorbis.so.0,libogg.so.0,libFLAC.so.8,libasyncns.so.0,libsndfile.so.1,libwrap.so.0,libSM.so.6,libICE.so.6,libcap.so.2,libpulse.so.0,libnotify.so.4,libGL.so.1,libnss_resolve.so.2,libnss_systemd.so.2 2 | -------------------------------------------------------------------------------- /gerbera.profile: -------------------------------------------------------------------------------- 1 | ignore net 2 | 3 | include ${HOME}/.config/firejail/common.inc 4 | 5 | mkdir ${HOME}/.config/gerbera 6 | 7 | whitelist ${HOME}/.config/gerbera 8 | whitelist ${MUSIC} 9 | 10 | private-bin gerbera 11 | private-etc magic,magic.mime 12 | private-lib 13 | 14 | nosound 15 | x11 none 16 | -------------------------------------------------------------------------------- /linphone.profile: -------------------------------------------------------------------------------- 1 | ignore net 2 | 3 | include ${HOME}/.config/firejail/common.inc 4 | 5 | mkfile ${HOME}/.linphonerc 6 | mkfile ${HOME}/.linphone-history.db 7 | 8 | whitelist ${HOME}/.linphonerc 9 | whitelist ${HOME}/.linphone-history.db 10 | whitelist ${DOWNLOADS} 11 | whitelist ${HOME}/.gtkrc-2.0 12 | -------------------------------------------------------------------------------- /mupdf.profile: -------------------------------------------------------------------------------- 1 | include ${HOME}/.config/firejail/common.inc 2 | 3 | whitelist ${DOWNLOADS} 4 | whitelist ${DOCUMENTS} 5 | 6 | private-bin mupdf,sh,tempfile,rm,expr 7 | private-etc alternatives,X11,fonts 8 | 9 | whitelist /usr/share/icons 10 | whitelist /usr/share/themes 11 | whitelist /usr/share/fonts 12 | -------------------------------------------------------------------------------- /elinks.profile: -------------------------------------------------------------------------------- 1 | ignore net none 2 | 3 | include ${HOME}/.config/firejail/common.inc 4 | 5 | whitelist ${DOWNLOADS} 6 | whitelist ${HOME}/.config/elinks 7 | 8 | private-bin elinks 9 | private-lib terminfo 10 | private-etc hosts,mime.types,mailcap,elinks,xdg,alternatives,localtime,nsswitch.conf,resolv.conf 11 | -------------------------------------------------------------------------------- /openshot.profile: -------------------------------------------------------------------------------- 1 | ignore memory-deny-write-execute 2 | 3 | include ${HOME}/.config/firejail/common.inc 4 | 5 | mkdir ${HOME}/.openshot_qt/ 6 | 7 | whitelist ${HOME}/.openshot_qt/ 8 | whitelist ${HOME}/.gtkrc-2.0 9 | whitelist ${DOWNLOADS} 10 | whitelist ${VIDEOS} 11 | 12 | private-bin openshot-qt,python3 13 | -------------------------------------------------------------------------------- /viewnior.profile: -------------------------------------------------------------------------------- 1 | include ${HOME}/.config/firejail/common.inc 2 | 3 | mkdir ${HOME}/.config/viewnior 4 | 5 | whitelist ${DOWNLOADS} 6 | whitelist ${PICTURES} 7 | whitelist ${HOME}/.gtkrc-2.0 8 | whitelist ${HOME}/.themes 9 | whitelist ${HOME}/.config/viewnior 10 | 11 | private-bin viewnior 12 | private-etc fonts 13 | -------------------------------------------------------------------------------- /dia.profile: -------------------------------------------------------------------------------- 1 | include ${HOME}/.config/firejail/common.inc 2 | 3 | mkdir ${HOME}/.dia 4 | 5 | whitelist ${HOME}/.gtkrc-2.0 6 | whitelist ${HOME}/.themes 7 | whitelist ${HOME}/.icons 8 | whitelist ${HOME}/.dia 9 | 10 | whitelist ${DOWNLOADS} 11 | whitelist ${DOCUMENTS} 12 | 13 | private-bin dia 14 | private-etc fonts,X11 15 | -------------------------------------------------------------------------------- /inkscape.profile: -------------------------------------------------------------------------------- 1 | include ${HOME}/.config/firejail/common.inc 2 | 3 | mkdir ${HOME}/.config/inkscape 4 | 5 | whitelist ${HOME}/.config/inkscape 6 | whitelist ${HOME}/.gtkrc-2.0 7 | whitelist ${HOME}/.themes 8 | 9 | whitelist ${DOWNLOADS} 10 | whitelist ${PICTURES} 11 | 12 | private-bin inkscape 13 | private-etc fonts 14 | -------------------------------------------------------------------------------- /zart.profile: -------------------------------------------------------------------------------- 1 | # Originally contributed by triceratops1 2 | # Rewritten by chiraag-nataraj 3 | 4 | ignore memory-deny-write-execute 5 | 6 | include ${HOME}/.config/firejail/common.inc 7 | 8 | whitelist ${DOWNLOADS} 9 | whitelist ${VIDEOS} 10 | 11 | private-bin zart,ffmpeg,melt,ffprobe,ffplay 12 | private-etc fonts,X11 13 | -------------------------------------------------------------------------------- /x-terminal-emulator.profile: -------------------------------------------------------------------------------- 1 | ignore nodbus 2 | ignore private-tmp 3 | ignore memory-deny-write-execute 4 | ignore noexec ${HOME} 5 | ignore blacklist /usr/local/bin 6 | 7 | include ${HOME}/.config/firejail/common.inc 8 | 9 | whitelist /tmp/user/1000 10 | whitelist /tmp/.X11-unix/ 11 | 12 | writable-run-user 13 | keep-dev-shm 14 | -------------------------------------------------------------------------------- /scribus.profile: -------------------------------------------------------------------------------- 1 | include ${HOME}/.config/firejail/common.inc 2 | 3 | mkdir ${HOME}/.scribus/ 4 | mkfile ${HOME}/.config/Trolltech.conf 5 | 6 | whitelist ${DOWNLOADS} 7 | whitelist ${DOCUMENTS} 8 | whitelist ${HOME}/.scribus/ 9 | whitelist ${HOME}/.gtkrc-2.0 10 | whitelist ${HOME}/.config/Trolltech.conf 11 | 12 | private-bin scribus,gs 13 | -------------------------------------------------------------------------------- /flameshot.profile: -------------------------------------------------------------------------------- 1 | ignore memory-deny-write-execute 2 | ignore no3d 3 | 4 | include ${HOME}/.config/firejail/common.inc 5 | 6 | mkdir ${HOME}/.config/Dharkael 7 | 8 | whitelist ${PICTURES} 9 | whitelist ${DOWNLOADS} 10 | whitelist ${HOME}/.config/Dharkael 11 | 12 | private-bin flameshot 13 | private-lib 14 | private-etc alternatives,fonts 15 | -------------------------------------------------------------------------------- /ssh.profile: -------------------------------------------------------------------------------- 1 | ignore net none 2 | 3 | include ${HOME}/.config/firejail/common.inc 4 | 5 | whitelist ${DOWNLOADS} 6 | whitelist ${HOME}/.local/share/ssh 7 | 8 | writable-run-user 9 | join-or-start ssh 10 | 11 | private-bin ssh 12 | private-etc ssh,resolv.conf,nsswitch.conf,hosts,passwd 13 | private-lib openssh 14 | 15 | blacklist /usr/share/ 16 | -------------------------------------------------------------------------------- /matlab.profile: -------------------------------------------------------------------------------- 1 | ignore private-opt emp 2 | ignore memory-deny-write-execute 3 | ignore machine-id 4 | ignore net none 5 | ignore noexec /tmp 6 | 7 | include ${HOME}/.config/firejail/common.inc 8 | 9 | whitelist ${DOCUMENTS} 10 | whitelist ${DOWNLOADS} 11 | whitelist ${HOME}/.matlab 12 | whitelist ${HOME}/.config/matlab 13 | 14 | whitelist /opt/MATLAB 15 | -------------------------------------------------------------------------------- /private-profiles/chromium.private: -------------------------------------------------------------------------------- 1 | privlib=0 2 | use_systemd=1 3 | use_firejail=1 4 | profiledir=~/.config/chromium/ 5 | tocopy=( Extensions "Extension State" Preferences ) 6 | destdir="Default" 7 | progname="/usr/lib/chromium/chromium" 8 | progargs=( '--user-data-dir=${profile}' '$*' ) 9 | rprogargs=( '--user-data-dir=${profile}' '$*' ) 10 | # envvars=() 11 | -------------------------------------------------------------------------------- /qemu-system-common.profile: -------------------------------------------------------------------------------- 1 | ignore net 2 | ignore private-dev 3 | 4 | include ${HOME}/.config/firejail/common.inc 5 | 6 | mkdir ${HOME}/qemu-vms 7 | 8 | whitelist ${DOWNLOADS} 9 | whitelist ${HOME}/qemu-vms 10 | whitelist ${HOME}/.config/gtk-3.0 11 | whitelist ${HOME}/.themes 12 | 13 | private-etc qemu-ifdown,qemu-ifup,fonts,resolv.conf,nsswitch.conf 14 | -------------------------------------------------------------------------------- /ping.profile: -------------------------------------------------------------------------------- 1 | ignore seccomp 2 | ignore seccomp.block-secondary 3 | ignore noroot 4 | ignore caps.drop all 5 | ignore apparmor 6 | ignore nonewprivs 7 | ignore net none 8 | ignore memory-deny-write-execute 9 | 10 | include ${HOME}/.config/firejail/common.inc 11 | 12 | caps.keep net_raw 13 | 14 | private-etc hosts,resolv.conf,nsswitch.conf 15 | private 16 | quiet 17 | -------------------------------------------------------------------------------- /amule.profile: -------------------------------------------------------------------------------- 1 | ignore net 2 | 3 | include ${HOME}/.config/firejail/common.inc 4 | 5 | mkdir ${HOME}/.aMule 6 | 7 | whitelist ${DOWNLOADS} 8 | whitelist ${HOME}/.aMule 9 | whitelist ${HOME}/.gtkrc-2.0 10 | whitelist ${HOME}/.gtkrc.mine 11 | whitelist ${HOME}/.themes 12 | 13 | private-bin amule 14 | private-etc hosts,fonts,xdg,gtk-3.0,X11,localtime,nsswitch.conf,resolv.conf 15 | -------------------------------------------------------------------------------- /opera.profile: -------------------------------------------------------------------------------- 1 | ignore net none 2 | ignore memory-deny-write-execute 3 | ignore noroot 4 | ignore seccomp 5 | ignore seccomp.block-secondary 6 | ignore nonewprivs 7 | ignore caps.drop all 8 | 9 | include ${HOME}/.config/firejail/common.inc 10 | 11 | whitelist ${HOME}/.config/opera 12 | whitelist ${DOWNLOADS} 13 | 14 | private-bin opera 15 | 16 | blacklist /usr/share/fonts/truetype/unifont 17 | -------------------------------------------------------------------------------- /dropbox.profile: -------------------------------------------------------------------------------- 1 | ignore net 2 | ignore memory-deny-write-execute 3 | ignore noexec ${HOME} 4 | 5 | include ${HOME}/.config/firejail/common.inc 6 | 7 | mkdir ${HOME}/Dropbox 8 | mkdir ${HOME}/.dropbox 9 | mkdir ${HOME}/.dropbox-dist 10 | 11 | whitelist ${HOME}/Dropbox 12 | whitelist ${HOME}/.dropbox 13 | whitelist ${HOME}/.dropbox-dist 14 | 15 | private-bin dropbox,python,python2,sh,readlink,dirname 16 | -------------------------------------------------------------------------------- /mpv.profile: -------------------------------------------------------------------------------- 1 | ignore memory-deny-write-execute 2 | 3 | # include ${HOME}/.config/firejail/mpv-relaxed.inc 4 | include ${HOME}/.config/firejail/common.inc 5 | 6 | whitelist ${HOME}/.config/mpv 7 | whitelist ${DOWNLOADS} 8 | whitelist ${VIDEOS} 9 | whitelist ${MUSIC} 10 | 11 | private-bin mpv 12 | private-etc mpv,alternatives,fonts 13 | 14 | whitelist /usr/share/X11 15 | whitelist /usr/share/fonts 16 | -------------------------------------------------------------------------------- /rocketchat.profile: -------------------------------------------------------------------------------- 1 | include /etc/firejail/globals.local 2 | 3 | private-bin rocketchat 4 | private-dev 5 | private-etc hosts,fonts,xdg,resolv.conf,X11,pulse,alternatives,localtime,nsswitch.conf 6 | 7 | private-tmp 8 | 9 | whitelist ${HOME}/.config/Rocket.Chat+ 10 | whitelist ${HOME}/.gtkrc-2.0 11 | whitelist ${HOME}/.themes 12 | whitelist ${DOWNLOADS} 13 | 14 | shell none 15 | seccomp 16 | caps.drop all -------------------------------------------------------------------------------- /fontforge.profile: -------------------------------------------------------------------------------- 1 | include ${HOME}/.config/firejail/common.inc 2 | 3 | mkdir ${HOME}/.config/fontforge 4 | 5 | whitelist ${HOME}/.config/fontforge 6 | whitelist ${DOWNLOADS} 7 | 8 | private-bin fontforge 9 | private-lib gconv,python2.7 10 | private-etc fonts,alternatives 11 | 12 | whitelist /usr/share/fontforge 13 | whitelist /usr/share/fonts 14 | whitelist /usr/share/icons 15 | whitelist /usr/share/themes 16 | -------------------------------------------------------------------------------- /flowblade.profile: -------------------------------------------------------------------------------- 1 | include ${HOME}/.config/firejail/common.inc 2 | 3 | mkdir ${HOME}/.flowblade 4 | mkdir ${HOME}/.config/flowblade 5 | 6 | whitelist ${HOME}/.flowblade 7 | whitelist ${HOME}/.themes 8 | whitelist ${HOME}/.config/gtk-3.0 9 | whitelist ${HOME}/.config/flowblade 10 | 11 | whitelist ${DOWNLOADS} 12 | whitelist ${VIDEOS} 13 | 14 | private-bin python,flowblade 15 | private-etc pulse,fonts,alternatives,X11 16 | -------------------------------------------------------------------------------- /mpd.profile: -------------------------------------------------------------------------------- 1 | ignore nosound 2 | 3 | include ${HOME}/.config/firejail/common.inc 4 | 5 | mkfile ${HOME}/.config/mpd/mpd.conf 6 | 7 | whitelist ${MUSIC} 8 | whitelist ${HOME}/.local/share/mpd 9 | whitelist ${HOME}/.config/mpd/ 10 | whitelist ${HOME}/.config/pulse/ 11 | whitelist ${HOME}/.pulse/ 12 | read-only ${MUSIC} 13 | 14 | private-bin mpd,bash 15 | # private-etc alternatives 16 | private-lib 17 | 18 | blacklist /usr/share/ 19 | -------------------------------------------------------------------------------- /skype.profile: -------------------------------------------------------------------------------- 1 | include /etc/firejail/globals.local 2 | 3 | whitelist ${HOME}/.Skype 4 | whitelist ${DOWNLOADS} 5 | 6 | blacklist /boot 7 | blacklist /media 8 | blacklist /mnt 9 | blacklist /opt 10 | 11 | noexec ${HOME}/ 12 | noexec /tmp/ 13 | caps.drop all 14 | protocol inet,inet6,unix 15 | seccomp 16 | noroot 17 | private-etc resolv.conf,hosts,fonts,pulse 18 | private-bin skype,bash 19 | whitelist /tmp/.X11-unix 20 | ipc-namespace -------------------------------------------------------------------------------- /google-earth-pro.profile: -------------------------------------------------------------------------------- 1 | ignore net 2 | ignore memory-deny-write-execute 3 | ignore private-opt 4 | 5 | include ${HOME}/.config/firejail/common.inc 6 | 7 | mkdir ${HOME}/.config/Google 8 | mkdir ${HOME}/.googleearth 9 | 10 | whitelist ${HOME}/.config/Google 11 | whitelist ${HOME}/.googleearth 12 | 13 | private-bin google-earth-pro,sh,grep,sed,ls,dirname 14 | private-etc fonts,resolv.conf,X11,alternatives,pulse,ssl 15 | 16 | whitelist /opt/google/earth 17 | -------------------------------------------------------------------------------- /pidgin.profile: -------------------------------------------------------------------------------- 1 | ignore net 2 | 3 | include ${HOME}/.config/firejail/common.inc 4 | 5 | mkdir ${HOME}/.purple 6 | 7 | whitelist ${DOWNLOADS} 8 | whitelist ${HOME}/.purple 9 | whitelist ${HOME}/.config/gtk-3.0 10 | whitelist ${HOME}/.gtkrc-2.0 11 | whitelist ${HOME}/.gtkrc.mine 12 | whitelist ${HOME}/.themes 13 | whitelist ${HOME}/.pulse 14 | whitelist ${HOME}/.config/pulse 15 | 16 | private-bin pidgin 17 | private-etc X11,alternatives,resolv.conf,fonts,pulse 18 | -------------------------------------------------------------------------------- /slack.profile: -------------------------------------------------------------------------------- 1 | ignore net 2 | ignore memory-deny-write-execute 3 | 4 | include ${HOME}/.config/firejail/common.inc 5 | include ${HOME}/.config/firejail/electron-common.inc 6 | 7 | mkdir ${HOME}/.config/Slack 8 | 9 | whitelist ${HOME}/.config/Slack 10 | whitelist ${HOME}/.gtkrc-2.0 11 | whitelist ${HOME}/.themes 12 | whitelist ${DOWNLOADS} 13 | 14 | private-bin slack 15 | private-etc hosts,fonts,xdg,resolv.conf,X11,pulse,alternatives,localtime,nsswitch.conf 16 | -------------------------------------------------------------------------------- /brlcad-gen.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | BRLBIN=/usr/brlcad/dev-7.27.0/bin/ 4 | 5 | PROGS=( `find $BRLBIN -type f -executable -exec basename {} \;` ) 6 | PRIVBIN=`find $BRLBIN -type f -executable -exec basename {} \; | sort | tr '\n' ','` 7 | 8 | for i in ${PROGS[@]} 9 | do 10 | echo 'include ${HOME}/.config/firejail/brlcad.profile' > ${HOME}/.config/firejail/${i}.profile 11 | done 12 | 13 | echo "private-bin $PRIVBIN" >> ${HOME}/.config/firejail/brlcad.profile 14 | -------------------------------------------------------------------------------- /luminance-hdr.profile: -------------------------------------------------------------------------------- 1 | ignore memory-deny-write-execute 2 | 3 | include ${HOME}/.config/firejail/common.inc 4 | 5 | mkdir ${HOME}/.LuminanceHDR 6 | mkdir ${HOME}/.config/Luminance HDR Development Team 7 | 8 | whitelist ${PICTURES} 9 | whitelist ${DOWNLOADS} 10 | whitelist ${HOME}/.LuminanceHDR 11 | whitelist ${HOME}/.config/Luminance HDR Development Team 12 | 13 | private-bin luminance-hdr,luminance-hdr-cli,align_image_stack 14 | private-etc fonts,X11,alternatives 15 | -------------------------------------------------------------------------------- /blender.profile: -------------------------------------------------------------------------------- 1 | ignore memory-deny-write-execute 2 | 3 | include ${HOME}/.config/firejail/common.inc 4 | 5 | mkdir ${HOME}/.config/blender 6 | 7 | whitelist ${HOME}/.config/blender 8 | whitelist ${DOWNLOADS} 9 | whitelist ${VIDEOS} 10 | 11 | private-bin blender 12 | private-etc pulse,fonts,alternatives 13 | 14 | whitelist /usr/share/blender 15 | whitelist /usr/share/fonts 16 | whitelist /usr/share/icons 17 | whitelist /usr/share/themes 18 | whitelist /usr/share/ffmpeg 19 | -------------------------------------------------------------------------------- /imagej.profile: -------------------------------------------------------------------------------- 1 | include ${HOME}/.config/firejail/common.inc 2 | 3 | mkdir ${HOME}/.imagej 4 | 5 | whitelist ${HOME}/.imagej 6 | whitelist ${HOME}/.gtkrc-2.0 7 | whitelist ${HOME}/.gtkrc.mine 8 | whitelist ${HOME}/.themes 9 | whitelist ${PICTURES} 10 | whitelist ${DOWNLOADS} 11 | 12 | private-bin imagej,bash,grep,sort,tail,tr,cut,whoami,hostname,uname,mkdir,ls,touch,free,awk,update-java-alternatives,basename,xprop,rm,ln 13 | # private-etc passwd,alternatives,hosts,fonts,X11 14 | -------------------------------------------------------------------------------- /macrofusion.profile: -------------------------------------------------------------------------------- 1 | include /etc/firejail/globals.local 2 | 3 | whitelist ${PICTURES} 4 | whitelist ${DOWNLOADS} 5 | whitelist ${HOME}/.config/gtk-3.0 6 | whitelist ${HOME}/.themes 7 | whitelist ${HOME}/.config/mfusion 8 | 9 | private-bin python3,macrofusion,env,enfuse,exiftool,align_image_stack 10 | private-etc fonts 11 | private-dev 12 | private-tmp 13 | 14 | shell none 15 | seccomp 16 | caps.drop all 17 | net none 18 | ipc-namespace 19 | noroot 20 | nogroups 21 | nonewprivs 22 | -------------------------------------------------------------------------------- /akregator.profile: -------------------------------------------------------------------------------- 1 | ignore net 2 | ignore nodbus 3 | ignore memory-deny-write-execute 4 | 5 | include ${HOME}/.config/firejail/common.inc 6 | 7 | mkdir ${HOME}/.local/share/akregator/ 8 | 9 | whitelist ${HOME}/.config/ 10 | whitelist ${HOME}/.local/share/akregator/ 11 | 12 | private-bin akregator,akregatorstorageexporter,dbus-launch,kdeinit5,kshell5,kdeinit5_shutdown,kdeinit5_wrapper,kdeinit4,kshell4,kdeinit4_shutdown,kdeinit4_wrapper 13 | private-etc fonts,alternatives,X11,passwd 14 | -------------------------------------------------------------------------------- /fetchmail.profile: -------------------------------------------------------------------------------- 1 | ignore net 2 | 3 | include ${HOME}/.config/firejail/common.inc 4 | 5 | whitelist ${HOME}/Mail 6 | 7 | private-bin fetchmail,getmail_maildir,bash,chmod,python2,sh 8 | private-lib nss,ssl,python2.7,libnss_resolve.so.2,libnss_mdns4_minimal.so.2,locale,libnss_files.so.2,libnsl.so.1,libnss_nis.so.2,libnss_compat.so.2,libutil.so.1,libz.so.1,libm.so.6 9 | # private-etc passwd,hosts,resolv.conf,nsswitch.conf 10 | 11 | # whitelist /usr/share/locale 12 | 13 | nosound 14 | x11 none 15 | -------------------------------------------------------------------------------- /telegram-desktop.profile: -------------------------------------------------------------------------------- 1 | ignore net 2 | ignore memory-deny-write-execute 3 | 4 | include ${HOME}/.config/firejail/common.inc 5 | 6 | mkdir ${HOME}/.local/share/TelegramDesktop 7 | 8 | whitelist ${HOME}/.local/share/TelegramDesktop 9 | whitelist ${DOWNLOADS} 10 | whitelist ${HOME}/.themes 11 | whitelist ${HOME}/.gtkrc-2.0 12 | 13 | private-lib pulseaudio,libpulse.so.0 14 | private-bin telegram-desktop 15 | private-etc hosts,fonts,xdg,resolv.conf,X11,pulse,alternatives,localtime,nsswitch.conf 16 | -------------------------------------------------------------------------------- /newsboat.profile: -------------------------------------------------------------------------------- 1 | ignore net none 2 | ignore private-tmp 3 | 4 | include ${HOME}/.config/firejail/common.inc 5 | 6 | whitelist ${HOME}/.config/newsboat 7 | whitelist ${HOME}/.local/share/newsboat 8 | 9 | whitelist /tmp/user/1000/ 10 | whitelist /tmp/.X11-unix/X0 11 | env TMPDIR=/tmp/user/1000/ 12 | 13 | private-bin newsboat,emacsclient,sh 14 | private-etc alternatives,hosts,nsswitch.conf,resolv.conf,mime.types,mailcap,ssl,newsboat 15 | private-lib terminfo 16 | 17 | whitelist /usr/share/locale 18 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Creating new profiles 2 | If you want to contribute a profile, please start with including `common.inc`. If you know that you need to disable something from `common.inc`, use `ignore ` before including it (see some of the profiles in the repository for examples). 3 | 4 | # Opening issues 5 | If a profile isn't working or it breaks for you, please attach the output for `firejail --debug ` to your issue (if it's very long, please upload it as a file and attach it to the issue!). 6 | -------------------------------------------------------------------------------- /calligra.profile: -------------------------------------------------------------------------------- 1 | ignore nodbus 2 | include ${HOME}/.config/firejail/common.inc 3 | 4 | mkfile ${HOME}/.config/Trolltech.conf 5 | 6 | whitelist ${DOWNLOADS} 7 | whitelist ${HOME}/.config/Trolltech.conf 8 | whitelist ${HOME}/.gtkrc-2.0 9 | whitelist ${HOME}/.kde 10 | whitelist ${HOME}/.themes 11 | whitelist ${DOCUMENTS} 12 | 13 | private-bin calligra,calligraauthor,calligraconverter,calligraflow,calligraplan,calligraplanwork,calligrasheets,calligrastage,calligrawords,dbus-launch 14 | private-etc fonts,passwd,alternatives,X11 15 | -------------------------------------------------------------------------------- /ardour5.profile: -------------------------------------------------------------------------------- 1 | ignore nodbus 2 | ignore nosound 3 | 4 | include ${HOME}/.config/firejail/common.inc 5 | 6 | mkdir ${HOME}/.config/ardour4 7 | mkdir ${HOME}/.config/ardour5 8 | 9 | whitelist ${DOWNLOADS} 10 | whitelist ${DOCUMENTS} 11 | whitelist ${HOME}/.config/ardour4 12 | whitelist ${HOME}/.config/ardour5 13 | whitelist ${HOME}/.lv2 14 | whitelist ${HOME}/.vst 15 | 16 | private-bin sh,ardour5,ardour5-copy-mixer,ardour5-export,ardour5-fix_bbtppq,grep,sed,ldd,nm,jackd 17 | # private-etc pulse,X11,alternatives,ardour4,ardour5,fonts 18 | -------------------------------------------------------------------------------- /qpdfview.profile: -------------------------------------------------------------------------------- 1 | ignore memory-deny-write-execute 2 | 3 | include ${HOME}/.config/firejail/common.inc 4 | 5 | mkdir ${HOME}/.config/qpdfview 6 | 7 | whitelist ${DOWNLOADS} 8 | whitelist ${DOCUMENTS} 9 | whitelist ${HOME}/.config/qpdfview 10 | 11 | private-etc fonts,X11,alternatives 12 | private-bin qpdfview 13 | 14 | whitelist /usr/share/qpdfview 15 | whitelist /usr/share/icons 16 | whitelist /usr/share/themes 17 | whitelist /usr/share/qt5 18 | whitelist /usr/share/qtchooser 19 | whitelist /usr/share/fonts 20 | whitelist /usr/share/X11 21 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Report issues with profiles 4 | 5 | --- 6 | 7 | **Describe the bug** 8 | A clear and concise description of what the bug is. 9 | 10 | **To Reproduce** 11 | Steps to reproduce the behavior: 12 | 1. Go to '...' 13 | 2. Click on '....' 14 | 3. Scroll down to '....' 15 | 4. See error 16 | 17 | **Expected behavior** 18 | A clear and concise description of what you expected to happen. 19 | 20 | **Debugging output** 21 | Attach the output of `firejail --debug ` here. 22 | -------------------------------------------------------------------------------- /google-chrome.profile: -------------------------------------------------------------------------------- 1 | ignore caps.drop 2 | ignore private-dev 3 | 4 | include ${HOME}/.config/firejail/common.inc 5 | 6 | mkdir ${HOME}/.config/google-chrome 7 | 8 | whitelist ${HOME}/.config/google-chrome 9 | whitelist ${HOME}/.themes 10 | whitelist ${HOME}/.gtkrc-2.0 11 | 12 | whitelist ${DOWNLOADS} 13 | whitelist ${HOME}/PDF 14 | 15 | private-bin google-chrome,google-chrome-stable,bash,readlink,dirname,cat 16 | private-etc fonts,alternatives,X11,pulse,resolv.conf,localtime 17 | 18 | whitelist /opt/google 19 | 20 | caps.keep sys_chroot,sys_admin 21 | -------------------------------------------------------------------------------- /messengerfordesktop.profile: -------------------------------------------------------------------------------- 1 | ignore private-opt 2 | ignore net 3 | ignore noexec /tmp 4 | 5 | include ${HOME}/.config/firejail/common.inc 6 | include ${HOME}/.config/firejail/electron-common.inc 7 | 8 | mkdir ${HOME}/.config/Messenger for Desktop 9 | 10 | whitelist ${HOME}/.config/Messenger for Desktop 11 | whitelist ${DOWNLOADS} 12 | whitelist ${HOME}/.themes 13 | whitelist ${HOME}/.gtkrc-2.0 14 | 15 | private-bin messengerfordesktop 16 | whitelist /opt/messengerfordesktop 17 | private-etc hosts,fonts,xdg,X11,pulse,alternatives,localtime,nsswitch.conf 18 | -------------------------------------------------------------------------------- /Natron.profile: -------------------------------------------------------------------------------- 1 | # Contributed by triceratops1 2 | # Rewritten by chiraag-nataraj 3 | 4 | ignore private-opt emp 5 | ignore memory-deny-write-execute 6 | 7 | include ${HOME}/.config/firejail/common.inc 8 | 9 | whitelist ${HOME}/.Natron 10 | whitelist ${HOME}/.cache/INRIA/Natron/ 11 | whitelist ${HOME}/.config/INRIA/ 12 | whitelist ${HOME}/.gtkrc-2.0 13 | whitelist ${HOME}/.themes 14 | whitelist ${DOWNLOADS} 15 | whitelist ${VIDEOS} 16 | 17 | whitelist /opt/natron 18 | 19 | private-bin bash,dirname,uname,grep 20 | private-etc fonts,X11,pulse,alternatives,passwd 21 | -------------------------------------------------------------------------------- /discord.profile: -------------------------------------------------------------------------------- 1 | ignore net none 2 | ignore nosound 3 | ignore novideo 4 | ignore no3d 5 | ignore memory-deny-write-execute 6 | # ignore private-tmp 7 | ignore apparmor 8 | ignore noexec ${HOME} 9 | 10 | include ${HOME}/.config/firejail/common.inc 11 | 12 | whitelist ${HOME}/.config/discord 13 | whitelist ${HOME}/.gtkrc-2.0 14 | whitelist ${HOME}/.themes 15 | whitelist ${DOWNLOADS} 16 | 17 | private-bin discord 18 | 19 | mkdir /tmp/user/1000/discord1000/ 20 | 21 | whitelist /tmp/.X11-unix 22 | whitelist /tmp/user/1000/discord1000/ 23 | env TMPDIR=/tmp/user/1000/discord1000 24 | -------------------------------------------------------------------------------- /brackets.profile: -------------------------------------------------------------------------------- 1 | ignore private-opt 2 | ignore noroot 3 | ignore seccomp 4 | ignore seccomp.block-secondary 5 | ignore nonewprivs 6 | ignore caps.drop 7 | ignore memory-deny-write-execute 8 | 9 | include ${HOME}/.config/firejail/common.inc 10 | 11 | mkdir ${HOME}/.config/Brackets 12 | 13 | whitelist ${HOME}/.config/Brackets 14 | whitelist ${HOME}/.gtkrc-2.0 15 | whitelist ${HOME}/.themes 16 | whitelist ${DOWNLOADS} 17 | whitelist ${DOCUMENTS} 18 | 19 | whitelist /opt/brackets/ 20 | whitelist /opt/google/ 21 | 22 | private-bin bash,brackets,readlink,dirname,google-chrome,cat 23 | -------------------------------------------------------------------------------- /git.profile: -------------------------------------------------------------------------------- 1 | ignore blacklist /usr/share/ 2 | include ${HOME}/.config/firejail/ssh.profile 3 | 4 | whitelist ${DOCUMENTS} 5 | whitelist ${HOME}/.config/git 6 | whitelist ${HOME}/.config/gnupg 7 | whitelist ${HOME}/.local/share/password-store 8 | 9 | private-bin git,git-receive-pack,git-shell,git-upload-archive,git-upload-pack,gpg,pager,sh 10 | private-etc ssl,alternatives,terminfo 11 | private-lib git-core,libcurl-gnutls.so.4,libexpat.so.1,ssl,x86_64-linux-gnu/sasl2,nss,libdb-5.3.so,libcrypt-2.27.so,libcrypto.so.1.1,terminfo 12 | 13 | whitelist /usr/share/git-core 14 | 15 | quiet 16 | -------------------------------------------------------------------------------- /common.inc: -------------------------------------------------------------------------------- 1 | blacklist /usr/local/bin 2 | blacklist /usr/local/sbin 3 | 4 | blacklist /boot 5 | 6 | private-tmp 7 | read-only /tmp/.X11-unix 8 | private-dev 9 | nodvd 10 | nosound 11 | notv 12 | nou2f 13 | novideo 14 | no3d 15 | disable-mnt 16 | private-opt emp 17 | private-srv emp 18 | 19 | shell none 20 | seccomp 21 | seccomp.block-secondary 22 | noroot 23 | caps.drop all 24 | apparmor 25 | nonewprivs 26 | ipc-namespace 27 | machine-id 28 | nodbus 29 | nogroups 30 | net none 31 | netfilter 32 | memory-deny-write-execute 33 | 34 | noexec ${HOME} 35 | noexec /tmp 36 | noexec ${RUNUSER} 37 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/profile-request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Profile request 3 | about: Suggest new profiles 4 | 5 | --- 6 | 7 | **Name of the program** 8 | Name of the program 9 | 10 | **Website** 11 | Website for the program (if the program is in most major repositories, you can optionally skip this). 12 | 13 | **Already available in stock firejail?** 14 | Is the requested profile already available in regular firejail (that is, are you requesting an enhanced profile or a completely new profile?)? 15 | 16 | **Additional info** 17 | Anything else you think I should know before working on this profile. 18 | -------------------------------------------------------------------------------- /tor-browser-en.profile: -------------------------------------------------------------------------------- 1 | # Originally contributed by robotanarchy 2 | # Rewritten by chiraag-nataraj 3 | 4 | ignore net 5 | ignore memory-deny-write-execute 6 | ignore noexec ${HOME} 7 | 8 | include ${HOME}/.config/firejail/common.inc 9 | 10 | whitelist ${DOWNLOADS} 11 | whitelist ${HOME}/.tor-browser-en 12 | whitelist ${HOME}/.config/torbrowser 13 | whitelist ${HOME}/.cache/torbrowser 14 | whitelist ${HOME}/.local/share/torbrowser 15 | 16 | private-bin bash,grep,sed,tail,tor-browser-en,env,id,readlink,dirname,test,mkdir,ln,sed,cp,rm,getconf,file,expr 17 | private-etc X11,pulse,ssl,resolv.conf,fonts 18 | -------------------------------------------------------------------------------- /kdenlive.profile: -------------------------------------------------------------------------------- 1 | ignore memory-deny-write-execute 2 | ignore nodbus 3 | 4 | include ${HOME}/.config/firejail/common.inc 5 | 6 | mkdir ${HOME}/kdenlive 7 | 8 | # Apparently these break kdenlive for some people - they work for me though? 9 | whitelist ${HOME}/.config/ 10 | whitelist ${HOME}/kdenlive 11 | whitelist ${DOWNLOADS} 12 | whitelist ${VIDEOS} 13 | 14 | private-bin kdenlive,kdenlive_render,dbus-launch,melt,ffmpeg,ffplay,ffprobe,dvdauthor,genisoimage,vlc,xine,kdeinit5,kshell5,kdeinit5_shutdown,kdeinit5_wrapper,kdeinit4,kshell4,kdeinit4_shutdown,kdeinit4_wrapper 15 | private-etc fonts,alternatives,X11,pulse,passwd 16 | -------------------------------------------------------------------------------- /torbrowser-launcher.profile: -------------------------------------------------------------------------------- 1 | ignore net 2 | ignore memory-deny-write-execute 3 | ignore noexec ${HOME} 4 | 5 | include ${HOME}/.config/firejail/common.inc 6 | 7 | mkdir ${HOME}/.local/share/torbrowser 8 | mkdir ${HOME}/.config/torbrowser 9 | 10 | whitelist ${DOWNLOADS} 11 | whitelist ${HOME}/.local/share/torbrowser 12 | whitelist ${HOME}/.config/torbrowser 13 | whitelist ${HOME}/.cache/torbrowser 14 | 15 | private-bin bash,grep,sed,tail,torbrowser-launcher,python2,env,gpg,id,readlink,dirname,test,mkdir,ln,sed,cp,rm,zenity,kdialog,xmessage,gxmessage,getconf,file,expr 16 | private-etc X11,alternatives,pulse,resolv.conf,fonts,ssl 17 | -------------------------------------------------------------------------------- /darktable.profile: -------------------------------------------------------------------------------- 1 | ignore no3d 2 | 3 | include ${HOME}/.config/firejail/common.inc 4 | 5 | mkdir ${HOME}/.config/darktable 6 | mkdir ${HOME}/.cache/darktable 7 | 8 | whitelist ${DOWNLOADS} 9 | whitelist ${PICTURES} 10 | whitelist ${HOME}/.config/darktable 11 | whitelist ${HOME}/.cache/darktable 12 | 13 | private-bin darktable 14 | private-etc fonts,X11,alternatives,OpenCL 15 | 16 | whitelist /usr/share/darktable 17 | whitelist /usr/share/fonts 18 | whitelist /usr/share/icons 19 | whitelist /usr/share/themes 20 | whitelist /usr/share/mime 21 | whitelist /usr/share/lensfun 22 | whitelist /usr/share/locale 23 | whitelist /usr/share/glib-2.0 24 | -------------------------------------------------------------------------------- /signal-desktop.profile: -------------------------------------------------------------------------------- 1 | ignore private-opt emp 2 | ignore nodbus 3 | ignore nosound 4 | ignore no3d 5 | ignore net 6 | ignore memory-deny-write-execute 7 | ignore noexec /tmp 8 | 9 | include ${HOME}/.config/firejail/common.inc 10 | include ${HOME}/.config/firejail/electron-common.inc 11 | 12 | mkdir ${HOME}/.config/Signal 13 | 14 | whitelist ${HOME}/.config/Signal 15 | whitelist ${DOWNLOADS} 16 | whitelist ${HOME}/.local/share/themes 17 | whitelist ${HOME}/.config/gtk-2.0 18 | whitelist ${HOME}/.config/gtk-3.0 19 | 20 | private-bin signal-desktop 21 | # private-etc hosts,fonts,xdg,resolv.conf,X11,pulse,alternatives,localtime,nsswitch.conf 22 | private-opt Signal 23 | -------------------------------------------------------------------------------- /rtv.profile: -------------------------------------------------------------------------------- 1 | ignore net none 2 | ignore memory-deny-write-execute 3 | ignore private-tmp 4 | ignore noexec ${HOME} 5 | 6 | include ${HOME}/.config/firejail/common.inc 7 | 8 | whitelist ${HOME}/.config/rtv 9 | whitelist ${HOME}/.local/share/rtv 10 | whitelist ${HOME}/.local/bin/rtv_em 11 | whitelist ${HOME}/.local/bin/emacshelper 12 | 13 | whitelist /tmp/user/1000/emacs1000/ 14 | 15 | private-bin rtv,python3,xdg-settings,sh,less,which,xclip,emacsclient,env,bash,cp,basename,mv 16 | private-lib python3,python3.7,libncursesw.so.6,terminfo,libgcc_s.so.1,libssl.so.1.1,x86_64-linux-gnu/sasl2,nss,libcrypt-2.27.so,libcrypto.so.1.1 17 | 18 | env RTV_EDITOR='/home/chiraag/.local/bin/rtv_em' 19 | -------------------------------------------------------------------------------- /gimp.profile: -------------------------------------------------------------------------------- 1 | include ${HOME}/.config/firejail/common.inc 2 | 3 | mkdir ${HOME}/.config/GIMP 4 | 5 | whitelist ${HOME}/.config/GIMP 6 | whitelist ${HOME}/.gtkrc-2.0 7 | whitelist ${HOME}/.themes 8 | whitelist ${HOME}/.fonts 9 | 10 | whitelist ${DOWNLOADS} 11 | whitelist ${PICTURES} 12 | 13 | private-bin gimp,gimp-2.10,gimp-console,gimp-console-2.10,python2.7 14 | private-etc gimp,fonts,alternatives 15 | private-lib babl-0.1,gegl-0.4,libjson-glib-1.0.so.0,libwebp.so.6,libavformat.so.57,libavformat.so.58,libumfpack.so.5,libSDL-1.2.so.0,libraw.so.19,libIlmImf-2_2.so.23,libavformat.so.57,libswscale.so.4,libswscale.so.5,libgegl-sc-0.4.so,libgudev-1.0.so.0,libgimp-2.0.so.0,libgimpui-2.0.so.0 16 | -------------------------------------------------------------------------------- /google-earth-pro: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | GEDIR=/opt/google/earth/pro 4 | GENLIB=~/scripts/gen_libraries 5 | 6 | . $GENLIB 7 | 8 | LIBS=`compile_list ${GEDIR} libproxy,libgnome-keyring.so.0,libedit.so.2,libLLVM-6.0.so.1,libelf.so.1,libdrm_amdgpu.so.1,libdrm_radeon.so.1,libdrm_nouveau.so.2,libsensors.so.4,dri,libXxf86vm.so.1,libxcb-dri2.so.0,libxcb-glx.so.0,libXdamage.so.1,libxshmfence.so.1,libxcb-sync.so.1,libxcb-present.so.0,libxcb-xfixes.so.0,libxcb-dri3.so.0,libncurses.so.6,libtinfo.so.6,libGLX_mesa.so.0,libglapi.so.0,libnss_dns.so,libnss_files.so,libnss_nis.so,libnss_compat.so,libnss_resolve.so,libXcursor.so.1,nss` 9 | 10 | firejail --private-lib="$LIBS" /usr/bin/google-earth-pro; 11 | rm ~/.googleearth/instance-running-lock 12 | -------------------------------------------------------------------------------- /virtualbox.profile: -------------------------------------------------------------------------------- 1 | ignore seccomp 2 | ignore caps.drop 3 | ignore apparmor 4 | ignore noroot 5 | ignore nonewprivs 6 | ignore private-dev 7 | ignore net 8 | ignore memory-deny-write-execute 9 | 10 | include ${HOME}/.config/firejail/common.inc 11 | 12 | mkdir ${HOME}/VirtualBox_VMs 13 | mkdir ${HOME}/.config/VirtualBox 14 | mkfile ${HOME}/.config/Trolltech.conf 15 | 16 | whitelist ${DOWNLOADS} 17 | whitelist ${HOME}/.local/share/vms/vbox 18 | whitelist ${HOME}/.config/VirtualBox 19 | whitelist ${HOME}/.gtkrc-2.0 20 | whitelist ${HOME}/.gtkrc.mine 21 | whitelist ${HOME}/.config/Trolltech.conf 22 | 23 | whitelist /dev/vboxdrv 24 | whitelist /dev/vboxdrvu 25 | whitelist /dev/vboxnetctl 26 | whitelist /dev/null 27 | whitelist /dev/dri 28 | -------------------------------------------------------------------------------- /emacs.profile: -------------------------------------------------------------------------------- 1 | ignore private-tmp 2 | ignore noexec ${HOME} 3 | 4 | include ${HOME}/.config/firejail/common.inc 5 | 6 | # private-bin emacs,emacs-gtk,gpg,gpg-agent,pinentry,pinentry-gtk2,epdfinfo,sh,7z,7za,gzip,tar,xz,ls,cp,ln,rm,df,bash,ispell,xelatex,tex,latex,pdflatex,xdvipdfmx,w3m,gnuplot,asy,git 7 | # private-etc emacs,alternatives,passwd,localtime,fonts 8 | 9 | whitelist /tmp/user/1000/ 10 | whitelist /tmp/.X11-unix/ 11 | 12 | mkdir ${HOME}/.config/emacs 13 | 14 | whitelist ${DOWNLOADS} 15 | whitelist ${DOCUMENTS} 16 | whitelist ${HOME}/.emacs.d 17 | whitelist ${HOME}/.config/emacs 18 | whitelist ${HOME}/.config/gtk-3.0 19 | whitelist ${HOME}/.local/share/fonts 20 | whitelist ${HOME}/.local/share/texmf 21 | 22 | keep-var-tmp 23 | writable-var 24 | writable-run-user 25 | keep-dev-shm 26 | 27 | -------------------------------------------------------------------------------- /libreoffice.profile: -------------------------------------------------------------------------------- 1 | ignore private-tmp 2 | ignore memory-deny-write-execute 3 | 4 | include ${HOME}/.config/firejail/common.inc 5 | 6 | mkdir ${HOME}/.config/libreoffice 7 | 8 | whitelist ${DOWNLOADS} 9 | whitelist ${DOCUMENTS} 10 | whitelist ${HOME}/.config/libreoffice 11 | whitelist ${HOME}/.config/gtk-3.0 12 | whitelist ${HOME}/.gtkrc-2.0 13 | whitelist ${HOME}/.gtkrc.mine 14 | whitelist ${HOME}/.themes 15 | 16 | private-bin sh,dash,libreoffice,dirname,grep,uname,ls,sed,pwd,basename,dbus-launch,dbus-send,fcitx-dbus-watcher,fcitx-remote 17 | private-etc libreoffice,fonts,passwd,alternatives,X11 18 | 19 | whitelist /usr/share/libreoffice 20 | whitelist /usr/share/icons 21 | whitelist /usr/share/themes 22 | whitelist /usr/share/fonts 23 | 24 | whitelist /tmp/.X11-unix 25 | # Enable document recovery 26 | whitelist /tmp/user/1000 27 | -------------------------------------------------------------------------------- /private-profiles/firefox.private: -------------------------------------------------------------------------------- 1 | libdir=/usr/lib/firefox 2 | extralibs="nss,pulseaudio,nvidia,python3.6,gconv,libpulse.so.0,libFLAC.so.8,libogg.so.0,libopus.so.0,libvorbis.so.0,libvorbisenc.so.2,libavcodec.so.57,libavutil.so.55,libcrystalhd.so.3,libdrm.so.2,libGL.so.1,libnss_resolve.so.2,libnss_systemd.so.2" 3 | genlib=$(systemd-path user-library-private)/personal/gen_libraries 4 | privlib=1 5 | use_systemd=1 6 | use_firejail=1 7 | profiledir=~/.config/mozilla/firefox/ 8 | tocopy=( extensions browser-extension-data extension-preferences.json extension-settings.json extensions.json prefs.js gmp gmp-widevinecdm gmp-gmpopenh264 search.json.mozlz4 pluginreg.dat ) 9 | progname="firefox" 10 | progargs=( --new-instance --profile '${profile}' '$*' ) 11 | rprogargs=( --profile '${profile}' '$*' ) 12 | envvars=( "MOZ_WEBRENDER=1" "MOZ_ACCELERATED=1" ) 13 | -------------------------------------------------------------------------------- /hugin.profile: -------------------------------------------------------------------------------- 1 | ignore memory-deny-write-execute 2 | 3 | include ${HOME}/.config/firejail/common.inc 4 | 5 | mkfile ${HOME}/.hugin 6 | 7 | # Stupid errors about being unable to update configuration file. 8 | # I personally deal with this by running it once without a sandbox 9 | # and setting my options then. 10 | 11 | whitelist ${HOME}/.gtkrc-2.0 12 | whitelist ${HOME}/.gtkrc.mine 13 | whitelist ${HOME}/.themes 14 | whitelist ${HOME}/.hugin 15 | whitelist ${PICTURES} 16 | whitelist ${DOWNLOADS} 17 | 18 | private-bin PTBatcherGUI,calibrate_lens_gui,hugin,hugin_stitch_project,align_image_stack,autooptimiser,celeste_standalone,checkpto,cpclean,cpfind,deghosting_mask,fulla,geocpset,hugin_executor,hugin_hdrmerge,hugin_lensdb,icpfind,linefind,nona,pano_modify,pano_trafo,pto_gen,pto_lensstack,pto_mask,pto_merge,pto_move,pto_template,pto_var,tca_correct,verdandi,vig_optimize,enblend 19 | private-etc fonts,alternatives 20 | -------------------------------------------------------------------------------- /Viber.profile: -------------------------------------------------------------------------------- 1 | ignore private-opt 2 | ignore nodbus 3 | ignore nosound 4 | ignore novideo 5 | ignore no3d 6 | ignore net 7 | ignore machine-id 8 | ignore memory-deny-write-execute 9 | 10 | include ${HOME}/.config/firejail/common.inc 11 | 12 | mkdir ${HOME}/.config/ViberPC 13 | 14 | whitelist ${HOME}/.ViberPC 15 | whitelist ${HOME}/.config/ViberPC 16 | whitelist ${DOWNLOADS} 17 | 18 | private-bin sh,dig,awk,xdg-mime,cut,touch,mv 19 | private-etc hosts,fonts,mailcap,resolv.conf,X11,pulse,alternatives,localtime,nsswitch.conf,ssl 20 | whitelist /opt/viber 21 | 22 | # whitelist /dev/dri 23 | # whitelist /dev/full 24 | # whitelist /dev/null 25 | # whitelist /dev/nvidia0 26 | # whitelist /dev/nvidiactl 27 | # whitelist /dev/nvidia-modeset 28 | # whitelist /dev/nvidia-uvm 29 | # whitelist /dev/nvidia-uvm-tools 30 | # whitelist /dev/ptmx 31 | # whitelist /dev/pts 32 | # whitelist /dev/random 33 | # whitelist /dev/shm 34 | # whitelist /dev/snd 35 | # whitelist /dev/tty 36 | # whitelist /dev/urandom 37 | # whitelist /dev/video0 38 | # whitelist /dev/zero 39 | 40 | env QML_DISABLE_DISK_CACHE=1 41 | env QT_AUTO_SCREEN_SCALE_FACTOR=0.5 42 | -------------------------------------------------------------------------------- /chromium.profile: -------------------------------------------------------------------------------- 1 | ignore noroot 2 | ignore seccomp 3 | ignore seccomp.block-secondary 4 | ignore nonewprivs 5 | ignore caps.drop 6 | ignore net 7 | ignore memory-deny-write-execute 8 | ignore private-dev 9 | ignore nou2f 10 | 11 | include ${HOME}/.config/firejail/common.inc 12 | 13 | mkdir ${HOME}/.config/chromium 14 | 15 | whitelist ${HOME}/.config/chromium 16 | whitelist ${HOME}/.themes 17 | whitelist ${HOME}/.config/gtk-3.0 18 | 19 | whitelist ${DOWNLOADS} 20 | 21 | # private-bin seems to only work with firejail /usr/lib/chromium/chromium on 22 | # Debian... Kept it enabled since other platforms may be different 23 | private-bin chromium,bash,readlink,dirname,cat,uname,mktemp,sed,man,grep,expr 24 | private-etc fonts,alternatives,X11,pulse,resolv.conf,localtime,chromium.d 25 | 26 | # whitelist /dev/dri 27 | # whitelist /dev/full 28 | # whitelist /dev/null 29 | # whitelist /dev/ptmx 30 | # whitelist /dev/pts 31 | # whitelist /dev/random 32 | # whitelist /dev/shm 33 | # whitelist /dev/snd 34 | # whitelist /dev/tty 35 | # whitelist /dev/urandom 36 | # whitelist /dev/video0 37 | # whitelist /dev/zero 38 | 39 | caps.keep sys_chroot,sys_admin 40 | blacklist /usr/share/fonts/truetype/unifont 41 | -------------------------------------------------------------------------------- /firefox.profile: -------------------------------------------------------------------------------- 1 | ignore private-dev 2 | ignore nou2f 3 | ignore net none 4 | ignore nodbus 5 | ignore nosound 6 | ignore novideo 7 | ignore no3d 8 | ignore memory-deny-write-execute 9 | 10 | include ${HOME}/.config/firejail/common.inc 11 | 12 | mkdir ${HOME}/.config/mozilla/firefox 13 | 14 | # whitelist ${HOME}/.mozilla 15 | whitelist ${HOME}/.config/mozilla/firefox 16 | whitelist ${DOWNLOADS} 17 | whitelist ${HOME}/.pulse 18 | whitelist ${HOME}/.cache/mozilla/firefox 19 | whitelist ${HOME}/.config/pulse 20 | whitelist ${HOME}/.config/gtk-3.0 21 | whitelist ${HOME}/.gtkrc-2.0 22 | whitelist ${HOME}/.gtkrc.mine 23 | whitelist ${HOME}/.local/share/themes 24 | 25 | private-bin firefox,firefox-esr,which,sh,env,bash 26 | private-etc hosts,passwd,mime.types,fonts,mailcap,firefox,xdg,gtk-3.0,X11,pulse,alternatives,localtime,nsswitch.conf,resolv.conf 27 | 28 | # Disabled for now because it crashes certain sites 29 | 30 | # whitelist /usr/share/firefox 31 | # whitelist /usr/share/mozilla 32 | # whitelist /usr/share/fonts 33 | # whitelist /usr/share/icons 34 | # whitelist /usr/share/themes 35 | # whitelist /usr/share/mime 36 | # whitelist /usr/share/zoneinfo 37 | # whitelist /usr/share/locale 38 | # whitelist /usr/share/glib-2.0 39 | blacklist /usr/share/fonts/truetype/unifont 40 | -------------------------------------------------------------------------------- /gen_libraries: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Get dependencies of a single ELF executable 4 | 5 | get_deps() 6 | { 7 | ldd "$1" | grep -v "/lib64" | grep -v 'not a dynamic' | grep -v "linux-vdso" | grep -v '/usr/lib/.*/.*/.*.so' | grep -v "not found" | grep '^ ' | awk -F '=>' '{ print $1; };' | sed 's/(.*//g' | sort | uniq 8 | } 9 | 10 | # Get folders in output of ldd 11 | 12 | get_folders() 13 | { 14 | ldd "$1" | grep '/usr/lib/.*/.*/.*.so' | grep -o '/.*/' | sed 's/\/usr\/lib\///g' | sed 's/\/$//g' | sort | uniq 15 | } 16 | 17 | compile_list() 18 | { 19 | # If $PRIMARY is a folder, this will find all files and run ldd on them (which will fail for files which aren't ELF executables) 20 | PRIMARY="$1" 21 | # $SECONDARY is an explicit list of additional libraries the program needs (beyond the ones that show up in ldd) 22 | SECONDARY="$2" 23 | mapfile -t LIBS < <(find "$PRIMARY" -type f -print0 | while IFS= read -r -d '' file; do get_deps "$file"; done | sort | uniq | tr -d '^\t' | tr -d ' $') 24 | # LIBS=($(find "$PRIMARY" -type f -print0 | while IFS= read -r -d '' file; do get_deps "$file"; done | sort | uniq)) 25 | mapfile -t LIBFLDRS < <(find "$PRIMARY" -type f -print0 | while IFS= read -r -d '' file; do get_folders "$file"; done | sort | uniq | tr -d '^\t' | tr -d ' $') 26 | # LIBFLDRS=($(find "$PRIMARY" -type f -print0 | while IFS= read -r -d '' file; do get_folders "$file"; done | sort | uniq)) 27 | mapfile -d ',' -t LIBS2 < <(echo -n "$SECONDARY") 28 | # LIBS2=($(echo "$SECONDARY" | tr ',' ' ')) 29 | echo "${LIBS[@]}" "${LIBFLDRS[@]}" "${LIBS2[@]}" | tr ' ' ',' 30 | } 31 | -------------------------------------------------------------------------------- /mutt.profile: -------------------------------------------------------------------------------- 1 | ignore private-tmp 2 | ignore private-dev 3 | ignore net none 4 | 5 | include ${HOME}/.config/firejail/common.inc 6 | 7 | mkdir ${HOME}/.config/mutt 8 | mkdir ${HOME}/.config/mutt/muttrc 9 | mkdir ${HOME}/.config/mutt/mutt_cache 10 | mkdir ${HOME}/.config/mutt/signatures 11 | 12 | whitelist ${HOME}/.config/mutt 13 | whitelist ${HOME}/.config/mailcap 14 | whitelist ${HOME}/Mail 15 | whitelist ${HOME}/.gnupg 16 | whitelist ${HOME}/.config/gnupg 17 | whitelist ${HOME}/.config/rolo 18 | whitelist ${DOWNLOADS} 19 | 20 | whitelist /tmp/user/1000/emacs1000/ 21 | whitelist /tmp/user/1000/mutt1000/ 22 | 23 | # Enhance security 24 | 25 | private-bin sh,dash,mutt,mutt_dotlock,bash,emacsclient,emacsclient.emacs25,elinks,gpg,gpg-agent,gpgsm,pinentry,dig,awk,pinentry-gtk-2,mutt_vc_query 26 | # private-lib x86_64-linux-gnu/sasl2,nss,libdb-5.3.so,libcrypt-2.27.so,libcrypto.so.1.1,gconv,libapparmor.so.1,libtinfo.so.6,libtic.so.6,terminfo 27 | 28 | whitelist /usr/share/locale 29 | whitelist /usr/share/zoneinfo 30 | 31 | whitelist /dev/stdout 32 | whitelist /dev/stdin 33 | whitelist /dev/stderr 34 | whitelist /dev/urandom 35 | whitelist /dev/random 36 | whitelist /dev/null 37 | whitelist /dev/tty 38 | 39 | private-etc Muttrc.d,Muttrc,alternatives,resolv.conf,ssl,mime.types,localtime 40 | 41 | seccomp.keep open,access,prctl,fstat,mmap,write,read,close,munmap,chown,unshare,fcntl,execve,brk,mprotect,arch_prctl,getpid,getuid,getgid,geteuid,getegid,rt_sigprocmask,rt_sigaction,uname,stat,getppid,getpgrp,getrlimit,getpeername,set_tid_address,set_robust_list,futex,getrusage,umask,ioctl,socket,connect,lseek,getsid,pipe,clone,dup2,wait4,openat,rt_sigreturn,getdents,exit_group,faccessat,lstat,pread64,pwrite64,ftruncate,select,unlink,mkdir,link,rmdir,alarm,readlink,sendto,fdatasync,recvfrom,chmod,getcwd,setrlimit,utime,mlock,clock_gettime,setresgid,chdir,fsync,nanosleep,poll,sendmmsg,bind,getsockname,recvmsg,writev,mremap,rename,truncate,sched_yield,sysinfo,kill,sendmsg,setresuid,setsid,listen,pselect6,accept,getsockopt,tgkill,madvise,exit,statfs,getrandom,fchmod,fchown,gettid,sigaltstack,epoll_create,getgroups,epoll_ctl,rt_sigsuspend,setsockopt,epoll_wait,inotify_init,inotify_add_watch,prlimit64,getresuid,getresgid,dup,eventfd2,munlock,fstatfs,fadvise64,shmget,shmat,shmctl,shmdt,symlink,restart_syscall,getdents64,pipe2,readlinkat,timerfd_create 42 | 43 | writable-run-user 44 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Contributor Covenant Code of Conduct 2 | 3 | ## Our Pledge 4 | 5 | In the interest of fostering an open and welcoming environment, we as 6 | contributors and maintainers pledge to making participation in our project and 7 | our community a harassment-free experience for everyone, regardless of age, body 8 | size, disability, ethnicity, sex characteristics, gender identity and expression, 9 | level of experience, education, socio-economic status, nationality, personal 10 | appearance, race, religion, or sexual identity and orientation. 11 | 12 | ## Our Standards 13 | 14 | Examples of behavior that contributes to creating a positive environment 15 | include: 16 | 17 | * Using welcoming and inclusive language 18 | * Being respectful of differing viewpoints and experiences 19 | * Gracefully accepting constructive criticism 20 | * Focusing on what is best for the community 21 | * Showing empathy towards other community members 22 | 23 | Examples of unacceptable behavior by participants include: 24 | 25 | * The use of sexualized language or imagery and unwelcome sexual attention or 26 | advances 27 | * Trolling, insulting/derogatory comments, and personal or political attacks 28 | * Public or private harassment 29 | * Publishing others' private information, such as a physical or electronic 30 | address, without explicit permission 31 | * Other conduct which could reasonably be considered inappropriate in a 32 | professional setting 33 | 34 | ## Our Responsibilities 35 | 36 | Project maintainers are responsible for clarifying the standards of acceptable 37 | behavior and are expected to take appropriate and fair corrective action in 38 | response to any instances of unacceptable behavior. 39 | 40 | Project maintainers have the right and responsibility to remove, edit, or 41 | reject comments, commits, code, wiki edits, issues, and other contributions 42 | that are not aligned to this Code of Conduct, or to ban temporarily or 43 | permanently any contributor for other behaviors that they deem inappropriate, 44 | threatening, offensive, or harmful. 45 | 46 | ## Scope 47 | 48 | This Code of Conduct applies both within project spaces and in public spaces 49 | when an individual is representing the project or its community. Examples of 50 | representing a project or community include using an official project e-mail 51 | address, posting via an official social media account, or acting as an appointed 52 | representative at an online or offline event. Representation of a project may be 53 | further defined and clarified by project maintainers. 54 | 55 | ## Enforcement 56 | 57 | Instances of abusive, harassing, or otherwise unacceptable behavior may be 58 | reported by contacting the project team at chiraag.nataraj@gmail.com. All 59 | complaints will be reviewed and investigated and will result in a response that 60 | is deemed necessary and appropriate to the circumstances. The project team is 61 | obligated to maintain confidentiality with regard to the reporter of an incident. 62 | Further details of specific enforcement policies may be posted separately. 63 | 64 | Project maintainers who do not follow or enforce the Code of Conduct in good 65 | faith may face temporary or permanent repercussions as determined by other 66 | members of the project's leadership. 67 | 68 | ## Attribution 69 | 70 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, 71 | available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html 72 | 73 | [homepage]: https://www.contributor-covenant.org 74 | 75 | For answers to common questions about this code of conduct, see 76 | https://www.contributor-covenant.org/faq 77 | -------------------------------------------------------------------------------- /private-profile.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | private=0 4 | privlib=0 5 | use_systemd=0 6 | use_firejail=0 7 | name="" 8 | copy=0 9 | netns="" 10 | rmprof=0 11 | to_copy=() 12 | evvars=() 13 | 14 | exitm() 15 | { 16 | echo "$1" 17 | rmprof 18 | exit 1 19 | } 20 | 21 | rmprof() 22 | { 23 | if [[ "$rmprof" -eq 1 && -n "${profile+x}" ]] 24 | then 25 | rm -r "${profile}" 26 | fi 27 | } 28 | 29 | set -eu 30 | 31 | while getopts "p:tcn:" arg 32 | do 33 | case ${arg} in 34 | p) 35 | profile="${OPTARG}" 36 | name=$(basename "$profile") 37 | ;; 38 | t) 39 | private=1 40 | ;; 41 | c) 42 | copy=1 43 | ;; 44 | n) 45 | netns="${OPTARG}" 46 | ;; 47 | *) 48 | exit 1 49 | ;; 50 | esac 51 | done 52 | 53 | shift $((OPTIND-1)) 54 | 55 | varfile="$1" 56 | . "$varfile" 57 | 58 | shift 59 | 60 | if [[ -z "${progname:+x}" || -z "${profiledir:+x}" ]] 61 | then 62 | exitm '$progname and $profiledir must be specified and cannot be empty strings!' 63 | fi 64 | 65 | vpncmd() 66 | { 67 | systemctl -q is-active openvpn@us3-TCP-chaanakya && netns="" || netns="$netns" 68 | } 69 | 70 | firejail="firejail" 71 | fjargs=( "--nowhitelist=${profiledir}" ) 72 | 73 | # private-lib generation if enabled 74 | 75 | if [ "$privlib" -eq 1 ] 76 | then 77 | if [[ -z "${genlib+x}" || -z "${libdir+x}" ]] 78 | then 79 | exitm '$genlib and $libdir must all be set for $privlib!' 80 | fi 81 | . "$genlib" 82 | libs=$(compile_list "${libdir}" "${extralibs:-}") 83 | fjargs+=( "--private-lib=$libs" ) 84 | fi 85 | 86 | # Deal with creating a private profile if requested 87 | 88 | if [ "$private" -eq 1 ] 89 | then 90 | nprofile=$(mktemp -d -p "${profiledir}") 91 | name=$(basename "$nprofile") 92 | if [ "${destdir:=}" != "" ] 93 | then 94 | mkdir "${nprofile}"/"${destdir}" 95 | fi 96 | rmprof=1 97 | if [ "$copy" -eq 1 ] 98 | then 99 | if [[ -z "${profile+x}" ]] 100 | then 101 | exitm 'A profile must be specified on the command-line if copying is enabled!' 102 | fi 103 | for i in "${tocopy[@]}" 104 | do 105 | cp -R "${profile}"/"${i}" "${nprofile}"/"${destdir}"/"${i}" 106 | done 107 | fi 108 | profile="$nprofile" 109 | fi 110 | 111 | if [[ -z "${profile+x}" ]] 112 | then 113 | exitm 'Either $profile must be specified on the command-line or a temporary profile must be requested!' 114 | fi 115 | 116 | sprogname=$(basename "${progname}") 117 | 118 | fjargs+=( "--whitelist=${profile}" "--name=${sprogname}-${name}" ) 119 | 120 | vpncmd 121 | 122 | if [ "$netns" != "" ] 123 | then 124 | fjargs+=( "--net=${netns}" ) 125 | fi 126 | 127 | for i in "${envvars[@]}" 128 | do 129 | fjargs+=( "--env=${i}" ) 130 | done 131 | 132 | progargs="${progargs:-}" 133 | rprogargs="${rprogargs:-}" 134 | 135 | cmd="${progname} $(eval echo "${progargs[@]}")" 136 | rcmd="${progname} $(eval echo "${rprogargs[@]}")" 137 | 138 | fjcmd="${firejail} ${fjargs[*]} --" 139 | systemdcmd="systemd-run --wait --user --unit=${sprogname}-${name}.service --description=${sprogname}-${name}" 140 | 141 | if [ "$use_firejail" -eq 1 ] 142 | then 143 | cmd="${fjcmd} ${cmd}" 144 | rcmd="${fjcmd} ${rcmd}" 145 | else 146 | cmd="/usr/bin/env ${envvars[*]} ${cmd}" 147 | rcmd="/usr/bin/env ${envvars[*]} ${rcmd}" 148 | fi 149 | 150 | if [ "$use_systemd" -eq 1 ] 151 | then 152 | running=$(systemctl --user --quiet is-active "${sprogname}-${name}".service; echo $?) 153 | cmd="${systemdcmd} ${cmd}" 154 | else 155 | running=$(pgrep -f "${progname} $(eval echo "${progargs[@]}")" > /dev/null; echo $?) 156 | fi 157 | 158 | if [ "$running" -eq 0 ] 159 | then 160 | $rcmd 161 | else 162 | $cmd 163 | fi 164 | 165 | # Remove profile if asked 166 | 167 | rmprof 168 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # firejail-profiles 2 | Tight Firejail profiles 3 | 4 | This is a collection of tighter firejail (https://github.com/netblue30/firejail) profiles for certain applications. These may or may not work on your computer since some of them use seccomp filters, which may depend on architecture and OS. These were designed on Debian sid/experimental x86_64. 5 | 6 | I am slowly switching the profiles to use a `common.inc` file so that maintenance becomes easier and I cut down on duplicate stuff. 7 | 8 | Just a note: I would highly recommend using `systemd` to sandbox system processes. I personally do not use `firejail` to sandbox system processes since I'm using `systemd` to start the process anyway (so it's easier to use the sandboxing capabilities of `systemd` itself). 9 | 10 | ## Utilities 11 | 12 | Currently there is one utility file in this repository: `gen_libraries`. `gen_libraries` is a collection of `bash` functions which helps dynamically resolve the libraries needed by a program in a more powerful way than the built-in one shipped with `firejail`. Most pertinently, it allows passing a folder as the first argument, in which case it will use `find` to locate all files within the folder and run `ldd` on each of them. This makes it easier, say, to compile a list for `firefox`. 13 | 14 | An example script, `private-profile.sh`, which makes use of `gen_libraries` is provided in this repository as well. `private-profile.sh` makes it easy to generate a temporary profile for an application (usually a browser) and run the application with that profile. There are five possible arguments to the script. Positional arguments come at the end. The arguments are as follows: 15 | 16 | * The only positional argument is the path to a `.private` file. `.private` files define several application-specific variables which are used later in the script. More on this below. 17 | * `-p` is the path to an existing profile. This will be used in certain circumstances. 18 | * `-t` toggles whether the script should create a temporary profile. 19 | * `-c` toggles whether the script should copy certain files or folders from the existing profile to the temporary profile. 20 | * `-n` enables a network namespace on the given interface. 21 | 22 | A `.private` file defines several application-specific variables. The following variables are recognized: 23 | 24 | * `$privlib` enables the dynamic generation of a `private-lib` filter. If enabled, the following variables should be defined: 25 | * `$genlib` is the path to the `gen_libraries` path. 26 | * `$libdir` is the path to the application's lib folder. 27 | * `$extralibs` [optional] is the list of hard-coded libraries which are not automatically detected. Can be left unset if no hard-coded libraries are required. 28 | * `$use_systemd` enables `systemd` integration. 29 | * `$use_firejail` enables `firejail` integration. 30 | * `$profiledir` is the path to the directory where profiles are stored. 31 | * `$tocopy` is the list of files to copy to the temporary profile. 32 | * `$destdir` [optional] is the directory to generate inside the temporary profile directory. If set to `""` or unset, then the temporary directory itself is treated as the profile. 33 | * `$progname` is the command to run. 34 | * `$progargs` is the array of arguments to pass when the program is not already running. 35 | * `$rprogargs` is the array of arguments to pass when the program is already running. 36 | * `$envvars` [optional] is a bash array used for setting any environment variables (now uses `firejail`'s environment handling!). If set to an empty array (`()`) or unset, no extra environment variables are passed along. 37 | 38 | There are two example `.private` files in this repo, `private-profiles/firefox.private` and `private-profiles/chromium.private`. 39 | 40 | Another example script, `dropbox`, is also provided which uses `gen_libraries` to dynamically generate the library dependencies needed to get `dropbox` working with a `private-lib` filter. 41 | 42 | Yet another example script, `google-earth-pro`, is provided which uses `gen_libraries` to dynamically generate the library dependencies needed to get `google-earth-pro` working with a `private-lib` filter. Also note that due to some issues with `google-earth-pro`, the script manually removes the lock file generated by Google Earth after quitting. 43 | 44 | ## Profiles 45 | 46 | List of currently-supported programs: 47 | * Ardour 5 48 | * Akregator 49 | * aMule 50 | * Blender 51 | * Brackets 52 | * BRL-CAD (experimental) - use the generator script `brlcad-gen.sh` to generate aliased profiles and setup the `private-bin` predicate. 53 | * calcurse 54 | * Calligra 55 | * Darktable 56 | * Dia 57 | * Discord 58 | * Dropbox 59 | * ELinks 60 | * Feh 61 | * Fetchmail 62 | * Firefox (regular and ESR) 63 | * Flameshot 64 | * Flowblade 65 | * Fontforge 66 | * FreeCAD 67 | * Geany 68 | * Gerbera 69 | * GIMP 70 | * Git 71 | * Google Chrome 72 | * Google Earth Pro 73 | * Gradio 74 | * Hugin 75 | * ImageJ 76 | * Inkscape 77 | * Kdenlive 78 | * Libreoffice 79 | * Linphone 80 | * LMMS 81 | * Luminance HDR 82 | * Macrofusion 83 | * Matlab 84 | * Messenger For Desktop 85 | * MPD 86 | * mps-youtube (mpsyt) 87 | * MPV 88 | * MuPDF 89 | * Mutt 90 | * Natron (thanks @triceratops1!) 91 | * Newsboat 92 | * OpenShot 93 | * Opera 94 | * Pidgin 95 | * ping 96 | * Qemu (VMs should be stored in `${HOME}/qemu-vms` or edit `qemu-system-common.profile` to whitelist the folder you store your VMs in) - profiles included for `qemu-system-{i386,x86_64}`, but you can create your own by building off of `qemu-system-common.profile` 97 | * QPDFView 98 | * Ricochet 99 | * rtv 100 | * Scribus 101 | * Scrot 102 | * Shotcut 103 | * Signal Desktop 104 | * Skype 105 | * Slack Desktop 106 | * SSH 107 | * Synfig Studio 108 | * Telegram Desktop 109 | * Tor Browser Bundle (through the torbrowser-launcher package on Debian) 110 | * Tor Browser profile for Arch (thanks @robotanarchy!) 111 | * Viber 112 | * Viewnior 113 | * Virtualbox 114 | * Generic terminal emulator (the profile is called x-terminal-emulator because of the /etc/alternatives system in Debian) 115 | * Xfburn 116 | * Youtube-dl 117 | * Zart (thanks @triceratops1!) 118 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 2, June 1991 3 | 4 | Copyright (C) 1989, 1991 Free Software Foundation, Inc., 5 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 6 | Everyone is permitted to copy and distribute verbatim copies 7 | of this license document, but changing it is not allowed. 8 | 9 | Preamble 10 | 11 | The licenses for most software are designed to take away your 12 | freedom to share and change it. By contrast, the GNU General Public 13 | License is intended to guarantee your freedom to share and change free 14 | software--to make sure the software is free for all its users. This 15 | General Public License applies to most of the Free Software 16 | Foundation's software and to any other program whose authors commit to 17 | using it. (Some other Free Software Foundation software is covered by 18 | the GNU Lesser General Public License instead.) You can apply it to 19 | your programs, too. 20 | 21 | When we speak of free software, we are referring to freedom, not 22 | price. Our General Public Licenses are designed to make sure that you 23 | have the freedom to distribute copies of free software (and charge for 24 | this service if you wish), that you receive source code or can get it 25 | if you want it, that you can change the software or use pieces of it 26 | in new free programs; and that you know you can do these things. 27 | 28 | To protect your rights, we need to make restrictions that forbid 29 | anyone to deny you these rights or to ask you to surrender the rights. 30 | These restrictions translate to certain responsibilities for you if you 31 | distribute copies of the software, or if you modify it. 32 | 33 | For example, if you distribute copies of such a program, whether 34 | gratis or for a fee, you must give the recipients all the rights that 35 | you have. You must make sure that they, too, receive or can get the 36 | source code. And you must show them these terms so they know their 37 | rights. 38 | 39 | We protect your rights with two steps: (1) copyright the software, and 40 | (2) offer you this license which gives you legal permission to copy, 41 | distribute and/or modify the software. 42 | 43 | Also, for each author's protection and ours, we want to make certain 44 | that everyone understands that there is no warranty for this free 45 | software. If the software is modified by someone else and passed on, we 46 | want its recipients to know that what they have is not the original, so 47 | that any problems introduced by others will not reflect on the original 48 | authors' reputations. 49 | 50 | Finally, any free program is threatened constantly by software 51 | patents. We wish to avoid the danger that redistributors of a free 52 | program will individually obtain patent licenses, in effect making the 53 | program proprietary. To prevent this, we have made it clear that any 54 | patent must be licensed for everyone's free use or not licensed at all. 55 | 56 | The precise terms and conditions for copying, distribution and 57 | modification follow. 58 | 59 | GNU GENERAL PUBLIC LICENSE 60 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 61 | 62 | 0. This License applies to any program or other work which contains 63 | a notice placed by the copyright holder saying it may be distributed 64 | under the terms of this General Public License. The "Program", below, 65 | refers to any such program or work, and a "work based on the Program" 66 | means either the Program or any derivative work under copyright law: 67 | that is to say, a work containing the Program or a portion of it, 68 | either verbatim or with modifications and/or translated into another 69 | language. (Hereinafter, translation is included without limitation in 70 | the term "modification".) Each licensee is addressed as "you". 71 | 72 | Activities other than copying, distribution and modification are not 73 | covered by this License; they are outside its scope. The act of 74 | running the Program is not restricted, and the output from the Program 75 | is covered only if its contents constitute a work based on the 76 | Program (independent of having been made by running the Program). 77 | Whether that is true depends on what the Program does. 78 | 79 | 1. You may copy and distribute verbatim copies of the Program's 80 | source code as you receive it, in any medium, provided that you 81 | conspicuously and appropriately publish on each copy an appropriate 82 | copyright notice and disclaimer of warranty; keep intact all the 83 | notices that refer to this License and to the absence of any warranty; 84 | and give any other recipients of the Program a copy of this License 85 | along with the Program. 86 | 87 | You may charge a fee for the physical act of transferring a copy, and 88 | you may at your option offer warranty protection in exchange for a fee. 89 | 90 | 2. You may modify your copy or copies of the Program or any portion 91 | of it, thus forming a work based on the Program, and copy and 92 | distribute such modifications or work under the terms of Section 1 93 | above, provided that you also meet all of these conditions: 94 | 95 | a) You must cause the modified files to carry prominent notices 96 | stating that you changed the files and the date of any change. 97 | 98 | b) You must cause any work that you distribute or publish, that in 99 | whole or in part contains or is derived from the Program or any 100 | part thereof, to be licensed as a whole at no charge to all third 101 | parties under the terms of this License. 102 | 103 | c) If the modified program normally reads commands interactively 104 | when run, you must cause it, when started running for such 105 | interactive use in the most ordinary way, to print or display an 106 | announcement including an appropriate copyright notice and a 107 | notice that there is no warranty (or else, saying that you provide 108 | a warranty) and that users may redistribute the program under 109 | these conditions, and telling the user how to view a copy of this 110 | License. (Exception: if the Program itself is interactive but 111 | does not normally print such an announcement, your work based on 112 | the Program is not required to print an announcement.) 113 | 114 | These requirements apply to the modified work as a whole. If 115 | identifiable sections of that work are not derived from the Program, 116 | and can be reasonably considered independent and separate works in 117 | themselves, then this License, and its terms, do not apply to those 118 | sections when you distribute them as separate works. But when you 119 | distribute the same sections as part of a whole which is a work based 120 | on the Program, the distribution of the whole must be on the terms of 121 | this License, whose permissions for other licensees extend to the 122 | entire whole, and thus to each and every part regardless of who wrote it. 123 | 124 | Thus, it is not the intent of this section to claim rights or contest 125 | your rights to work written entirely by you; rather, the intent is to 126 | exercise the right to control the distribution of derivative or 127 | collective works based on the Program. 128 | 129 | In addition, mere aggregation of another work not based on the Program 130 | with the Program (or with a work based on the Program) on a volume of 131 | a storage or distribution medium does not bring the other work under 132 | the scope of this License. 133 | 134 | 3. You may copy and distribute the Program (or a work based on it, 135 | under Section 2) in object code or executable form under the terms of 136 | Sections 1 and 2 above provided that you also do one of the following: 137 | 138 | a) Accompany it with the complete corresponding machine-readable 139 | source code, which must be distributed under the terms of Sections 140 | 1 and 2 above on a medium customarily used for software interchange; or, 141 | 142 | b) Accompany it with a written offer, valid for at least three 143 | years, to give any third party, for a charge no more than your 144 | cost of physically performing source distribution, a complete 145 | machine-readable copy of the corresponding source code, to be 146 | distributed under the terms of Sections 1 and 2 above on a medium 147 | customarily used for software interchange; or, 148 | 149 | c) Accompany it with the information you received as to the offer 150 | to distribute corresponding source code. (This alternative is 151 | allowed only for noncommercial distribution and only if you 152 | received the program in object code or executable form with such 153 | an offer, in accord with Subsection b above.) 154 | 155 | The source code for a work means the preferred form of the work for 156 | making modifications to it. For an executable work, complete source 157 | code means all the source code for all modules it contains, plus any 158 | associated interface definition files, plus the scripts used to 159 | control compilation and installation of the executable. However, as a 160 | special exception, the source code distributed need not include 161 | anything that is normally distributed (in either source or binary 162 | form) with the major components (compiler, kernel, and so on) of the 163 | operating system on which the executable runs, unless that component 164 | itself accompanies the executable. 165 | 166 | If distribution of executable or object code is made by offering 167 | access to copy from a designated place, then offering equivalent 168 | access to copy the source code from the same place counts as 169 | distribution of the source code, even though third parties are not 170 | compelled to copy the source along with the object code. 171 | 172 | 4. You may not copy, modify, sublicense, or distribute the Program 173 | except as expressly provided under this License. Any attempt 174 | otherwise to copy, modify, sublicense or distribute the Program is 175 | void, and will automatically terminate your rights under this License. 176 | However, parties who have received copies, or rights, from you under 177 | this License will not have their licenses terminated so long as such 178 | parties remain in full compliance. 179 | 180 | 5. You are not required to accept this License, since you have not 181 | signed it. However, nothing else grants you permission to modify or 182 | distribute the Program or its derivative works. These actions are 183 | prohibited by law if you do not accept this License. Therefore, by 184 | modifying or distributing the Program (or any work based on the 185 | Program), you indicate your acceptance of this License to do so, and 186 | all its terms and conditions for copying, distributing or modifying 187 | the Program or works based on it. 188 | 189 | 6. Each time you redistribute the Program (or any work based on the 190 | Program), the recipient automatically receives a license from the 191 | original licensor to copy, distribute or modify the Program subject to 192 | these terms and conditions. You may not impose any further 193 | restrictions on the recipients' exercise of the rights granted herein. 194 | You are not responsible for enforcing compliance by third parties to 195 | this License. 196 | 197 | 7. If, as a consequence of a court judgment or allegation of patent 198 | infringement or for any other reason (not limited to patent issues), 199 | conditions are imposed on you (whether by court order, agreement or 200 | otherwise) that contradict the conditions of this License, they do not 201 | excuse you from the conditions of this License. If you cannot 202 | distribute so as to satisfy simultaneously your obligations under this 203 | License and any other pertinent obligations, then as a consequence you 204 | may not distribute the Program at all. For example, if a patent 205 | license would not permit royalty-free redistribution of the Program by 206 | all those who receive copies directly or indirectly through you, then 207 | the only way you could satisfy both it and this License would be to 208 | refrain entirely from distribution of the Program. 209 | 210 | If any portion of this section is held invalid or unenforceable under 211 | any particular circumstance, the balance of the section is intended to 212 | apply and the section as a whole is intended to apply in other 213 | circumstances. 214 | 215 | It is not the purpose of this section to induce you to infringe any 216 | patents or other property right claims or to contest validity of any 217 | such claims; this section has the sole purpose of protecting the 218 | integrity of the free software distribution system, which is 219 | implemented by public license practices. Many people have made 220 | generous contributions to the wide range of software distributed 221 | through that system in reliance on consistent application of that 222 | system; it is up to the author/donor to decide if he or she is willing 223 | to distribute software through any other system and a licensee cannot 224 | impose that choice. 225 | 226 | This section is intended to make thoroughly clear what is believed to 227 | be a consequence of the rest of this License. 228 | 229 | 8. If the distribution and/or use of the Program is restricted in 230 | certain countries either by patents or by copyrighted interfaces, the 231 | original copyright holder who places the Program under this License 232 | may add an explicit geographical distribution limitation excluding 233 | those countries, so that distribution is permitted only in or among 234 | countries not thus excluded. In such case, this License incorporates 235 | the limitation as if written in the body of this License. 236 | 237 | 9. The Free Software Foundation may publish revised and/or new versions 238 | of the General Public License from time to time. Such new versions will 239 | be similar in spirit to the present version, but may differ in detail to 240 | address new problems or concerns. 241 | 242 | Each version is given a distinguishing version number. If the Program 243 | specifies a version number of this License which applies to it and "any 244 | later version", you have the option of following the terms and conditions 245 | either of that version or of any later version published by the Free 246 | Software Foundation. If the Program does not specify a version number of 247 | this License, you may choose any version ever published by the Free Software 248 | Foundation. 249 | 250 | 10. If you wish to incorporate parts of the Program into other free 251 | programs whose distribution conditions are different, write to the author 252 | to ask for permission. For software which is copyrighted by the Free 253 | Software Foundation, write to the Free Software Foundation; we sometimes 254 | make exceptions for this. Our decision will be guided by the two goals 255 | of preserving the free status of all derivatives of our free software and 256 | of promoting the sharing and reuse of software generally. 257 | 258 | NO WARRANTY 259 | 260 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 261 | FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 262 | OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 263 | PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 264 | OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 265 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 266 | TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 267 | PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 268 | REPAIR OR CORRECTION. 269 | 270 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 271 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 272 | REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 273 | INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 274 | OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 275 | TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 276 | YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 277 | PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 278 | POSSIBILITY OF SUCH DAMAGES. 279 | 280 | END OF TERMS AND CONDITIONS 281 | 282 | How to Apply These Terms to Your New Programs 283 | 284 | If you develop a new program, and you want it to be of the greatest 285 | possible use to the public, the best way to achieve this is to make it 286 | free software which everyone can redistribute and change under these terms. 287 | 288 | To do so, attach the following notices to the program. It is safest 289 | to attach them to the start of each source file to most effectively 290 | convey the exclusion of warranty; and each file should have at least 291 | the "copyright" line and a pointer to where the full notice is found. 292 | 293 | 294 | Copyright (C) 295 | 296 | This program is free software; you can redistribute it and/or modify 297 | it under the terms of the GNU General Public License as published by 298 | the Free Software Foundation; either version 2 of the License, or 299 | (at your option) any later version. 300 | 301 | This program is distributed in the hope that it will be useful, 302 | but WITHOUT ANY WARRANTY; without even the implied warranty of 303 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 304 | GNU General Public License for more details. 305 | 306 | You should have received a copy of the GNU General Public License along 307 | with this program; if not, write to the Free Software Foundation, Inc., 308 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 309 | 310 | Also add information on how to contact you by electronic and paper mail. 311 | 312 | If the program is interactive, make it output a short notice like this 313 | when it starts in an interactive mode: 314 | 315 | Gnomovision version 69, Copyright (C) year name of author 316 | Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 317 | This is free software, and you are welcome to redistribute it 318 | under certain conditions; type `show c' for details. 319 | 320 | The hypothetical commands `show w' and `show c' should show the appropriate 321 | parts of the General Public License. Of course, the commands you use may 322 | be called something other than `show w' and `show c'; they could even be 323 | mouse-clicks or menu items--whatever suits your program. 324 | 325 | You should also get your employer (if you work as a programmer) or your 326 | school, if any, to sign a "copyright disclaimer" for the program, if 327 | necessary. Here is a sample; alter the names: 328 | 329 | Yoyodyne, Inc., hereby disclaims all copyright interest in the program 330 | `Gnomovision' (which makes passes at compilers) written by James Hacker. 331 | 332 | , 1 April 1989 333 | Ty Coon, President of Vice 334 | 335 | This General Public License does not permit incorporating your program into 336 | proprietary programs. If your program is a subroutine library, you may 337 | consider it more useful to permit linking proprietary applications with the 338 | library. If this is what you want to do, use the GNU Lesser General 339 | Public License instead of this License. --------------------------------------------------------------------------------