firesheep icon indicating copy to clipboard operation
firesheep copied to clipboard

warning: 'AuthorizationExecuteWithPrivileges' is deprecated: first deprecated in OS X 10.7

Open 100ideas opened this issue 12 years ago • 8 comments

Apparently AuthorizationExecuteWithPrivileges() is deprecated in OS X 10.7. Everything compiles (with warnings about this deprecation) but when running the extension in Firefox 25, after clicking "Start Capturing" and authenticating, an error is thrown

osx_run_privileged: AuthorizationExecuteWithPrivileges() failed: -60031

The deprecated code is in osx_platform.cpp.

More info about this on stack overflow.

100ideas avatar Nov 14 '13 21:11 100ideas

yeah I encountered this last night as well on OSX10.9/FF25. Going to have a play with it today to see what I can do..

EDIT: yeah seems to occur regardless of where the backend binary is placed/executed. If sudo firesheep-backend --fix-permisions is called from a prompt then the error is avoided. Is this experienced on all versions of OSX currenty?

tsujamin avatar Nov 15 '13 00:11 tsujamin

well thats strange, just got a friend to build the latest revision on his 10.8 machine and his version doesnt suffer the -60031..

tsujamin avatar Nov 15 '13 03:11 tsujamin

I have FileVault turned on, could that be it?

— Sent from my rotary phone

On Thu, Nov 14, 2013 at 7:02 PM, Benjamin Roberts [email protected] wrote:

well thats strange, just got a friend to build the latest revision on his 10.8 machine and his version doesnt suffer the -60031..

Reply to this email directly or view it on GitHub: https://github.com/codebutler/firesheep/issues/209#issuecomment-28543993

100ideas avatar Nov 15 '13 05:11 100ideas

I run FileVault also... The computer my friend used to build the working version (OSX 10.8, which happened to work on my machine) didnt have it enabled...

tsujamin avatar Nov 28 '13 08:11 tsujamin

I use Mavericks, and I get these errors:

ekran resmi 2013-12-10 14 21 41 ekran resmi 2013-12-10 14 21 20

furkanayhan avatar Dec 10 '13 12:12 furkanayhan

You can work around this issue by running:

$ sudo /tmp/firesheep/firesheep-backend --fix-permissions

I'll try to figure out a better solution, but it seems the new official API requires codesigning.

https://developer.apple.com/library/mac/samplecode/SMJobBless/Introduction/Intro.html#//apple_ref/doc/uid/DTS40010071-Intro-DontLinkElementID_2

This thread has some truly awful hacks involving applescript. I'd be interested to know what that actually does under the hood. http://stackoverflow.com/questions/6841937/authorizationexecutewithprivileges-is-deprecated

codebutler avatar Dec 29 '13 18:12 codebutler

Just a curious sidenote: I built a copy on 10.8, installed it onto my 10.9 machine and it worked. I did read that section about helper tools and codesigning, seems like alot of hoops to jump through

tsujamin avatar Dec 29 '13 23:12 tsujamin

@codebutler So, what should I do to compile firesheep successfully?

furkanayhan avatar Jan 12 '14 11:01 furkanayhan