You are not logged in.

#1 2025-09-23 14:08:32

Flapper
Member
Registered: 2019-02-10
Posts: 38

Bubblewrap everywhere

Just updated today, everything seems to start within bwrap.
OK, Firefox I can understand, but mousepad, solitaire (sol)?

Is there a way to disable bubblewrap?

Offline

#2 2025-09-23 15:08:41

jim002
Member
Registered: 2020-02-17
Posts: 44

Re: Bubblewrap everywhere

yes, there are multiple instances of glycin and bwrap on xfce 4.20
go there:
(https://bbs.archlinux.org/viewtopic.php?id=308448)
https://bbs.archlinux.org/viewtopic.php?id=302145&p=2

Offline

#3 2025-09-23 19:16:20

correctmost
Member
Registered: 2024-01-20
Posts: 16

Re: Bubblewrap everywhere

gdk-pixbuf 2.44 uses glycin for loading images and glycin uses bubblewrap for sandboxing.

Many of the bwrap processes are hanging around because of a timeout issue that will be fixed in the next version of glycin: https://gitlab.gnome.org/GNOME/glycin/- … quests/302

Offline

#4 2025-09-24 01:54:53

karabaja4
Member
From: Croatia
Registered: 2008-09-14
Posts: 1,013
Website

Re: Bubblewrap everywhere

I really dislike the idea of a library starting processes to do stuff, especially if it's not going to cleanup after itself - like sudden hanging bwrap processes in my ps ax.

Is there a way to have latest gdk-pixbuf2 but not use glycin/bwrap (e.g. what would happen if I compile latest gdk-pixbuf2 without glycin support - would it still work)?

EDIT: Seems to work with this patch applied.

Last edited by karabaja4 (2025-09-24 02:04:45)

Offline

#5 2025-09-24 05:43:49

undriven
Member
Registered: 2024-03-24
Posts: 7

Re: Bubblewrap everywhere

karabaja4 wrote:

I really dislike the idea of a library starting processes to do stuff, especially if it's not going to cleanup after itself - like sudden hanging bwrap processes in my ps ax.

Strongly agree. gdk-pixbuf2 is used by too many programs for this kind of scope creep to be acceptable.

Offline

#6 2025-09-24 06:09:29

mpan
Member
Registered: 2012-08-01
Posts: 1,491
Website

Re: Bubblewrap everywhere

The situation can be resolved by temporarily downgrading gdk-pixbuf2 to 2.42.12-2, until a proper fix is deployed. At least up to 2.44.2-1, both are so-name compatible.

The cleanup issue is bug and is going to be fixed. So that can’t be used as an argument for or against anything.

As for the processes: this is a typical “out of sight, out of mind” situation. If glycin used threads instead of processes, nobody would complain, because the former are not displayed by default in process managers. Yet any relatively modern GUI program runs 5–100 of them. The only “problem” is that, since glycin can’t achieve with threads the separation required, it has to spawn processes. Which makes them visible.

Last edited by mpan (2025-09-24 06:12:26)


Paperclips in avatars?
NIST on password policies (PDF) — see §3.1.1.2
Sometimes I seem a bit harsh — don’t get offended too easily!

Offline

#7 2025-09-24 07:25:22

kinghol
Member
Registered: 2014-02-28
Posts: 23

Re: Bubblewrap everywhere

but I like that the Linux Desktop is trying to become a bit more secure.

Offline

#8 2025-09-24 09:02:37

Flapper
Member
Registered: 2019-02-10
Posts: 38

Re: Bubblewrap everywhere

There were no bubblewrap processes for me, because it was not installed until yesterday.
It doesn't appear to have a config file or anything, so is there a way to remove it or prevent it sandboxing everything?

Offline

#9 2025-09-24 09:58:29

karabaja4
Member
From: Croatia
Registered: 2008-09-14
Posts: 1,013
Website

Re: Bubblewrap everywhere

mpan wrote:

The cleanup issue is bug and is going to be fixed. So that can’t be used as an argument for or against anything.

As for the processes: this is a typical “out of sight, out of mind” situation. If glycin used threads instead of processes, nobody would complain, because the former are not displayed by default in process managers. Yet any relatively modern GUI program runs 5–100 of them. The only “problem” is that, since glycin can’t achieve with threads the separation required, it has to spawn processes. Which makes them visible.

I would argue that this kind of a bug is the argument. If a process ides, all the threads die with it, it's self contained. Threads are an internal mechanic of a process and user has no control over it.

Processes however are seen and controlled by the user. If a process spawns bunch of other processes, someone has the responsibility of cleaning that up, and as I understand it, this will not even be the responsibility of a parent process, instead a timeout will be implemented so the child processes just die after a certain period (https://gitlab.gnome.org/GNOME/glycin/- … quests/302). And for a library to do this, it feels like losing control over what processes my computer is running and hoping it just all works out - but I guess that's a common thing these days...

Last edited by karabaja4 (2025-09-24 10:08:01)

Offline

#10 2025-09-24 10:15:08

undriven
Member
Registered: 2024-03-24
Posts: 7

Re: Bubblewrap everywhere

mpan wrote:

As for the processes: this is a typical “out of sight, out of mind” situation. If glycin used threads instead of processes, nobody would complain, because the former are not displayed by default in process managers. Yet any relatively modern GUI program runs 5–100 of them. The only “problem” is that, since glycin can’t achieve with threads the separation required, it has to spawn processes. Which makes them visible.

It's a bad design from the start. The implementation should have been a separate user daemon instead of slapped into the library. It already does work over dbus, surely having the library keep the process tree clean and talk to a sandboxed daemon isn't a big ask. Instead every program that uses pixbuf2 now spams instances of bwrap just to read an image file. Insane.

Offline

#11 Today 13:44:51

tekstryder
Member
Registered: 2013-02-14
Posts: 426

Re: Bubblewrap everywhere

correctmost wrote:

gdk-pixbuf 2.44 uses glycin for loading images and glycin uses bubblewrap for sandboxing.

Many of the bwrap processes are hanging around because of a timeout issue that will be fixed in the next version of glycin: https://gitlab.gnome.org/GNOME/glycin/- … quests/302


glycin 2.0.0-5 has pulled in a slew of recent upstream commits and bubblewrap is no longer everywhere haha.

bwrap processes are exiting as expected.

@Flapper: Please test the latest package and mark as SOLVED if you can no longer reproduce the issue.

Offline

#12 Today 15:58:03

silikone
Member
Registered: 2024-05-25
Posts: 3

Re: Bubblewrap everywhere

We were warned about this a while ago.
https://blogs.gnome.org/sophieh/2025/06 … ing-safer/

It's a simple compilation option, so one can easily circumvent the problem by using a custom PKGBUILD. I find it unfortunate that upstream took the liberty of making it the default, though. Safety is one of my last concerns on something like Arch.

Offline

#13 Today 19:54:19

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 68,329

Re: Bubblewrap everywhere

gLyCiN PrOvIdEs mAnY SeCuRiTy bEnEfItS OvEr eXiStInG SoLuTiOnS DuE To tHe uSe oF ThE RuSt pRoGrAmMiNg

My punching ball is gonna have a tough night…

Offline

#14 Today 22:42:35

mpan
Member
Registered: 2012-08-01
Posts: 1,491
Website

Re: Bubblewrap everywhere

If I understand the situation correctly: the language choice doesn’t relate to the issues at hand and, in particular, they aren’t caused by the use of Rust.


Paperclips in avatars?
NIST on password policies (PDF) — see §3.1.1.2
Sometimes I seem a bit harsh — don’t get offended too easily!

Offline

Board footer

Powered by FluxBB