Skip to content
Commit 3fbb8e7f authored by Pavel Emelyanov's avatar Pavel Emelyanov
Browse files

proc: Open anon_dev mapped files with O_RDONLY



Commit a3a10c44 made all map_files opens happen with
O_PATH for speed. However some files (sockets and aio
rings) are not detected by this, since kernel's ->open
callback is not called and we don't get the ENXIO code.

Fix this by opening non-regular files with O_RDONLY.

Signed-off-by: default avatarPavel Emelyanov <xemul@parallels.com>
parent a20ed3c6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment