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

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
  • Follow-Ups:
    • Re: Removing a system extension
      • From: Sherm Pendley <email@hidden>
References: 
 >Removing a system extension (From: Peter <email@hidden>)
 >Re: Removing a system extension (From: "Corey O'Connor" <email@hidden>)

  • Prev by Date: Re: willChangeValueForKey, Ivars and Core Data
  • Next by Date: Re: How to customize NSDocument's error message 'The document ... could not be opened'
  • Previous by thread: Re: Removing a system extension
  • Next by thread: Re: Removing a system extension
  • Index(es):
    • Date
    • Thread