Hi Jens,

I understand what you mean, but are you saying that I should not use any 
Foundation library functions when running as root user? There are sometimes 
needs to have super user permission, how do we address that? I mean, lets say 
we need to add a rule in fw (ipfw) which requires to be root user right?

Regards,
Varun

From: Jens Alfke <j...@mooseyard.com<mailto:j...@mooseyard.com>>
Date: Friday, 4 April 2014 11:47 am
To: Development 
<varun.chandramo...@wontok.com<mailto:varun.chandramo...@wontok.com>>
Cc: "cocoa-dev@lists.apple.com<mailto:cocoa-dev@lists.apple.com>" 
<cocoa-dev@lists.apple.com<mailto:cocoa-dev@lists.apple.com>>
Subject: Re: NSOperation Issues


On Apr 3, 2014, at 4:11 PM, Varun Chandramohan 
<varun.chandramo...@wontok.com<mailto:varun.chandramo...@wontok.com>> wrote:

I suspect that NSOperationQueue cannot be used as daemon running as root user?

This isn't directly related to your question, but you almost certainly 
shouldn't be running your code as root. That's a bad security practice - it 
means that security problems in your code might be exploitable to take control 
of the entire OS. If your code shouldn't run as any specific user account, the 
usual approach is to create a special account for it.

-Jens
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to