• 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
AppKit crash: dirIsRootUnsafe
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AppKit crash: dirIsRootUnsafe


  • Subject: AppKit crash: dirIsRootUnsafe
  • From: Gueorgui Tcherednitchenko <email@hidden>
  • Date: Tue, 11 Oct 2005 15:26:17 +0200

Hi all,

I'm working on an app that at one point launches another app with root privileges.
On some 10.3.9 systems, that second app crashes with the following log:


Thread 0 Crashed:
0 com.apple.AppKit 0x93223880 dirIsRootUnsafe + 0xa0
1 com.apple.AppKit 0x9322390c dirIsRootUnsafe + 0x12c
2 com.apple.AppKit 0x9322390c dirIsRootUnsafe + 0x12c
3 com.apple.AppKit 0x93223a30 _NSIsInsecureBundle + 0x90
4 com.apple.AppKit 0x93136150 -[NSInputManager _validateBundleSecurity] + 0x14
5 com.apple.AppKit 0x931361c0 -[NSInputManager _loadBundle] + 0x44
6 com.apple.AppKit 0x931358ac -[NSInputManager initWithName:host:] + 0x548
7 com.apple.AppKit 0x92f69564 +[NSInputManager initialize] + 0x398
8 libobjc.A.dylib 0x908629e0 class_initialize + 0x140
9 libobjc.A.dylib 0x90861524 _class_lookupMethodAndLoadCache + 0x84
10 libobjc.A.dylib 0x90861298 objc_msgSend + 0xb8
11 com.apple.AppKit 0x92f3f2d4 -[NSApplication finishLaunching] + 0x84
12 com.apple.AppKit 0x92eacf04 -[NSApplication run] + 0x74
13 com.apple.AppKit 0x92f697bc NSApplicationMain + 0x1d0
[...]


Searching the archives of this list as well as the web, I was unable to find a reason for this to happen.

This app is launched using AuthorizationCreate and AuthorizationExecuteWithPrivileges:

AuthorizationCreate(NULL, kAuthorizationEmptyEnvironment, kAuthorizationFlagDefaults, &auth);
AuthorizationExecuteWithPrivileges(auth, kLaunchedAppPath, kAuthorizationFlagDefaults, NULL, NULL);



Did anyone experience this problem before? What might I be doing wrong?

Thanks a bunch
--
Gueorgui.



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


  • Follow-Ups:
    • Re: AppKit crash: dirIsRootUnsafe
      • From: Gueorgui Tcherednitchenko <email@hidden>
  • Prev by Date: Re: NSAllowsNullArgument undefined?
  • Next by Date: dragImageForRowsWithIndexes :::: (NSPointPointer) dragImageOffset?
  • Previous by thread: Re: NSAllowsNullArgument undefined?
  • Next by thread: Re: AppKit crash: dirIsRootUnsafe
  • Index(es):
    • Date
    • Thread