EPERM for CTLFLAG_ANYBODY sysctl.
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=18VIE9qtBRv1dHxHrnljFGNbxsje2SxRZiQtdSf7ZKM=; b=tUmO9++hLSELzRFGu592lkFA1zLuRK09bdYN9qPRdzNRKCfmb1rUdPfi+zJocnbbsa kR5pHoh4n8mOaKdL7Fhjm7/59Ge85QEv5YVdVExBmgd2Ymxt2OAOMsiiGuSDSMa8lcbs ZI0N2S6nhrPztnhn+n9hJuWBZ2NHobZLvXHps= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=UrtVgRq2GDnxwJJLKnfO2COODgaDPUcoe2XL3UJKA+i62GM/MyYNRFRsMEErFKNxVA BUUtBb/5WYUW7IywPuNyxQKN3LDRkhNuFyoM3AJhX3/qDAEh+maqe7I8lV8zzc6J7pjB FbDIVYplgYsuIPrLpZnpBQmOCGUJf9rNxpuu0= 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 (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)
-
Maxim Zhuravlev