
Am 09.10.2016 um 17:45 schrieb Christian Boltz:
Can you please remove this rule and test if something complains?
Well, I have switched to the open source driver in Leap kernel 4.1, thus can´t test it..... The open source driver has a bit less performance, but is stable and lacks some bugs, the proprietary driver has.
/dev/video* rw, /dev/ati/* rw, /etc/ati r,
Same questions once more, this time for /etc/ati ;-)
I just added these permissions to satisfy AppArmor. Without setting these, I had some AA log entries.
/etc/ati/** r, /etc/ati/authatieventsd.sh Ux,
What does this script do?
This script grants access to some AMD "event daemon", I guess this thing checks for updates or maybe some hardware events triggered by the GPU, but this is just a guess. I have attached the script, so you can take a look at it. It looks pretty harmless to me.
We avoid Ux rules whenever possible (because they allow to execute something unconfined = without AppArmor restrictions), so you should have a *very* good reason to use Ux ;-)
/dev/shm/ rwkl,
Hmm, wkl permissions for the directory? That looks superfluous to me - r should be enough.
True
/dev/shm/* rwkl,
Reading and writing all files in /dev/shm/ (which is world-writeable like /tmp/) doesn't sound too neat. Would it be possible to restrict that rule by using a filename pattern and/or adding the "owner" conditional?
I think adding "owner" should be fine. But, as mentioned, I switched to the open source driver recently....
/home/*/.AMD/ rwkl, /home/*/.AMD/** rwkl,
Interesting - does the AMD driver really need write access in the user's home directory? Or is it only needed by the config tool? (assuming there is a config tool ;-)
Yes, there is a config tool. This directory is a cache directory for OpenGL stuff. The proprietary nVidia driver also uses a user space cache directory with the name ~/.nv/
If these rules are really needed, adding the "owner" conditional would be a good idea to ensure it doesn't touch someone else' home directory.
Sure, using "owner" should be fine there. But, AMD is working on a new generation of proprietary driver, they haven´t their current (=old) proprietary time for 10 months now! Kernel 4.4 and above has an updated AMD driver named amdgpu which will also be the basis for the new AMD proprietary driver. Thus, people with the latest AMD GPUs actually use the latest kernels, because they have the necessary support the old proprietary driver does not have. In other words, folks who run the latest AMD GPU depend on the latest kernels and not the current (old) AMD prop stuff, thus the number of people using the current (= now old) AMD prop driver should be very, very small. IMHO it may be best to wait until AMD releases their new generation proprietary driver and then adjust this AA rule. To add this rule to Leap 42.2 may not make much sense, because people with latest AMD GPU depend on the latest open source driver anyways.... Best regards