Package: surf
Version: 2.1+git20221016-4
Tags: patch
User: [email protected]
Usertags: origin-ubuntu mantic ubuntu-patch
The surf autopkgtest had been failing on Ubuntu following the webkitgtk
2.41 update which was discussed on
https://bugs.webkit.org/show_bug.cgi?id=261268
Turned out the problem was specific to Ubuntu because it is due to the
apparmor profile which Debian isn't enforcing by default. Basically the
process isn't allowed to read /usr/share/glvnd/egl_vendor.d and failing
to use the egl library as a consequence.
The attached patch fixes the issue
Note that there are some extra apparmor denials in the journal which
might be worth fixing (but not essential to fix the rendering issue)
audit: type=1400 audit(1694175887.447:1795): apparmor="DENIED"
operation="open" class="file" profile="/usr/bin/surf"
name="/etc/machine-id" pid=94729 comm="surf" requested_mask="r"
denied_mask="r" fsuid=1000 ouid=0
audit: type=1400 audit(1694175892.387:1811): apparmor="DENIED"
operation="open" class="file" profile="/usr/bin/surf"
name="/sys/fs/cgroup/user.slice/user-1000.slice/[email protected]/app.slice/app-org.gnome.Terminal.slice/vte-spawn-64263ce8-7b7e-4897-a75c-d2ae2c3de03e.scope/memory.current"
pid=94729 comm="PressureMonitor" requested_mask="r" denied_mask="r"
fsuid=1000 ouid=1000
audit: type=1400 audit(1694175887.383:1789): apparmor="DENIED"
operation="open" class="file" profile="/usr/bin/surf"
name="/usr/share/glvnd/egl_vendor.d/" pid=94729 comm="surf"
requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
audit: type=1400 audit(1694175887.383:1790): apparmor="DENIED"
operation="open" class="file" profile="/usr/bin/surf"
name="/sys/devices/virtual/dmi/id/chassis_type" pid=94729 comm="surf"
requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
audit: type=1400 audit(1694175887.383:1791): apparmor="DENIED"
operation="open" class="file" profile="/usr/bin/surf"
name="/sys/firmware/acpi/pm_profile" pid=94729 comm="surf"
requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Cheers,
Sébastien Bacher
diff -Nru surf-2.1+git20221016/debian/changelog surf-2.1+git20221016/debian/changelog
--- surf-2.1+git20221016/debian/changelog 2022-12-23 12:35:07.000000000 +0100
+++ surf-2.1+git20221016/debian/changelog 2023-09-09 22:58:31.000000000 +0200
@@ -1,3 +1,11 @@
+surf (2.1+git20221016-5) UNRELEASED; urgency=medium
+
+ * debian/usr.bin.surf:
+ - include the vulkan abstraction, without it the browser renders white
+ pages with the new webkitgtk (lp: #2034907)
+
+ -- Sebastien Bacher <[email protected]> Sat, 09 Sep 2023 22:58:31 +0200
+
surf (2.1+git20221016-4) unstable; urgency=medium
* Bump version of test dependency apparmor-profiles-extra.
diff -Nru surf-2.1+git20221016/debian/usr.bin.surf surf-2.1+git20221016/debian/usr.bin.surf
--- surf-2.1+git20221016/debian/usr.bin.surf 2022-08-29 19:58:49.000000000 +0200
+++ surf-2.1+git20221016/debian/usr.bin.surf 2023-09-09 15:40:08.000000000 +0200
@@ -14,6 +14,7 @@
#include <abstractions/ssl_certs>
#include <abstractions/surf-gstreamer>
#include <abstractions/video>
+ #include <abstractions/vulkan>
owner @{HOME}/.surf/ w,
owner @{HOME}/.surf/** rwkl,