X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/fa7225c82381bac4432a6edf16f53b5370238d85..7e6b461318c8a779d91381531435a68ee4e8b6ed:/OSX/libsecurity_codesigning/lib/singlediskrep.cpp?ds=sidebyside diff --git a/OSX/libsecurity_codesigning/lib/singlediskrep.cpp b/OSX/libsecurity_codesigning/lib/singlediskrep.cpp index 0e63bde8..c475d78c 100644 --- a/OSX/libsecurity_codesigning/lib/singlediskrep.cpp +++ b/OSX/libsecurity_codesigning/lib/singlediskrep.cpp @@ -82,6 +82,14 @@ size_t SingleDiskRep::signingLimit() return fd().fileSize(); } +// +// No executable segment in non-machO files. +// +size_t SingleDiskRep::execSegLimit(const Architecture *) +{ + return 0; +} + // // A lazily opened read-only file descriptor for the path. // @@ -100,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.