Removing a system extension
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