Bwrap: Creating new namespace failed

I have installed Cryptopmator app via Flathub and try to run it:
flatpak run org.cryptomator.Cryptomator

It does not run, and I get the error:

bwrap: Creating new namespace failed: Permission denied
error: ldconfig failed, exit status 256

My system is Ubuntu 24.04.1. Any idea what could be wrong?

P. S.

cat /proc/sys/kernel/unprivileged_userns_clone
1

OK, found a solution:

sudo chmod u+s $(which bwrap)

Now it is working.

You should report this to Ubuntu OpenID transaction in progress. The last command makes the bubblewrap binary SUID, by default it is supposed to work with unprivileged user namespaces.

This is most likely due to Ubuntu doing some kernel and apparmor related changes that landed in 24.04.