• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Sandboxing Command Line Tool
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Sandboxing Command Line Tool


  • Subject: Sandboxing Command Line Tool
  • From: Todd Heberlein <email@hidden>
  • Date: Thu, 10 Oct 2013 14:38:36 -0700

I am trying to sandbox a Command Line Tool, but I am having some troubles.

I created an entitlements file, and I checked its syntax with plutil.

I tried adding the entitlements via Xcode’s “Code Signing” group in “Build Settings”. But when I ran the program

	(1) a window popped up saying OS X “needs to repair your Library to run applications”
	(2) then in the Terminal window (where I launched the application) I got "Illegal instruction: 4”

Every subsequent try to run the program did *not* cause the window to pop up, but I still got  "Illegal instruction: 4”

Next I removed the code signing in Xcode. Verified the program ran from the command line. Then used codesign tool to apply sandbox manually:

$ codesign -f -s "3rd Party mac Developer Application:" -i "com.netsq.SandboxUnixCommand" --entitlements /Users/.../SandboxUnixCommand.entitlements /Users/.../SandboxUnixCommand

But I got the same problem as above (window pops up, then “Illegal instruction: 4”.

On the console I see the following message:

10/10/13 2:19:52.278 PM xpcd[223]: SandboxUnixCommand[1925]: registration request failed: (0x11, 0x0) Container object initialization failed: failed to get bundleid for app "/Users/.../SandboxUnixCommand”


Any idea what I am doing wrong?

Are there examples out there for building a UNIX Command Line Tool and then applying sandboxing to it?

Thanks,

Todd


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Sandboxing Command Line Tool
      • From: Todd Heberlein <email@hidden>
  • Prev by Date: Re: man pages
  • Next by Date: Re: Sandboxing Command Line Tool
  • Previous by thread: Re: man pages
  • Next by thread: Re: Sandboxing Command Line Tool
  • Index(es):
    • Date
    • Thread