Blame tests/p_kernel/01_kernel_centos_keyring.sh

Athmane Madjoudj b84468
#!/bin/sh
Athmane Madjoudj b84468
# Author: Athmane Madjoudj <athmanem@gmail.com>
Athmane Madjoudj 0a4730
# Note: This was a known issue with CentOS 6.0 GA kernel
Athmane Madjoudj b84468
Athmane Madjoudj b84468
t_Log "Running $0 -  check CentOS' Kernel Module GPG key."
Athmane Madjoudj b84468
Johnny Hughes 97c696
uname_arch=$(uname -m)
Johnny Hughes 97c696
2b3708
if [ "$uname_arch" == "aarch64" ] || [ "$uname_arch" == "armv7l" ]; then
2b3708
  t_Log "*** Not testing on Arch: $uname_arch ***"
Johnny Hughes 97c696
  exit 0
Johnny Hughes 97c696
fi
Johnny Hughes 97c696
0c76e1
if [ "$centos_ver" = "7" ] ; then
1ced04
  for id in kpatch "Driver update" kernel
0c76e1
  do
0c76e1
    t_Log "Verifying x.509 CentOS ${id}"
Akemi Yagi 885b99
    keyctl list %:.system_keyring | grep -i "CentOS Linux ${id} signing key" > /dev/null 2>&1
0c76e1
    t_CheckExitStatus $?
0c76e1
  done
0c76e1
else
0c76e1
  grep 'User ID: CentOS (Kernel Module GPG key)' /var/log/dmesg > /dev/null 2>&1
0c76e1
  t_CheckExitStatus $?
0c76e1
fi
Athmane Madjoudj b84468