]> git.saurik.com Git - apple/security.git/blobdiff - OSX/libsecurity_codesigning/lib/singlediskrep.cpp
Security-59306.61.1.tar.gz
[apple/security.git] / OSX / libsecurity_codesigning / lib / singlediskrep.cpp
index 2c0cbd27f76f7b8e17ef5f9a6cf10526a58549d0..c475d78c1554e020327093fbe2383f0109722562 100644 (file)
@@ -108,6 +108,12 @@ void SingleDiskRep::flush()
        mFd.close();
 }
 
+//Check the magic darwinup xattr
+bool SingleDiskRep::appleInternalForcePlatform() const
+{
+       return mFd.hasExtendedAttribute("com.apple.root.installed");
+}
+
 //
 // The recommended identifier of a SingleDiskRep is, absent any better clue,
 // the basename of its path.