Loading...
dyld3/shared-cache/FileUtils.cpp dyld-625.13 dyld-733.8
--- dyld/dyld-625.13/dyld3/shared-cache/FileUtils.cpp
+++ dyld/dyld-733.8/dyld3/shared-cache/FileUtils.cpp
@@ -153,6 +153,14 @@
         return false;
 
     return (rootless_check_trusted(path.c_str()) == 0);
+}
+
+bool isProtectedBySIPExceptDyld(const std::string& path)
+{
+    if ( !sipIsEnabled() )
+        return false;
+
+    return (rootless_check_trusted_class(path.c_str(), "dyld") == 0);
 }
 
 bool isProtectedBySIP(int fd)