AnsweredAssumed Answered

ioctl permissions on Linux

Question asked by valerioa on Jan 25, 2013
Latest reply on Feb 14, 2013 by himanshu.gautam

I'm running OpenCL AMD-APP-SDK-v2.8-lnx64.tgz with FirePro_9.003.3-Linux-x32x64-151130.zip on 4 FirePro 3D V5800

 

Device 0 : Juniper Device ID is 0x1bb83f0

Device 1 : Juniper Device ID is 0x1c88580

Device 2 : Juniper Device ID is 0x1c86c40

Device 3 : Juniper Device ID is 0x2035230

 

root can execute all OpenCL sample fine, but any regular user can't. Even extending permissions to anybody on /dev/aticard*

sudo chmod -fR 777 /dev/ati

 

a non-root user, shows with strace

 

stat("/dev/ati", {st_mode=S_IFDIR|0777, st_size=120, ...}) = 0

stat("/dev/ati/card0", {st_mode=S_IFCHR|0777, st_rdev=makedev(250, 0), ...}) = 0

open("/dev/ati/card0", O_RDWR)          = 6

ioctl(6, 0x80046484, 0x7fff2699714c)    = 0

ioctl(6, 0xc0106407, 0x7fff26997260)    = -1 EINVAL (Invalid argument)

ioctl(6, 0xc0106401, 0x7fff26997260)    = 0

ioctl(6, 0xc0106401, 0x7fff26997260)    = 0

ioctl(6, 0x8204648b, 0x7fff26997640)    = 0

ioctl(6, 0x80146454, 0x7fff26997850)    = -1 EACCES (Permission denied)

ioctl(6, 0x80146454, 0x7fff26997850)    = -1 EACCES (Permission denied)

ioctl(6, 0x80146454, 0x7fff26997850)    = -1 EACCES (Permission denied)

ioctl(6, 0x80146454, 0x7fff26997850)    = -1 EACCES (Permission denied)

 

Have premissions on ioctl()'s on card recently changed? I was able to execute OpenCL as regular user fine with previous versions of fglrx/OpenCL.

 

Is that the desired behavior? Will only root be able to run OpenCL programs on headless servers?

 

Thanks,

 

Valerio


Outcomes