• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/Security-57031.1.35/Security/libsecurity_codesigning/lib/

Lines Matching +defs:file +defs:executable

6  * This file contains Original Code and/or Modifications of Original Code
8 * Version 2.0 (the 'License'). You may not use this file except in
11 * file.
73 // capture the path of the main executable before descending into a specific version
85 val.allow("^(\\.LSOverride|\\.DS_Store|Icon\r|\\.SoftwareDepot\\.tracking)$", DirValidator::file | DirValidator::noexec);
107 // conventional executable bundle: CFBundle identifies an executable for us
108 if (CFRef<CFURLRef> mainExec = CFBundleCopyExecutableURL(mBundle)) // if CFBundle claims an executable...
153 // focus on the Info.plist (which we know exists) as the nominal "main executable" file
167 // we're getting desperate here. Perhaps an oldish-style installer package? Look for a *.dist file
185 // Return the full path to the one-and-only file named something.dist in a directory.
198 if (!strcmp(ent->fts_path + ent->fts_pathlen - 5, ".dist")) { // found plain file foo.dist
241 // Try to create the meta-file directory in our bundle.
259 // Load's a CFURL and makes sure that it is a regular file and not a symlink (or fifo, etc.)
300 // by default, we take components from the executable image or files
316 // The binary identifier is taken directly from the main executable.
353 // exclude the main executable file
357 string executable = mainExecutablePath();
358 if (!executable.compare(0, resources.length(), resources, 0, resources.length())
359 && executable[resources.length()] == '/') // is proper directory prefix
361 + ResourceBuilder::escapeRE(executable.substr(resources.length()+1)) + "$");
398 if (CFDataRef data = mExecRep->component(slot)) // provided by executable file
401 string file = metaPath(resourceName);
402 if (::access(file.c_str(), F_OK) == 0)
403 CFArrayAppendValue(files, CFTempURL(file));
471 // old (V1) executable bundle rules - compatible with before
485 if (ctx.signingFlags() & kSecCSSignOpaque) // Full Metal Jacket - everything is a resource file
491 // new (V2) executable bundle rules
586 val.allow("^(Versions/)?\\.DS_Store$", DirValidator::file | DirValidator::noexec); // allow .DS_Store files
591 // module.map must be regular non-executable file, or symlink to module.map in current version
592 val.allow("^module\\.map$", DirValidator::file | DirValidator::noexec | DirValidator::symlink,
621 // a much higher level. If we're called, we write to a file in the Bundle's meta directory.
629 // execWriter doesn't want the data; store it as a resource file (below)
631 // the resource directory always goes into a bundle file
648 // remove signature from the executable