Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SetProperty security...



I think you might be able to call IOUserClient::clientHasPrivilege() directly. It is a static function and should work on the thread that is calling IOService::setProperties.

Godfrey

On May 27, , at 9:52, Kevin Elliott wrote:

Greetings all...

I've got a couple of small drivers that use a setProperties interface to communicate with user space. I'm curious if there is a way to check the that the user space caller had root access. I'm basically trying to figure out if there is an equivalent to "IOUserClient::clientHasPrivilege( current_task(),
kIOClientPrivilegeAdministrator );" for setProperties interfaces. Does anyone know of such a beast?
_______________________________________________
darwin-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-development
Do not post admin requests to the list. They will be ignored.


References: 
 >FW: Crash in CFRunLoopSourceIsValid (From: Dirk Musfeldt <email@hidden>)
 >SetProperty security... (From: Kevin Elliott <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.