"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/keyring-test" between
cryptsetup-2.3.6.tar.xz and cryptsetup-2.4.0.tar.xz

About: cryptsetup is a utility used to conveniently setup disk encryption based on the dm-crypt kernel module. These include plain dm-crypt volumes, LUKS volumes, loop-AES and TrueCrypt compatible format.

keyring-test  (cryptsetup-2.3.6.tar.xz):keyring-test  (cryptsetup-2.4.0.tar.xz)
skipping to change at line 81 skipping to change at line 81
keyctl list "@s" > /dev/null || skip "Current session keyring is unreacha ble, test skipped" keyctl list "@s" > /dev/null || skip "Current session keyring is unreacha ble, test skipped"
TEST_KEYRING=$(keyctl newring $TEST_KEYRING_NAME "@u" 2> /dev/null) TEST_KEYRING=$(keyctl newring $TEST_KEYRING_NAME "@u" 2> /dev/null)
test -n "$TEST_KEYRING" || skip "Failed to create keyring in user keyring " test -n "$TEST_KEYRING" || skip "Failed to create keyring in user keyring "
keyctl search "@s" keyring "$TEST_KEYRING" > /dev/null 2>&1 || keyctl lin k "@u" "@s" > /dev/null 2>&1 keyctl search "@s" keyring "$TEST_KEYRING" > /dev/null 2>&1 || keyctl lin k "@u" "@s" > /dev/null 2>&1
load_key user test_key test_data "$TEST_KEYRING" || skip "Kernel keyring service is useless on this system, test skipped." load_key user test_key test_data "$TEST_KEYRING" || skip "Kernel keyring service is useless on this system, test skipped."
} }
[ $(id -u) != 0 ] && skip "WARNING: You must be root to run this test, test skip ped." [ $(id -u) != 0 ] && skip "WARNING: You must be root to run this test, test skip ped."
which dmsetup >/dev/null 2>&1 || skip "Cannot find dmsetup, test skipped" which dmsetup >/dev/null 2>&1 || skip "Cannot find dmsetup, test skipped"
which keyctl >/dev/null 2>&1 || skip "Cannot find keyctl, test skipped" which keyctl >/dev/null 2>&1 || skip "Cannot find keyctl, test skipped"
modprobe dm-crypt || fail "dm-crypt failed to load" modprobe dm-crypt >/dev/null 2>&1 || fail "dm-crypt failed to load"
dm_crypt_keyring_support || skip "dm-crypt doesn't support kernel keyring, test skipped." dm_crypt_keyring_support || skip "dm-crypt doesn't support kernel keyring, test skipped."
test_and_prepare_keyring test_and_prepare_keyring
load_key logon $LOGON_KEY_32_OK $PAYLOAD_32 "$TEST_KEYRING" || fail "Cannot load 32 byte logon key type" load_key logon $LOGON_KEY_32_OK $PAYLOAD_32 "$TEST_KEYRING" || fail "Cannot load 32 byte logon key type"
load_key user $USER_KEY_32_OK $PAYLOAD_32 "$TEST_KEYRING" || fail "Cannot load 3 2 byte user key type" load_key user $USER_KEY_32_OK $PAYLOAD_32 "$TEST_KEYRING" || fail "Cannot load 3 2 byte user key type"
load_key logon $LOGON_KEY_32_WRONG $PAYLOAD_31 "$TEST_KEYRING" || fail "Cannot l oad 31 byte logon key type" load_key logon $LOGON_KEY_32_WRONG $PAYLOAD_31 "$TEST_KEYRING" || fail "Cannot l oad 31 byte logon key type"
load_key user $USER_KEY_32_WRONG $PAYLOAD_31 "$TEST_KEYRING" || fail "Cannot loa d 31 byte user key type" load_key user $USER_KEY_32_WRONG $PAYLOAD_31 "$TEST_KEYRING" || fail "Cannot loa d 31 byte user key type"
dmsetup create $DEV_ZERO --table "0 100 zero" || fail dmsetup create $DEV_ZERO --table "0 100 zero" || fail
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)