OSDN Git Service

Remove restrictions on vaSetDriverName()
authorMark Thompson <sw@jkqxz.net>
Tue, 13 Nov 2018 23:56:13 +0000 (23:56 +0000)
committerXinfengZhang <carl.zhang@intel.com>
Mon, 3 Dec 2018 05:43:38 +0000 (13:43 +0800)
commitb7203fe3b1fa633cece9cd9e5715b6477a708455
tree7c1ac4965dc88e5db9d3997ea2ce5453863a6a5f
parent285267586a3d4db0e721d30d4a5f5f9fe6a3c913
Remove restrictions on vaSetDriverName()

The UID restriction has no effect, since any code capable of calling
vaSetDriverName() can also edit the internals of the structure itself.
(This check was inherited from the environment variable setting, where
it does do something.)

The name whitelist prevents loading drivers not currently named on the
list, such as the Mesa and V4L2-request drivers.  I don't believe there
is any reason to prevent loading another driver, and it is already
possible via the LIBVA_DRIVER_NAME environment variable.

Signed-off-by: Mark Thompson <sw@jkqxz.net>
va/va.c