Skip to content

Add Sandbox support #29

@noahsw

Description

@noahsw

Without temporary entitlements and some changes to FRCrashLogFinder, the app can't find any crash reports.

This can be solved by adding a temporary entitlement com.apple.security.temporary-exception.files.home-relative-path.read-only to:

  • /Library/Logs/HangReporter/
  • /Library/Logs/DiagnosticReports/
  • /Library/Logs/CrashReporter/

and also update the way we find libraryDirectory in FRCrashLogFinder.m's findCrashLogsSince:

const char *home = getpwuid(getuid())->pw_dir;
NSString *path = [[NSFileManager defaultManager]
stringWithFileSystemRepresentation:home
length:strlen(home)];
NSURL *url = [NSURL fileURLWithPath:path isDirectory:YES];
libraryDirectory = [url.path stringByAppendingPathComponent:@"Library"];

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions