If open fails, either the file doesn't exist or permissions are wrong. TODO: fix libdsm to return the good error code in case or bad permissions.