Hi all

My app can run multiple instances of itself for different users.
I want to check that "in case of a fast user switch", If my app is
requesting data from port of other user, then i should block this attempt.

one suggested approach is to use <Security/AuthSession.h>
which has
*SessionGetInfo*(callerSecuritySession, &mySession, &sessionInfo);

This gives me the bits like *sessionHasGraphicAccess*, *sessionIsRoot,* and
others

Here i am getting the "SecuritySessionId" for my process.
I am confused that from which id/bit i should compare this id to get the
info about this -  "Form where my app is running" and "from where it is
getting served" are "running in the same security session"

Please correct my understanding. I am confused with global and per-user
window-server.



-- 
--
Warm Regards,

Parimal Das
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to