Re: Delete myDriver.kext files from normal user.
Re: Delete myDriver.kext files from normal user.
- Subject: Re: Delete myDriver.kext files from normal user.
- From: Jacques Petit <email@hidden>
- Date: Fri, 17 Oct 2008 17:28:53 -0400
It's a security flaw. Assuming you had an error in your code that
allowed that allowed the string to be exploited, the system call would
allow a person to do anything in the computer, subject to the
permissions your process has.
On 17-Oct-08, at 5:17 PM, Jonathon Kuo wrote:
On Oct 17, 2008, at 1:21 PM, Kyle Sluder wrote:
On Fri, Oct 17, 2008 at 8:51 AM, Sachin Kumar <email@hidden
> wrote:
I am using system("rm -r myDriver.kext") to delete the file.
Please, *don't do this*. Pretend 'system' doesn't exist. unlink(2)
does exactly what you're looking for.
Just curious why the recommendation against system()?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden