Commit 9ab7633f authored by Akira TAGOH's avatar Akira TAGOH

Bug 95477 - FcAtomicLock fails when SELinux denies link() syscall with EACCES

This is an issue on Android M, which denies non-root users access to link().

Patch from Rodger Combs
parent 560506b3
......@@ -131,7 +131,7 @@ FcAtomicLock (FcAtomic *atomic)
return FcFalse;
}
ret = link ((char *) atomic->tmp, (char *) atomic->lck);
if (ret < 0 && (errno == EPERM || errno == ENOTSUP))
if (ret < 0 && (errno == EPERM || errno == ENOTSUP || errno == EACCES))
{
/* the filesystem where atomic->lck points to may not supports
* the hard link. so better try to fallback
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment