<div dir="ltr"><span style="font-size:13px">On Fri, Oct 13, 2017, 00:30 Tom Stellard <</span><a href="mailto:tstellar@redhat.com" target="_blank" style="font-size:13px">tstellar@redhat.com</a><span style="font-size:13px">> wrote:</span></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
The amdkfd kernel driver exposes the /dev/kfd device file for doing gpgpu<br>
computing on AMD GPUs, I would like to setup the permissions on this device<br>
file, so that regular users can access it.  I think it makes sense to<br>
try to copy what is being done for the other GPU device files, like /dev/dri/cardX.<br>
I can see the udev rules for these /dev/dri/cardX, but on my system it looks like<br>
something is giving users access to these files using  access control lists<br>
(acls), but I'm not sure where the acls are being modified.  Is systemd only responsible<br>
for the udev rules or is there something else in systemd I need to modify to<br>
get the acls set correctly?<br></blockquote></div><div><br></div><div>udev applies these ACLs to all devices tagged with TAG+="uaccess" from udev rules.</div><div><br>(The tagging is kind of an internal detail and your rules are supposed to use ENV{ID_this_and_that}, but... for personal use it works well enough.)<br><br>Just make sure you get the rule ordering right, I think 71-something.rules is a good place. I can't check right now, might be remembering wrong.<br><br></div><div dir="ltr">-- <br></div><div class="m_-1979903229729904469gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><p dir="ltr">Mantas Mikulėnas <<a href="mailto:grawity@gmail.com" target="_blank">grawity@gmail.com</a>><br>
Sent from my phone</p>
</div></div>