Does the rest of your change make this work for SecureDirectoryStream anyway? (The comment might be worthwhile nonetheless.) Also, which operation is the one in question? I'm trying to figure out what level a non-secure DirectoryStream is getting involved.