• 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
Re: How to lock an object?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to lock an object?


  • Subject: Re: How to lock an object?
  • From: Bill Bumgarner <email@hidden>
  • Date: Thu, 04 Jun 2009 22:11:46 -0700

On Jun 4, 2009, at 8:57 PM, cocoa learner wrote:
I am writing an application which read an encrypted data from disk, decrypt
it and display that in UI. Now the object that holds that decrypted data
should not page out to swap area (for security reason).
This is my need. Is there a better way to do this?

If an attacker can get to the swap files, that means one of two things:

(a) they have (or had) superuser on the machine

(b) the attacker has physical possession of the machine (which has been rebooted or powered down; see (a))

If (a), you've already lost. With superuser, the attacker can capture events, inject code, commandeer the window server, and/or p0wnz3 your process just about anyway they want.

So, really, you are defending against (b). In the case of (b), for defending the swapfile to even matter, there must be no other decrypted bits on disc anywhere else. Go that?

Assuming you do, then the easiest way to secure the swapfile is to turn on swapfile encryption.

Actually, it might be the only reasonable solution.

There is no way you are going to be able to mlock() all of the random allocations associated with any particular sub-graph of objects in your application. The allocations are an implementation detail and may change at whim of update, architecture and/or OS release.

You might be able to lock down your entire process, but that would be exceptionally rude as it is going to take away significant resources from other applications and, on a particularly resource constrained system, could lead to exhaustion of memory resources entirely.

b.bum


_______________________________________________

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


References: 
 >How to lock an object? (From: cocoa learner <email@hidden>)
 >Re: How to lock an object? (From: David Duncan <email@hidden>)
 >Re: How to lock an object? (From: cocoa learner <email@hidden>)

  • Prev by Date: Re: How to lock an object?
  • Next by Date: Re: including cocoa in cpp file
  • Previous by thread: Re: How to lock an object?
  • Next by thread: Re: How to lock an object?
  • Index(es):
    • Date
    • Thread