Re: loading kext from a daemon program
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Am 06.05.2006 um 11:51 schrieb Michael Smith: Just to make this COMPLETELY explicit. At 13:02 +0200 on 5/6/06, Markus Hitter wrote: why are the spawn family of interfaces so popular, if system(3) is so great? system(3) is a convenience function for the more common cases of spawning? I can't see a >stringent need to avoid this function either. If you call system, then the launching user environment (that is, the user and anyone who can alter his system) has complete control over what your launch command actually does: -He can point you at a different binary -He can probably screw with your arguments Yes, their is an argument that if the user enviroment can be modified then the person is already screwed. But why make it any easier? If fork/exec are a pain, then use one of the higher level API's! Cocoa has a very nice one, and I believe Carbon does as well. System is not the answer. -- ______________________________________________________ Arguing with an engineer is like wrestling with a pig in mud. After a while, you realize the pig is enjoying it. ______________________________________________________ Kevin Elliott <mailto:kelliott@mac.com> AIM/iChatAV: kelliott@mac.com (video chat available) ______________________________________________________ _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Kevin Elliott