Slashdot Mirror


Understanding Mac OS X Kernel

An anonymous reader writes "Kernelthread.com has published a flash presentation overview of the Mac OS X kernel. Its title is 'A Tour of the Mac OS X Kernel' and it also covers Tiger features. Maybe interesting to note is that the slides are from a talk given to the NSA. Well, there is a nice security architecture diagram towards the end of the presentation."

42 of 57 comments (clear)

  1. amazing! by Anonymous Coward · · Score: 3, Funny

    A flash presentation that didn't turn my p4 into a 386!

    1. Re:amazing! by brilinux · · Score: 5, Funny


      What, did it turn it into a G5?

  2. Re:AES encryption under the hood? by zhiwenchong · · Score: 4, Informative
  3. inside the kernel by Anonymous Coward · · Score: 5, Funny

    Does it give away the kernel's secret recipe?

    1. Re:inside the kernel by commodoresloat · · Score: 2, Funny

      Mmmm, kernel pancake....

    2. Re:inside the kernel by green+pizza · · Score: 2, Insightful

      kernel's secret recipie
      You don't need 11 herbs and spices, that's for sure. "Seasoned Oven Fried Chicken" spiced with cheap McCormick Season-All Seasoned Salt from your local grocery store will give you almost the same flavor. As an added bonus, you can control exactly how much or how little grease you want! Take that, KFC!

  4. Re:AES encryption under the hood? by Anonymous Coward · · Score: 1, Informative

    You're wrong.

    Maybe you're thinking of the old DES standard.

    http://en.wikipedia.org/wiki/Data_Encryption_Stand ard

  5. Eek, a presentation in flash! by Psychic+Burrito · · Score: 2, Informative

    There is no way to step back (at least I found none), to get an overview, to jump to a certain frame (like the mentioned security architecture diagram) - why do people make presentations in flash, instead of pdf or css (example)?

    1. Re:Eek, a presentation in flash! by macshome · · Score: 1

      Erm, right click > Back seemed to work for me.

  6. Keynote by TimmyDee · · Score: 4, Informative

    I'm willing to bet it's in Flash because he did the presentation in Keynote. While the SWF export in Keynote isn't great, at least it preserves transitions, fonts, and other formatting options and doesn't look like shit (like the HTML export of another presentation software).

    Plus, it takes one step to export. I haven't seen anything that will do that with CSS.

    --
    Per Square Mile, a blog about density
    1. Re:Keynote by Val314 · · Score: 1

      PDF would be a better choice...

  7. Worthless filesystems. by Given+M.+Sur · · Score: 4, Funny

    So HFS+ can only support file sizes up to 8 exabytes. What a worthless filesystem.

    --
    nil
    1. Re:Worthless filesystems. by Chucker23N · · Score: 4, Funny

      And here I was, hoping HFS+ would provide the means to fit all my pr0n on it.

    2. Re:Worthless filesystems. by Anonymous Coward · · Score: 1, Insightful

      You must be one hell of a pornophile if your files are larger than 8,589,934,592 GB.

    3. Re:Worthless filesystems. by Chucker23N · · Score: 1

      I have desires and wishes to be satisfied.

  8. Re:AES encryption under the hood? by Anonymous Coward · · Score: 3, Informative

    FS and swap encryption is used to encrypt user's home directories. This is the "File Vault" functionality of OS X. Tiger adds the ability to optionally encrypt the users swap space also (only on file vaulted home folders) to secure the users memory space as well. A file vaulted home folder becomes a sparse disk image file (a disk image that can grow in size as it's written too) that uses the users account password to open. If the user losses their account password then the admin can use the master file vault (set separately) to restore the users home directory. That scenario only really applies for multi-user systems.

    I am not sure what bit of AES is used though. I would guess 128 bit at least.

  9. For explanatory purposes by Anonymous Coward · · Score: 1, Informative
    "Largest file size is 2^63 bytes"

    Pedantic note:
    • 2^63 bytes == 9007199254740992 KiB
    • 9007199254740992 KiB == 8796093022208 MB
    • 8796093022208 MB == 8589934592 GB
    • 8 exabytes == 8*(1,024*1,024*1,024) GB == 8*1073741824 GB == 8589934592 GB


    ____

    Now my head hurts
  10. Ctrl-Click or Right Click by josephtd · · Score: 1

    Gives you a popup when done in cinjuntgion with mouse over the presentation. At least it does in Safari.

    1. Re:Ctrl-Click or Right Click by rthille · · Score: 1

      Yeah, I tried that. But selecting 'Back' from the resulting menu had no effect. (10.3.9, Safari 1.3 v312)

      --
      Awesome furniture, accessories and cabinetry in Santa Rosa, CA: http://humanity-home.com/
  11. I wish it was PDF by green+pizza · · Score: 1

    I'm willing to bet it's in Flash because he did the presentation in Keynote.
    Too bad he didn't export it to PDF. Keynote 2 (the version that ships in iWork 05) has an excellent PDF exporter.

    1. Re:I wish it was PDF by jeblucas · · Score: 1
      Please read what OP said:
      While the SWF export in Keynote isn't great, at least it preserves transitions, fonts, and other formatting options...
      That's a fancy PDF that preserves transitions.
      --
      blarg.
  12. Embedd C++ by bhima · · Score: 1

    I find it interesting that parts of the Kernel were written in Embedded C++. I haven't had the opportunity to use this although I'd love too. Anyone have an experience with EC++ they'd like to share?

    --
    Nothing in the world is more dangerous than sincere ignorance and conscientious stupidity.
    1. Re:Embedd C++ by Nuuskis · · Score: 4, Interesting

      Embedded C++ is upwards compatible subset of ANSI Standard C++. So if you have written very simple C++, for example when coming from C and making your first C++ program, you probably "used" EC++. It is just C++ without namespaces, templates, exceptions, RTTI (Runtime Type Identification), STL (Standard Template Library), and some other stuff that might make executable noticeably bigger and cause unwanted memory consumption.

  13. * Encrypted swap (optional, uses AES) by VValdo · · Score: 1

    Wow.. So it looks like they finally fixed this security bug where the password could be discovered in the swap. Anyone know how to turn this feature on? (don't have Tiger yet & a quick Google search turns up nothing)

    In the same vein, I recall OS X versions up to jaguar had weakly-hashed user passwords in a SAMBA directory somewhere. If I'm remembering correctly, can someone verify that this is no longer the case in Tiger?

    W

    --
    -------------------
    This is my SIG. There are many like it, but this one is mine.
    1. Re:* Encrypted swap (optional, uses AES) by kerry-buckley · · Score: 5, Informative
      Wow.. So it looks like they finally fixed this security bug where the password could be discovered in the swap. Anyone know how to turn this feature on?
      There's a "use secure virtual memory" checkbox in the security preference pane.
    2. Re:* Encrypted swap (optional, uses AES) by 68kmac · · Score: 2, Insightful

      It's an option in the "Security" panel of the System Preferences.

    3. Re:* Encrypted swap (optional, uses AES) by macshome · · Score: 1

      You turn on encrypted swap in the Security prefs. I know of some people doing netboot with encrypted local swap for security.

      Hashing is now selective again. If you don't need SMB access for an account it won't make the NTLM hash.

  14. Re:So, HFS+ can be case-sensitive... by ahknight · · Score: 3, Informative
  15. Re:So, HFS+ can be case-sensitive... by macshome · · Score: 2, Informative

    Just use diskutil on 10.3 or Disk Utility in the GUI on 10.4. Josh

  16. Flash under Windows by koehn · · Score: 1

    I take it nobody with a Windows box even tried to view the presentation. All of the space characters are rendered as "x20", which makes it a bit tough (nee impossible) to read.

    1. Re:Flash under Windows by Gulthek · · Score: 1

      Not here at work: Windows XP on a stock IBM. The presentation ran fine.

    2. Re:Flash under Windows by koehn · · Score: 1

      Weird. I'm running XP SP2 on a stock HP, and no such luck. Guess I'll try it from my Mac when I get home.

    3. Re:Flash under Windows by BiOFH · · Score: 1

      Well, that?s unfair. I mean it?s not like Mac users have had to put up with anything similar from Window?s non : standard character set choices. ;)

      --
      - I am made of meat.
    4. Re:Flash under Windows by koehn · · Score: 1

      The space character (0x20) is the same on both platforms, however. At least MacOS X switched to a more "standard" line terminator (\r\n), however inferior I might feel it is to it's MacOS = 9 equivalent (\r).

      Character encoding is truly a bane of modern software. It's kind of like Y2K, but it keeps going on forever, since nobody is going to bother switching legacy systems to support Unicode (and even then, you have multiple choices for encoding).

    5. Re:Flash under Windows by mollymoo · · Score: 1

      All good here on Win2k w. Firefox & Flash7.

      --
      Chernobyl 'not a wildlife haven' - BBC News
  17. Re:Bad SWF file? by cide1 · · Score: 1

    I got that under firefox, it works fine in IE

    --
    -- the computer doesn't want any beer, no matter how much you think it does. NEVER, EVER feed your computer beer.
  18. Re:Bad SWF file? by BrianPan · · Score: 1

    Looks ok in Opera on Windows, too.

  19. Re:NSA deciding how to break into Mac computers? by noewun · · Score: 2, Informative

    Sorry to dint your tinfoil body suit, but the reason the NSA is interested in OS X is because they use OS X. I have a very interesting, very thorough PDF authored by the NSA (report #I331-009R-2004) on how to secure an OS X box, from install through end use. Very interesting, and I learned a bit.

    --
    I am a believer of momentum and curves.
  20. Re:Bad SWF file? by aristotle-dude · · Score: 1

    Maybe you have Flashplayer 6 installed instead of Flashplayer 7?

    --
    Jesus was a compassionate social conservative who called individuals to sin no more.
  21. Re:NSA deciding how to break into Mac computers? by wirelessbuzzers · · Score: 2, Informative

    The NSA is not allowed to break US laws. Of course, they spy on other countries, so they're probably allowed to break other countries' laws.

    As for the other nasty stuff, it sounds an awful lot like your tinfoil hat is on too tight.

    Also, if you want to hack a computer, you probably care more about the services running on it than the guts of the kernel, at least up to the point where you install a rootkit. They probably care more because they want to use MacOS X in a highly secure environment. SEDarwin anyone?

    --
    I hereby place the above post in the public domain.
  22. Shocking ignorance of U.S. government activities by Futurepower(R) · · Score: 1


    It's shocking how ignorant people are of the activities of the U.S. government. Look at some of the other replies to the parent post.

    Most openly managed organizations have great difficulty staying on track. Secret organizations develop bad habits very quickly. In secret organizations, cover-ups become habit. Even the cover-ups themselves can be kept secret from other people in the same organization.

    Supposedly, U.S. spy agencies are not allowed to break U.S. laws. However, organizations that hire people to break the laws of other countries don't suddenly have moral control over the law-breakers when they return to the United States.

  23. Didn't work for me, though :-( (Safari 2, 10.4.1) by Psychic+Burrito · · Score: 1

    Bummer :-(