sysctl
sysctl
- Subject: sysctl
- From: Matt Jaffa <email@hidden>
- Date: Mon, 08 Nov 2004 16:28:55 -0700
Hi,
I have defined my own sysctl variables in my NKE , and they are working
great and everything, but
I would like a non-root application to be able to set my variables, but
it is not letting me even though I am doing this:
SYSCTL_STRUCT(_kern, OID_AUTO, jaffaethernode,
CTLFLAG_RW|CTLFLAG_ANYBODY, &somo2, EtherNode, "EtherNode");
I thought that setting the flag to CTLFLAG_ANYBODY would allow anyone
to be able to set this structure no matter if it is a root app
or regular user app.
Is it because I am branching off of _kern that it will only allow a
root app to set my structure.
And if is this way, must I branch off of something else like _user to
allow me to modify it with a non-root app. I have tried
to tie my structure to the _user branch, but it doesn't register it
with _user so that when I do sysctlbyname it returns ENOENT = 2.
So that is why I am sticking with _kern, but would really like it if a
non-root app can modify my variable jaffaethernode.
Any help is appreciated,
Thanks,
Matt
_______________________________________________
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