Skip to content

util/disk_cache: check $HOME to avoid calling getpwuid_r

Lepton Wu requested to merge lepton/mesa:home1 into main

What does this MR do and why?

util/disk_cache: check $HOME to avoid calling getpwuid_r

If $HOME works, we don't need to call getpwuid_r which could
try to connect to Name Service Switch.
This simplify seccomp policy file when running mesa in the minijail
sandbox.

Signed-off-by: Lepton Wu <lepton@chromium.org>

Merge request reports