Configure kernel and patch aegis security