• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How to find that my app is running under same security session in fast user switch
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Implementing search field in core-data app
  • Next by Date: Re: Why is [NSArray arrayWithObjects:] failing for me?
  • Previous by thread: Re: Implementing search field in core-data app
  • Next by thread: Animating an NSView in from Below.
  • Index(es):
    • Date
    • Thread