Control: affects -1 - firefox Control: retitle -1 glycin-image-rs and glycin-svg do not terminate with the application when bwrap is unusable
I've done some testing with the help of AI. The glycin-image-rs and glycin-svg processes normally terminate when the application dies thanks to the --die-with-parent bwrap option. But this fails in the following two cases: 1. The issue I had with Firefox was actually a more general issue with firejail: by default (without firejail's --allow-bwrap option), firejail replaces bwrap by its own fbwrap, which just runs the command "without any sandboxing features". This means that the --die-with-parent option has no effect, which explains the behavior. As this should be regarded as a bug in firejail, I've removed firefox from the affected packages for this bug (firefox without firejail does not seem to have any issue with glycin). 2. About LibreOffice, its AppArmor profile blocks the bwrap sandbox. Thus glycin runs the loaders without bwrap (this is bug 1127671[*]), so that the --die-with-parent cannot be used as a way to make the glycin loaders terminate. Other applications for which bwrap is not usable would probably have the same issue. I've retitled this bug to make this clear. Fixing bug 1127671 would be a way to avoid this bug 1128501. But this is not the only way. As the AI suggests, "glycin should arm a parent-death signal itself in the non-sandbox path instead of relying on bwrap", e.g. prctl(PR_SET_PDEATHSIG, SIGKILL). Since this is exactly what bwrap does with --die-with-parent, this is expected to work. [*] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1127671 Additional information may be found there: https://chat.mistral.ai/work/27be4657-e2b1-433f-849b-cab40e46819d -- Vincent Lefèvre <[email protected]> - Web: <https://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / Pascaline project (LIP, ENS-Lyon)

