francma / wob

A lightweight overlay volume/backlight/progress/anything bar for Wayland.
ISC License
896 stars 49 forks source link

Sandbox make wob to crash instantly on aarch64 #131

Closed stacyharper closed 1 year ago

stacyharper commented 1 year ago

Looks like the seccomp calls are wrong under this arch (maybe others?)

Bad system call

francma commented 1 year ago

Please provide the output of

strace wob

And you can set WOB_DISABLE_PLEDGE to temporary disable seccomp.

stacyharper commented 1 year ago

https://paste.sr.ht/~stacyharper/9a155872c3940f15e5f108fdb1630e5a8828a700

Yap, I avoided the problem with this environment variable:

https://git.sr.ht/~mil/sxmo-utils/commit/55aac86762c904a666b465cd95507e22093a3792

stacyharper commented 1 year ago

This is not the wob_pledge() call itself that crash, we crash when calling wl_display_roundtrip(app->wl_display) after the seccomp has been setup

francma commented 1 year ago

Should be fixed in https://github.com/francma/wob/commit/cd854397bca5d2a06c312e7cd877c8ab334449fa

Can you try if it fixes the problem?

stacyharper commented 1 year ago

It does! Thanks

stacyharper commented 1 year ago

Could you flag a minor? Or I will have to backport it to my distro

francma commented 1 year ago

https://github.com/francma/wob/releases/tag/0.15.1