On 2026-12-05 21:12:22 +0100, Jeremy Bícha wrote:
> On Sat, Dec 5, 2026 at 9:05 PM Vincent Lefevre <[email protected]> wrote:
> > 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.
>
> The glycin maintainers don't want AI generated issues.
>
> https://gitlab.gnome.org/GNOME/glycin/-/blob/main/CONTRIBUTING.md
>
> But the policy says, "AI tools can be used to answer questions and
> find information." I don't know how to interpret their policy and I
> don't know what you can do with the information you've found.
The reason they gave:
We are taking these steps as precaution due to the potential
negative influence of AI generated content on quality, as well
as likely copyright violations.
Here, there are no quality issues (I did tests and it is quite clear
that the analysis is correct), and there are no copyright violations
since the prctl(PR_SET_PDEATHSIG, SIGKILL) is what bwrap documents:
--die-with-parent
Ensures child process (COMMAND) dies when bwrap's parent dies. Kills
(SIGKILL) all bwrap sandbox processes in sequence from parent to
child including COMMAND process when bwrap or bwrap's parent dies.
See prctl, PR_SET_PDEATHSIG.
BTW, glycin is written in Rust, so that this wouldn't have been the
simple C code above.
There should actually be a bit more to do in case the application
dies before the glycin loader calls prctl, as bwrap has this problem
reported here:
https://github.com/containers/bubblewrap/issues/633
But for an interactive application, this should be rare.
--
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)