Module: Mesa Branch: master Commit: 62c90492ef2dd27a4d692f767c75afa28928d71b URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=62c90492ef2dd27a4d692f767c75afa28928d71b
Author: Timothy Arceri <[email protected]> Date: Sat Apr 30 15:26:43 2016 +1000 glsl: disable on disk shader cache when running as another user Reviewed-by: Nicolai Hähnle <[email protected]> --- src/util/disk_cache.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/util/disk_cache.c b/src/util/disk_cache.c index 1f4e896..6618a24 100644 --- a/src/util/disk_cache.c +++ b/src/util/disk_cache.c @@ -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) _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
