[PATCH 2/5] security: Check if R/O or shared disk is not directory