Blame tests/p_kernel/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
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