Re: Change to root uid
Re: Change to root uid
- Subject: Re: Change to root uid
- From: Peter Lovell <email@hidden>
- Date: Mon, 14 Feb 2005 19:16:52 -0500
On Feb 14, 2005, at 6:35 PM, Carl Smith wrote:
I have a NKE and a client that I to talk to each other. If the client
app is run at some user’s, that might not be root, I still want my
client/NKE to talk with each other, but it is my understanding that
NKE’s need to be set with root user options only. In this case I need
to set the uid to root within my client application.
Is this possible and if so could you point me in the right direction
as to what api’s I need to be using?
The ownership/permissions of the nke need to be root/0755 for security
reasons but that doesn't mean that it "runs" as root. It runs in the
kernel and any user can talk to it, using various mechanisms. It's up
to you to make sure that the uid and/or application which talk to your
nke are suitable and appropriate for what you want to do.
Your client application does not need to be suid root, nor should you
(for usual activity) restrict your nke to a connection which can only
be made by someone logged in as root.
You haven't given us enough information to provide much more help than
this. The best thing would be to describe a bit more of what you're
trying to do.
Regards.....Peter
p.s. remember also that nke interfaces are subject to change, and Apple
presently discourages some of this development precisely because of the
version-to-version compatibility issues
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden