Re: Removing a system extension
Re: Removing a system extension
- Subject: Re: Removing a system extension
- From: Peter <email@hidden>
- Date: Mon, 19 Sep 2005 16:22:23 +0800
Hello Corey,
You have to understand Security Framework before understand my
problem. The arguments are not the same order as the usual main(argc,
argv). removeProg[] contains the path of the program to be executed
under super user.
I am sure the statements are correct because the other files/
directories are remove easily whether it belongs to root or not. Why
it is unable to remove a System Extension, that's a puzzle.
Peter.
On Sep 19, 2005, at 2:19 PM, Corey O'Connor wrote:
On 9/18/05, Peter <email@hidden> wrote:
args[0] = "-r";
args[1] = path;
args[2] = NULL;
err = AuthorizationExecuteWithPrivileges(authorizationRef,
removeProg, 0, args, NULL);
I haven't executed a program using the security framework, but if it
works like any of the others then the 1st argument will be the program
name. EG:
args[0] = "rm";
args[1] = "-r";
/// And so on
I'd imagine that when rm is executing it is lacking the "-r" switch,
causing it to fail. I can't really tell without the error the
execution returns. What is the value of "err"?
--
-Corey O'Connor
_______________________________________________
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