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
2
3





#!/bin/bash
chmod -R go+rX /Library/Security/tokend/PKCS11.tokend
chown -R root:wheel /Library/Security/tokend/PKCS11.tokend








>
>
>
>
>
1
2
3
4
5
6
7
8
#!/bin/bash
chmod -R go+rX /Library/Security/tokend/PKCS11.tokend
chown -R root:wheel /Library/Security/tokend/PKCS11.tokend

# If on Sierra or newer, disable the pivtoken CryptoTokenKit
if [ "`uname -r | cut -d '.' -f 1`" -ge "16" ]; then
	security smartcards token -d com.apple.CryptoTokenKit.pivtoken
fi

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

15
16
17
18
19
20
21






rm -rf /Library/Security/tokend/PKCS11.tokend

# Forget about packages installed
echo "Removing saved Mac OS X package information for CACKey..."
for package in `pkgutil --pkgs | grep -i CACKey`; do
	pkgutil --forget ${package}
done













>
>
>
>
>
>
15
16
17
18
19
20
21
22
23
24
25
26
27
rm -rf /Library/Security/tokend/PKCS11.tokend

# Forget about packages installed
echo "Removing saved Mac OS X package information for CACKey..."
for package in `pkgutil --pkgs | grep -i CACKey`; do
	pkgutil --forget ${package}
done

# If on Sierra or newer, reenable the pivtoken CryptoTokenKit
echo "Reenabling the builtin pivtoken CryptoTokenKit..."
if [ "`uname -r | cut -d '.' -f 1`" -ge "16" ]; then
	security smartcards token -e com.apple.CryptoTokenKit.pivtoken
fi