Skip to content

Firefox 137 from ppa on Ubuntu 25.04 has apparmor policy that will block the driver from working #374

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
philipl opened this issue Apr 23, 2025 · 1 comment

Comments

@philipl
Copy link
Contributor

philipl commented Apr 23, 2025

This is an FYI, and not a bug report per se. The driver isn't doing anything wrong.

The Mozilla Team PPA has a build of Firefox 137 but only for Ubuntu 25.04. Earlier versions of Ubuntu appear to only get 136.

This new 137 build includes a much more locked down apparmor policy that will cause VAAPI to fail in general, but there are additional rules required to make the nvidia driver work.

I needed to add the following to remove all the apparmor audit complaints. Some of them may not be fatal - I didn't check that.

I couldn't find a way to file a bug against the PPA, which is really what needs to happen, but this information will be helpful for any other Ubuntu users.

Content for /etc/apparmor.d/local/usr.bin.firefox

/dev/dri/** rw,
/dev/nvidia* rw,
/dev/char/195:* rw,
/dev/char/511:* rw,
/proc/sys/** rw,
owner @{PROC}/[0-9]*/task/[0-9]*/ rw,
owner @{PROC}/[0-9]*/task/[0-9]*/comm rw,
/proc/devices r,
/proc/driver/nvidia/** r,
/proc/version r,
/sys/devices/system/memory/block_size_bytes r,
/usr/bin/nvidia-modprobe ix,
/sys/devices/**/cpumap r,
/sys/devices/**/numa_node r,
/path/to/nvidia_drv_video.so rm,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant