What I did found about this issue:
The key of described issue is in the answering for ES_EVENT_TYPE_AUTH_OPEN event.
How ep_client should answer:
If allow all open operations: ep_client should answer with 0xffffffff flag. es_respond_flags_result(aClient, _esMessage, 0xffffffff, aCacheFlag);
if deny all open operations: 0x0
if deny only read: 0xffffffff & ~FREAD
if deny only write: 0xffffffff & ~FWRITE
if deny only read and write but allow others:
int32_t flags = 0xffffffff;
flags = flags & ~FWRITE;
flags = flags & ~FREAD;
es_respond_flags_result(aClient, _esMessage, flags, aCacheFlag);
Answering in other ways may cause to undefined system behavior, such as described above.