noblacklist ${HOME}/.mozilla comes after the disable-programs.inc include in geary and email-common, so the whitelisted profiles.ini is denied
I was checking how noblacklist interacts with the disable-*.inc includes and found some profiles where the two are in the order that makes the noblacklist do nothing.
geary.profile includes disable-programs.inc at line 26. That blacklists ${HOME}/.mozilla. Then line 33 says noblacklist ${HOME}/.mozilla and line 34 whitelists ${HOME}/.mozilla/firefox/profiles.ini. Since a noblacklist only applies to blacklist commands that follow it, the one at line 33 does nothing about the include at line 26. So the file is whitelisted and visible, and blacklisted and unreadable.
On firejail 0.9.74 from Debian:
$ printf '[Profile0]\nName=default\n' > ~/.mozilla/firefox/profiles.ini
$ firejail --quiet --profile=/etc/firejail/geary.profile cat ~/.mozilla/firefox/profiles.ini
cat: /home/user/.mozilla/firefox/profiles.ini: Permission deniedseamonkey.profile carries the same two directives the other way round, noblacklist at line 11 and the include at line 18, and there the same file reads fine. That was the only thing I varied.
email-common.profile has the pattern at lines 27, 37 and 38. balsa, claws-mail and sylpheed include it and behave the same way.
A grep for profiles with a noblacklist line after the first disable-*.inc include gives thirteen: blender, electron-mail, email-common, fluffychat, geary, kube, lettura, linuxqq, sysprof, trojita, tutanota-desktop, yelp, zeal. Testing each against the path it actually declares it wants, five fail, being geary, email-common and the three profiles that include the latter; for the other eleven I could not measure an effect, several because private-bin stops a cat probe from starting and others because a whitelist governs the path anyway.
What I do not know is whether Geary reads profiles.ini at runtime. I tested the sandbox with cat, not with the application, so the line may be vestigial and nothing may break in practice.
etc/templates/profile.template puts noblacklist near line 96 and the disable-*.inc block near line 146, and the bigger profiles follow that, so the intended order seems settled. The profile CI checks that disable-programs.inc stays sorted and that private-etc carries its required entries. Nothing checks that a noblacklist comes before the include it is meant to cancel, and a check for that would catch this whole class.
Source: netblue30/firejail