Re: How to make an application non-executable?
Re: How to make an application non-executable?
- Subject: Re: How to make an application non-executable?
- From: Todd Ransom <email@hidden>
- Date: Fri, 16 Jul 2004 14:16:51 -0600
If you're just worried about it running accidentally, and not worried
about providing real security against someone running it maliciously,
just chmod it so it's not executable.
In your app's bundle, under Contents/MacOS/ lives the real executable.
chmod -x myapp
will prevent it from running.
chmod +x when you copy it out of the setup app will enable it to run
again. I'm not sure if there's a Cocoa way to do this other than
running chmod with NSTask or something similar. It is a permission bit
so if Cocoa has an API for setting unix/darwin/BSD permissions I would
look into that.
HTH,
TR
On Jul 16, 2004, at 1:15 PM, Bill Cheeseman wrote:
I'm looking for an easy way to make an application non-executable, for
example, by compressing or encrypting it. Any ideas?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.