• 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: NSTask arguments
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTask arguments


  • Subject: Re: NSTask arguments
  • From: Kyle Sluder <email@hidden>
  • Date: Wed, 20 Feb 2013 20:22:47 -0800

On Wed, Feb 20, 2013, at 08:11 PM, Jens Alfke wrote:
> You could conceivably create a fake volume in the filesystem that didn’t
> correspond to any real file but just returned your data when read
> (something like what the disk images driver does) … but the moment you
> did this, your data would exist in the filesystem and would be accessible
> to any other process that tried to open and read the same path.

You can accomplish this without writing to the file system, but it
involves foregoing NSTask. Fork, close stdin in the child process, open
a pipe (so that the child gets the read end in fd 0), then exec the tool
with "/dev/stdin" as the filename argument.

I'm not sure it's any more secure than just writing to the filesystem,
though. It depends on whether OS X lets a user view the memory of other
processes running as that user.

--Kyle Sluder

_______________________________________________

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


  • Follow-Ups:
    • Re: NSTask arguments
      • From: Jens Alfke <email@hidden>
References: 
 >NSTask arguments (From: email@hidden)
 >Re: NSTask arguments (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: How to recognize mutability?
  • Next by Date: Re: NSTask arguments
  • Previous by thread: Re: NSTask arguments
  • Next by thread: Re: NSTask arguments
  • Index(es):
    • Date
    • Thread