Prevent opening and reading non-regular files