glsl: disable on disk shader cache when running as another user
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
parent
966ddd5d3d
commit
62c90492ef
|
@ -198,6 +198,10 @@ disk_cache_create(const char *gpu_name, const char *timestamp)
|
|||
struct stat sb;
|
||||
size_t size;
|
||||
|
||||
/* If running as a users other than the real user disable cache */
|
||||
if (geteuid() != getuid())
|
||||
return NULL;
|
||||
|
||||
/* A ralloc context for transient data during this invocation. */
|
||||
local = ralloc_context(NULL);
|
||||
if (local == NULL)
|
||||
|
|
Loading…
Reference in New Issue