EPERM for CTLFLAG_ANYBODY sysctl.
EPERM for CTLFLAG_ANYBODY sysctl.
- Subject: EPERM for CTLFLAG_ANYBODY sysctl.
- From: "Maxim Zhuravlev" <email@hidden>
- Date: Wed, 20 Aug 2008 16:02:59 +0400
Hi, all.
Could you give me a hint, why do I get an EPERM error from
sysctlbyname() for a write attempt to a sysctl of a type:
SYSCTL_PROC (
_kern,
OID_AUTO,
my_name,
CTLTYPE_OPAQUE | CTLFLAG_WR | CTLFLAG_ANYBODY | CTLFLAG_KERN,
0,
0,
sysctl_handler, // my handler
"S",
""
);
The sysctl is registered from within a kext.
I get EPERM error for non-root processes, while it works fine for root
processes.
Shouldn't CTLFLAG_ANYBODY flag make it possible for non-root processes
to write to the sysctl?
Thanks in advance,
- Maxim.
_______________________________________________
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