aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAge
* musl fix (#3998)Libravatar smitsohu2021-02-25
| | | | | musl stdlib (Alpine Linux) doesn't know about canonicalize_file_name, replace with equivalent realpath calls
* fcopy: fixes for old compilers, cppcheck fixes (#3998)Libravatar netblue302021-02-24
|
* Merge pull request #4004 from smitsohu/privatelib4Libravatar netblue302021-02-24
|\ | | | | add PATH_FCOPY to private-lib automatically
| * add PATH_FCOPY to private-lib automaticallyLibravatar smitsohu2021-02-24
| | | | | | | | | | | | | | | | | | restore 45304621a6c600d8e30e98bfbef05149caaf56c5, but now run fldd as root user. This became necessary because in the meantime read permission on helper executables was removed. Puts infrastructure in place to add other helper binaries to private-lib as well, should the need arise.
* | Merge pull request #3998 from Tomin1/first_fixesLibravatar netblue302021-02-24
|\ \ | | | | | | Upstreaming a set of fixes from Sailfish's packaging
| * | Add checks to fs_private_dir_mountLibravatar Tomi Leppänen2021-02-22
| | | | | | | | | | | | | | | | | | Check that the directory exists before attempting to mount it. Signed-off-by: Tomi Leppänen <tomi.leppanen@jolla.com>
| * | Add missing linefeeds in stderr loggingLibravatar Simo Piiroinen2021-02-22
| | | | | | | | | | | | | | | | | | | | | Lacking linefeed chars cause messages to get concatenated. Signed-off-by: Simo Piiroinen <simo.piiroinen@jolla.com> Signed-off-by: Tomi Leppänen <tomi.leppanen@jolla.com>
| * | sandbox: Do not leave file mounts underneath private-etcLibravatar Simo Piiroinen2021-02-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Firejail uses file bind-mounts to filter /etc/passwd and /etc/group content. If private-etc is used, these mounts are left underneath the /etc directory mount and this seems to be causing problems in devices with older kernels: attempts to modify passwd or group data fails with EBUSY. Make it possible to perform fs_private_dir_list() actions in two separate phases. Undo the file mounts in /etc before mounting private-etc content. Signed-off-by: Simo Piiroinen <simo.piiroinen@jolla.com> Signed-off-by: Tomi Leppänen <tomi.leppanen@jolla.com>
| * | fcopy: Fix memory leaksLibravatar Simo Piiroinen2021-02-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | These have little consequences as the tool exits anyway, but fs_copydir() leaks memory on success path and check() on failure path. Signed-off-by: Simo Piiroinen <simo.piiroinen@jolla.com> Signed-off-by: Tomi Leppänen <tomi.leppanen@jolla.com>
| * | Fix symlinks that go though /proc/selfLibravatar Simo Piiroinen2021-02-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When constructing sandbox fs, /etc/mtab which is symlink to /proc/self/mounts gets resolved as /proc/PID/mounts. Where PID is not the pid of the process that is going to get executed in the firejail -> the result is broken/unaccessible symlink from the application point of view. Use /proc/self/xxx type symlink target if it resolves similarly as the /proc/PID/xxx type would at the time of mapping. Signed-off-by: Simo Piiroinen <simo.piiroinen@jolla.com> Signed-off-by: Tomi Leppänen <tomi.leppanen@jolla.com>
* | | Merge pull request #4003 from Neo00001/masterLibravatar netblue302021-02-24
|\ \ \ | | | | | | | | Minor fixes for vmware
| * | | Update firecfg.configLibravatar Neo000012021-02-23
| | | |
* | | | update man profileLibravatar netblue302021-02-24
| |_|/ |/| |
* | | jailtest fixLibravatar smitsohu2021-02-23
|/ /
* | jailtestLibravatar netblue302021-02-23
| |
* | more calibre profilesLibravatar netblue302021-02-22
| |
* | jaitest - simple sandbox testing utility programLibravatar netblue302021-02-20
| |
* | adding ipcalc, ipcalc-ngLibravatar netblue302021-02-19
|/
* refresh capabilities (#3945)Libravatar smitsohu2021-02-19
|
* chroot: disable/enable x11 handling at compile timeLibravatar smitsohu2021-02-16
|
* firejail in firejail: don't clear environment variablesLibravatar smitsohu2021-02-16
|
* some cleanupLibravatar smitsohu2021-02-16
| | | | | as no length checks are performed any more on environment variables, remove obsoleted code
* copyright updateLibravatar startx20172021-02-15
|
* Merge pull request #3864 from haraldkubota/masterLibravatar rusty-snake2021-02-13
|\ | | | | Add first version of zsh completion
| * Add first version of zsh completionLibravatar Harald Kubota2021-02-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Don't have duplicate descriptions and put = signs where they belong to zsh completion function now dynamically adjusts for options (e.g. no --apparmor option without AppArmor configured) No EXTRA_CFLAGS for cpp Found main.c which does the argument processing. Moved some arguments into the correct #ifdef blocks Profile selection now much better Not more cpp. Using preproc.awk instead. Updated bash firejail command completion to add profiles ignore bash and zsh dynamically created completion scripts Moved bash/zsh completions out of ALL_ITEMS to fix make install Cleanup
* | tweakLibravatar smitsohu2021-02-12
| | | | | | | | | | readability/making it more obvious buffers are properly initialized
* | remount hardeningLibravatar smitsohu2021-02-12
| |
* | chroot hardeningLibravatar smitsohu2021-02-12
| | | | | | | | | | the check was introduced some time ago in fs_x11(), but fs_chroot() does the same thing and needs it as well
* | Always allow empty environment variablesLibravatar Topi Miettinen2021-02-11
| | | | | | | | | | | | | | With the recent changes to environment variable handling, it should be safe to always allow empty variables. Closes: #3965
* | display-im6.q16Libravatar netblue302021-02-11
| |
* | Merge pull request #3969 from glitsj16/fsaccessat2Libravatar netblue302021-02-11
|\ \ | | | | | | add support for faccessat2 syscall
| * | add support for faccessat2 syscallLibravatar glitsj162021-02-10
| | |
| * | add support for faccessat2 syscallLibravatar glitsj162021-02-10
| | |
| * | add support for faccessat2 syscallLibravatar glitsj162021-02-10
| | |
| * | add support for fsaccessat2 syscallLibravatar glitsj162021-02-10
| | |
* | | fix spacing in man firejailLibravatar glitsj162021-02-10
| | |
* | | fix private=directory in man firejail-profileLibravatar glitsj162021-02-10
| | |
* | | fix ordering of deterministic-exit-code in man firejailLibravatar glitsj162021-02-10
|/ /
* | adding DISPLAY to env_whitelistLibravatar netblue302021-02-09
| |
* | Merge pull request #3849 from bbhtt/emailLibravatar netblue302021-02-09
|\ \ | | | | | | Email part (2)
| * | Add neomutt to firefg.configLibravatar bbhtt2020-12-28
| | |
* | | Filter environment variablesLibravatar Topi Miettinen2021-02-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Save all environment variables for later use in the application, clear environment and re-apply only whitelisted variables for the main firejail process. The whitelisted environment is only used by C library. Sandboxed tools will get further variables used internally (FIREJAIL_*). All variables will be reapplied for the firejailed application. This also lifts the length restriction for environment variables, except for the variables used by Firejail itself or the sandboxed tools.
* | | Add profile for Gemini (#3946)Libravatar Neo000012021-02-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Update disable-programs.inc * Create calligragemini.profile * Update calligra.profile * Update calligra.profile * Update firecfg.config
* | | Seccomp error action fixesLibravatar Topi Miettinen2021-02-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fsec-optimize: Optimize BPF with current seccomp error action, not just KILL fseccomp: use correct BPF code for errno action firejail: honor seccomp error action for X32 and secondary filters, rebuild filters if the error action is changed Closes: #3933 Signed-off-by: Topi Miettinen <toiwoton@gmail.com>
* | | Add profile for avidemux (#3935)Libravatar Neo000012021-01-31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Update disable-programs.inc * Update disable-programs.inc * Update firecfg.config * Create avidemux.profile * Update avidemux.profile
* | | Fix minor typo in firecfg's manual pageLibravatar irandms2021-01-31
| | |
* | | merge/readme updateLibravatar netblue302021-01-25
| | |
* | | Merge pull request #3853 from botherder/masterLibravatar netblue302021-01-25
|\ \ \ | | | | | | | | New profile for CoyIM
| * | | Implementing some of the suggested changes from #3853Libravatar Nex2020-12-29
| |/ /
* | | Merge pull request #3918 from Neo00001/masterLibravatar netblue302021-01-25
|\ \ \ | | | | | | | | Add profile for kdiff3