Change apparmor check to generic ES