• 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
Removing a system extension
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Removing a system extension


  • Subject: Removing a system extension
  • From: Peter <email@hidden>
  • Date: Mon, 19 Sep 2005 10:05:56 +0800

Hello,

I have been trying to remove a system extension using security framework. Somehow it does not allow me to remove the extensions. What puzzles me on the bash shell, I am able to remove the extensions without fuss,

$ sudo rm -r /System/Library/Extensions/thirdparty.kext

I understand the dangers of removing system extensions, this is a part of a simple installer (in this case uninstall) program . Can anyone explain why can't I do it under my program but can otherwise on the command line ?

// Part of the code, earlier settings are not shown here

 char *args[3];
 char removeProg[] = "/bin/rm";
 char path[] = "/System/Library/Extensions/thirdparty.kext";

 args[0] = "-r";
 args[1] = path;
 args[2] = NULL;
 err = AuthorizationExecuteWithPrivileges(authorizationRef,
                            removeProg, 0, args, NULL);

Thanks.

Peter
_______________________________________________
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: Removing a system extension
      • From: "Corey O'Connor" <email@hidden>
  • Prev by Date: Re: Bindings&Actions on Document-based Applications
  • Next by Date: Standard Input/Output
  • Previous by thread: Disabling save panel's "Save" button
  • Next by thread: Re: Removing a system extension
  • Index(es):
    • Date
    • Thread