Check-in [e2fd50bfda]
Overview
SHA1:e2fd50bfda081706eb375f340c28789d428c109a
Date: 2016-08-19 16:32:51
User: kvanals
Comment:Updated CACKey Apple Mac macOS OS X Postinstall and Uninstall scripts to properly disable and enable builtin conflicting OS components when on 10.12 "Sierra" or newer
Timelines: family | ancestors | descendants | both | trunk
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
Tags And Properties
Context
2016-08-19
17:20
[be8c9e6769] CACKey 0.7.6 (user: kvanals, tags: trunk, 0.7.6)
16:32
[e2fd50bfda] Updated CACKey Apple Mac macOS OS X Postinstall and Uninstall scripts to properly disable and enable builtin conflicting OS components when on 10.12 "Sierra" or newer (user: kvanals, tags: trunk)
2016-04-26
18:04
[317e74ef9b] ChromeOS: Updated PIN dialog (untested) (user: rkeene, tags: trunk)
Changes

Modified build/cackey_osx_build/Template_pmbuild/scripts/04pkcs11tokend-post.sh from [022fa1323e] to [a3cf8e39fd].

     1      1   #!/bin/bash
     2      2   chmod -R go+rX /Library/Security/tokend/PKCS11.tokend
     3      3   chown -R root:wheel /Library/Security/tokend/PKCS11.tokend
            4  +
            5  +# If on Sierra or newer, disable the pivtoken CryptoTokenKit
            6  +if [ "`uname -r | cut -d '.' -f 1`" -ge "16" ]; then
            7  +	security smartcards token -d com.apple.CryptoTokenKit.pivtoken
            8  +fi

Modified build/cackey_osx_build/cackey_osx_uninstall.sh from [5cfe13de6d] to [8af387a7bd].

    15     15   rm -rf /Library/Security/tokend/PKCS11.tokend
    16     16   
    17     17   # Forget about packages installed
    18     18   echo "Removing saved Mac OS X package information for CACKey..."
    19     19   for package in `pkgutil --pkgs | grep -i CACKey`; do
    20     20   	pkgutil --forget ${package}
    21     21   done
           22  +
           23  +# If on Sierra or newer, reenable the pivtoken CryptoTokenKit
           24  +echo "Reenabling the builtin pivtoken CryptoTokenKit..."
           25  +if [ "`uname -r | cut -d '.' -f 1`" -ge "16" ]; then
           26  +	security smartcards token -e com.apple.CryptoTokenKit.pivtoken
           27  +fi