aboutsummaryrefslogtreecommitdiffstats
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 #4001 from kmk3/fix-signal-xdg-ignoreLibravatar netblue302021-02-24
|\ \ \ | | | | | | | | signal-desktop.profile: fix typo of disable-xdg.profile
| * | | signal-desktop.profile: fix typo of disable-xdg.profileLibravatar Kelvin M. Klann2021-02-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added on commit f4f676745 ("Refactor electron.profile and electron based programs (#3807)"). This appears to be the only instance of that: $ grep -Fnr 'include-xdg' etc etc/profile-m-z/signal-desktop.profile:9:ignore include-xdg.inc Simply fixing the typo would enable xdg dirs for the first time since the aforementioned commit. But, as talked with @rusty-snake[1], since there has been no negative feedback, and since it's a whitelisting profile, just remove the affected line instead. Credits go to syntax highlighting on vim. [1]: https://github.com/netblue30/firejail/pull/4001
* | | | Merge pull request #4003 from Neo00001/masterLibravatar netblue302021-02-24
|\ \ \ \ | | | | | | | | | | Minor fixes for vmware
| * | | | Update firecfg.configLibravatar Neo000012021-02-23
| | | | |
| * | | | Create vmware-workstation.profileLibravatar Neo000012021-02-23
| | | | |
| * | | | Create vmware-player.profileLibravatar Neo000012021-02-23
| | | | |
* | | | | Merge pull request #4002 from kmk3/ipcalc-misc-fixesLibravatar netblue302021-02-24
|\ \ \ \ \ | | | | | | | | | | | | ipcalc: misc fixes
| * | | | | ipcalc.profile: move allow include to proper placeLibravatar Kelvin M. Klann2021-02-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | And add missing allow include comment. See etc/templates/profile.template.
| * | | | | ipcalc-ng.profile: fix double globals.local includeLibravatar Kelvin M. Klann2021-02-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | And add missing redirect comment. See etc/templates/redirect_alias-profile.template.
* | | | | | update man profileLibravatar netblue302021-02-24
| | | | | |
* | | | | | Merge pull request #4005 from glitsj16/lzopLibravatar glitsj162021-02-24
|\ \ \ \ \ \ | |_|_|_|_|/ |/| | | | | new profile: lzop
| * | | | | new profile: lzopLibravatar glitsj162021-02-24
| | | | | |
| * | | | | add lzopLibravatar glitsj162021-02-24
| | | | | |
| * | | | | Create lzop.profileLibravatar glitsj162021-02-24
|/ / / / /
* | / / / jailtest fixLibravatar smitsohu2021-02-23
| |/ / / |/| | |
* | | | Merge branch 'master' of https://github.com/netblue30/firejailLibravatar netblue302021-02-23
|\ \ \ \
| * | | | dosbox fixLibravatar netblue302021-02-22
| |/ / /
* | | | jailtestLibravatar netblue302021-02-23
| | | |
* | | | hardening ssh, torLibravatar netblue302021-02-23
|/ / /
* | | more calibre profilesLibravatar netblue302021-02-22
| | |
* | | Fix patch-util not having access to libdl.so (#4000)Libravatar zupatisc2021-02-22
| | | | | | | | | | | | | | | | | | | | | * Fix patch-util not having access to libdl.so * Update etc/profile-m-z/patch.profile Co-authored-by: Kelvin M. Klann <kmk3.code@protonmail.com>
* | | build: include jailtest in rpmLibravatar Reiner Herrmann2021-02-21
| | |
* | | apparmor capabilities fixLibravatar netblue302021-02-21
|/ /
* | jaitest - simple sandbox testing utility programLibravatar netblue302021-02-20
| |
* | run sort.pyLibravatar Reiner Herrmann2021-02-20
| |
* | fix ipcalcLibravatar netblue302021-02-19
| |
* | adding ipcalc, ipcalc-ngLibravatar netblue302021-02-19
|/
* refresh capabilities (#3945)Libravatar smitsohu2021-02-19
|
* Merge pull request #3994 from kmk3/fix-copyright-bumpLibravatar glitsj162021-02-17
|\ | | | | contrib/firejail-welcome.sh: fix copyright year
| * contrib/firejail-welcome.sh: fix copyright yearLibravatar Kelvin M. Klann2021-02-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Append the current year rather than replace the previous one. This amends commit 2609e5cf0 ("copyright update"). Commands that helped catch this: $ git show --pretty='' 2609e5cf0 | sed -n 's/^-.*Copyright //p' | LC_ALL=C sort | uniq (C) 2014-2020 Firejail Authors (C) 2014-2020 Firejail Authors (see README file for more details) (C) 2020 Firejail Authors (C) 2020 Firejail and systemd authors (c) 2019,2020 rusty-snake $ git show --pretty='' 2609e5cf0 | sed -n 's/^+.*Copyright //p' | LC_ALL=C sort | uniq (C) 2014-2021 Firejail Authors (C) 2014-2021 Firejail Authors (see README file for more details) (C) 2020-2021 Firejail Authors (C) 2020-2021 Firejail and systemd authors (C) 2021 Firejail Authors (c) 2019-2021 rusty-snake
* | Merge pull request #3993 from glitsj16/templateLibravatar glitsj162021-02-17
|\ \ | | | | | | fixes for profile.template
| * | fix Common-ExtraLibravatar glitsj162021-02-17
| | | | | | | | | See https://github.com/netblue30/firejail/pull/3993/files/660bc3435b43e32d156d9bb5bee2dbad2f84cf36#r577366805.
| * | fix ordering in profile.templateLibravatar glitsj162021-02-16
| | |
| * | miscellaneous fixes to profile.templateLibravatar glitsj162021-02-16
| | |
* | | Merge pull request #3985 from rusty-snake/sort.py-updatesLibravatar rusty-snake2021-02-17
|\ \ \ | | | | | | | | Sort.py updates
| * | | sort.py: Remove whitespace in status outputLibravatar rusty-snake2021-02-15
| | | | | | | | | | | | Co-authored-by: Kelvin M. Klann <kmk3.code@protonmail.com>
| * | | sort.py: Always show the fix in a diff like formatLibravatar rusty-snake2021-02-14
| | | |
| * | | sort.py: Print how many profiles are checkedLibravatar rusty-snake2021-02-14
| | | |
| * | | workflows/sort.yml: Run also if sort.py is changedLibravatar rusty-snake2021-02-14
| | | |
| * | | sort.py: Print the fixed line when running in a CILibravatar rusty-snake2021-02-14
| | | |