I switched from using the nouveau graphics driver to using the nvidia driver because I wanted to try the shotcut video editor and that wouldn't work so long as I was using the nouveau driver. With the nvidia driver though apparmor started putting up notifications of 6 "DENIED" events. Apparently /usr/lib/firefox/firefox.sh is a script that was trying to read /proc/modules and /proc/driver/nvidia/params and also there was (I think) a lock file being created in ~/.nv/GLCache/ which that script wanted rw access to.
So I added these lines to /etc/apparmor.d/usr.bin.firefox
@{PROC}/modules/ r,
@{PROC}/modules/* r,
@{PROC}/driver/nvidia/params/ r,
@{PROC}/driver/nvidia/params/* r,
/home/myusername/.nv/GLCache/* rw,
The duplication in the 2 @{PROC} lines is because I'm not sure what I'm doing. My reasoning behind the above changes was that after all the profile already contains this:
# These are needed when a new user starts firefox and firefox.sh is used
...
@{PROC}/ r,
so I figured there'd be no harm in adding read access specifically for those subfolders of /proc
If anybody that knows more about this than I do (probably a lot of you do) might comment, just to tell me if this was wrong or if there's a more appropriate way to do it, I'd much appreciate it.
sudo apparmor_parser -r /etc/apparmor.d/usr.bin.firefox
sudo service apparmor reload
Thanks in advance!!!
I'm using ubuntu studio 14.4 trusty 64 bit.
[edit] less clear than ever: the above works for the first new window opened by firefox after doing
but for each window after that the errors are back. I don't understand this at all.Code:sudo apparmor_parser -r /etc/apparmor.d/usr.bin.firefox sudo service apparmor reload
Any help would be much appreciated, thank you.
Bookmarks