From e87537c82be1747636142688a92c353e1f561645 Mon Sep 17 00:00:00 2001
From: Marta Rybczynska <marta.rybczynska@huawei.com>
Date: Mon, 21 Jun 2021 15:50:27 +0200
Subject: [PATCH] meta-ohos-core: add a hardening option to the kernel

Add the hardening option CONFIG_DEBUG_CREDENTIALS to the kernel. It was
crashing at some point, but another check shows that this is not the case.

Signed-off-by: Marta Rybczynska <marta.rybczynska@huawei.com>
---
 .../recipes-kernel/linux/linux/hardening_validation_checks.cfg  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-ohos-core/recipes-kernel/linux/linux/hardening_validation_checks.cfg b/meta-ohos-core/recipes-kernel/linux/linux/hardening_validation_checks.cfg
index 3f6f7343..ffdfc40d 100644
--- a/meta-ohos-core/recipes-kernel/linux/linux/hardening_validation_checks.cfg
+++ b/meta-ohos-core/recipes-kernel/linux/linux/hardening_validation_checks.cfg
@@ -6,7 +6,7 @@
 CONFIG_DEBUG_KERNEL=y
 
 # Validate common data structures
-# add CONFIG_DEBUG_CREDENTIALS=y
+CONFIG_DEBUG_CREDENTIALS=y
 CONFIG_DEBUG_NOTIFIERS=y
 CONFIG_DEBUG_LIST=y
 CONFIG_DEBUG_SG=y
-- 
GitLab