How to find that my app is running under same security session in fast user switch
How to find that my app is running under same security session in fast user switch
- Subject: How to find that my app is running under same security session in fast user switch
- From: Parimal Das <email@hidden>
- Date: Mon, 4 Jan 2010 16:58:04 +0530
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 (email@hidden)
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:
This email sent to email@hidden