Benches Uncategorized

8

Secure virtual memory

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

Secure virtual memory (encrypted swapfiles) is disabled in Tiger Server. Can anyone tell me whether it's available in Leopard Server? In Tiger client, it's accessible through the Security prefpane. Thanks.

8 replies

Sign in or join Beachball Help to reply.

  1. 0

    Apple Support Community member

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    It WAS there in Tiger Server and is still there in Leopard Server. Same Place, Security prefpane.

    Peter

  2. 0

    Apple Support Community member

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    +It WAS there in Tiger Server+

    Not in my copy.

  3. 0

    Apple Support Community member

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    I got tired of all the little things that were not quite right with my upgrade to Leopard Server so I formatted and reinstalled and as of now it is NOT there...

    Right now I am running 10.5.0. I need to get 10.5.1 on there and see if it 'suddenly' appears there but I now concede that you are correct, it 'can' be missing...

    As a side note, if you look at the help for the security prefpane, you see at the bottom:

    Use secure virtual memory: Select “Use secure virtual memory” to erase any information from random-access memory written to the hard disk by virtual memory.

    So I would say that apple INTENDED for this to continue to be there.

    Peter

  4. 0

    Apple Support Community member

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Sheesh. It appears to be still available but it is NO LONGER 'dynamically' enabled. Almost everything at boot-up has become a plist .The one we are after is in /System/Library/LaunchDaemons/. In there you will will find com.apple.dynamic_pager.plist. Open it in your favorite editor (pico/nano/vi/joe; whatever) and ADD '<string>-E</string>' (without the single ticks) just above <string>-F</string> so it looks like this

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    <key>Label</key>
    <string>com.apple.dynamic_pager</string>
    <key>ProgramArguments</key>
    <array>
    <string>/sbin/dynamic_pager</string>
    <string>-E</string>
    <string>-F</string>
    <string>/private/var/vm/swapfile</string>
    </array>
    <key>OnDemand</key>
    <false/>
    </dict>
    </plist>

    Then reboot and you wll have (an) encrypted swap file(s).

    Peter

  5. 0

    Apple Support Community member

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    +Then reboot and you wll have (an) encrypted swap file(s).+

    Have you actually verified this? In Tiger Server, if you manually edit /etc/hostconfig to add the line

    ENCRYPTSWAP=-YES-

    then the -E option is passed to dynamic_pager, but the swapfiles are still *not encrypted*, for reasons that are unclear. You would need to run

    sudo strings /var/vm/swapfile*

    after the system has been up for awhile to be sure the files are really encrypted. Mine definitely are not.

  6. 0

    Apple Support Community member

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Hmm. i guess i have to stop ASSuming... this is how i checked if the -E was passed in.

    {quote:title=Code:
    ps -ax [pipe] grep -i dynamic}{quote}

    89 ?? 0:00.01 /sbin/dynamic_pager -E -F /private/var/vm/swapfile

    HOWEVER, as you pointed out, I tried this

    {quote:title=Code:
    sudo strings -8 /var/vm/swapfile? [pipe] grep -A 4 -i longname }{quote}

    sudo strings -8 /var/vm/swapfile? |grep -A 4 -i longname
    Password:
    suggestShortNameFromLongName:
    useJapaneseWorkaround
    badgePictureForUserWithCommand:tempFilePath:
    badgePictureForUserWithEmail:
    badgePictureForUserWithName:
    --
    dd_allLongNames
    valueForProperty:
    DDExtension
    ABRecord
    stringWithSpaces:

    I could not find any passwords for my users (or user names) but maybe you are right, this doesn't look encrypted (lots of paths to dyld files and error strings...). I should learn not to just implicitly trust.... My uptime right now (with the rebuild) is 20 hours. I won't get a load of any significance for another 3 days.... are you saying that your dynamic_pager is set to -E AND you can still see your passwords?

    Peter

    Anyone file a radar on this?

  7. 0

    Apple Support Community member

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    +are you saying that your dynamic_pager is set to -E AND you can still see your passwords?+

    Yes.

  8. 0

    Apple Support Community member

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Moot, since I no longer use Server and do use whole-disk encryption.