[Libva] [Libva-intel-driver PATCH 9/9] Remove file access check in loading wrapper
Zhao Yakui
yakui.zhao at intel.com
Sat Sep 5 18:39:16 PDT 2015
From: Sameer Kibey <sameer.kibey at intel.com>
Remove the check for file access in the wrapper.
Otherwise this call will fail on Chrome OS with sandboxing
enabled.
Signed-off-by: Sameer Kibey <sameer.kibey at intel.com>
Signed-off-by: Sean V Kelley <seanvk at posteo.de>
---
src/i965_drv_video.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/src/i965_drv_video.c b/src/i965_drv_video.c
index 00860f8..a2a39f7 100644
--- a/src/i965_drv_video.c
+++ b/src/i965_drv_video.c
@@ -6227,11 +6227,6 @@ i965_initialize_wrapper(VADriverContextP ctx, const char *driver_name)
memset(driver_path, 0, sizeof(driver_path));
sprintf(driver_path, "%s/%s%s", driver_dir, driver_name, DRIVER_EXTENSION);
- if (access(driver_path, F_OK)) {
- driver_dir = strtok_r(NULL, ":", &saveptr);
- continue;
- }
-
handle = dlopen(driver_path, RTLD_NOW | RTLD_GLOBAL | RTLD_NODELETE);
if (!handle) {
fprintf(stderr, "failed to open %s\n", driver_path);
--
1.8.4.2
More information about the Libva
mailing list