diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-03-01 18:47:14 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-03-01 18:47:14 +0000 |
commit | 3eaf4237194e25804f221af93c269d3d97e2809d (patch) | |
tree | cdedf3fc954b0727b0b34aa9b0b211cc18f854eb /usr/share | |
download | smartcardauth-3eaf4237194e25804f221af93c269d3d97e2809d.tar.gz smartcardauth-3eaf4237194e25804f221af93c269d3d97e2809d.zip |
Added my SmartCard login/session lock/unlock utility
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/smartcardauth@1097604 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'usr/share')
-rw-r--r-- | usr/share/applications/smartcardauth.desktop | 10 | ||||
-rw-r--r-- | usr/share/applications/smartcardrestrict.desktop | 10 | ||||
-rw-r--r-- | usr/share/icons/hicolor/16x16/apps/smartcardauth.png | bin | 0 -> 595 bytes | |||
-rw-r--r-- | usr/share/icons/hicolor/32x32/apps/smartcardauth.png | bin | 0 -> 1807 bytes | |||
-rwxr-xr-x | usr/share/initramfs-tools/hooks/cryptlukssc | 65 |
5 files changed, 85 insertions, 0 deletions
diff --git a/usr/share/applications/smartcardauth.desktop b/usr/share/applications/smartcardauth.desktop new file mode 100644 index 0000000..a033a89 --- /dev/null +++ b/usr/share/applications/smartcardauth.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Type=Application +Exec=gksudo /usr/bin/setupcard.sh +Icon=smartcardauth +Terminal=false +X-KDE-StartupNotify=true + +Name=SmartCard Authentication Setup +GenericName=SmartCard Authentication Setup +Categories=KDE;System; diff --git a/usr/share/applications/smartcardrestrict.desktop b/usr/share/applications/smartcardrestrict.desktop new file mode 100644 index 0000000..7dfdc79 --- /dev/null +++ b/usr/share/applications/smartcardrestrict.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Type=Application +Exec=gksudo /usr/bin/setupslavecard.sh +Icon=smartcardauth +Terminal=false +X-KDE-StartupNotify=true + +Name=SmartCard Restriction Setup +GenericName=SmartCard Restriction Setup +Categories=KDE;System; diff --git a/usr/share/icons/hicolor/16x16/apps/smartcardauth.png b/usr/share/icons/hicolor/16x16/apps/smartcardauth.png Binary files differnew file mode 100644 index 0000000..ffb6269 --- /dev/null +++ b/usr/share/icons/hicolor/16x16/apps/smartcardauth.png diff --git a/usr/share/icons/hicolor/32x32/apps/smartcardauth.png b/usr/share/icons/hicolor/32x32/apps/smartcardauth.png Binary files differnew file mode 100644 index 0000000..1b68a02 --- /dev/null +++ b/usr/share/icons/hicolor/32x32/apps/smartcardauth.png diff --git a/usr/share/initramfs-tools/hooks/cryptlukssc b/usr/share/initramfs-tools/hooks/cryptlukssc new file mode 100755 index 0000000..aabc7fe --- /dev/null +++ b/usr/share/initramfs-tools/hooks/cryptlukssc @@ -0,0 +1,65 @@ +#!/bin/sh + +set -e + +PREREQ="cryptroot" + +prereqs() +{ + echo "$PREREQ" +} + +case $1 in + prereqs) + prereqs + exit 0 + ;; +esac + +. /usr/share/initramfs-tools/hook-functions + +# Hooks for loading smartcard reading software into the initramfs + +# Install directories needed by smartcard reading daemon, command, and +# key-script +for dir in etc/opensc usr/lib/pcsc var/run tmp ; do + if [ ! -d ${DESTDIR}/${dir} ] ; then mkdir -p ${DESTDIR}/${dir} ; fi +done + +# Install pcscd daemon, drivers, conf file, and include libgcc as well since +# pcscd utilizes pthread_cancel +mkdir -p ${DESTDIR}/lib +copy_exec /usr/sbin/pcscd /sbin +copy_exec /lib/libgcc_s.so.1 /lib +copy_exec /lib/libpcsclite.so.1 /lib +cp -r /usr/lib/pcsc ${DESTDIR}/usr/lib +cp /etc/reader.conf ${DESTDIR}/etc + +# Install opensc commands and conf file +copy_exec /usr/bin/opensc-tool /bin +copy_exec /usr/bin/pkcs15-crypt /bin +cp /etc/opensc/opensc.conf ${DESTDIR}/etc/opensc + +# Install other required utilities +copy_exec /bin/grep /bin +copy_exec /bin/mv /bin +copy_exec /bin/cat /bin +copy_exec /bin/sleep /bin +copy_exec /usr/bin/opensc-explorer /bin +copy_exec /usr/bin/openssl /bin +copy_exec /usr/bin/perl /bin +copy_exec /bin/rm /bin +copy_exec /usr/bin/xxd /bin +copy_exec /usr/bin/killall /bin +copy_exec /bin/sed /bin +copy_exec /usr/bin/tr /bin +copy_exec /bin/bash /bin + +# Main scripts +copy_exec /usr/bin/scriptor_standalone /bin +copy_exec /usr/bin/smartauth.sh /bin + +# Libraries +cp /usr/lib/libltdl.so* ${DESTDIR}/usr/lib +cp /lib/libncurses.so.5 ${DESTDIR}/lib +cp /lib/libncursesw.so.5 ${DESTDIR}/lib |