# add hkids feature

config HKIDS
	bool "HKIDS support"
	depends on TRACEPOINTS
	default n
	help
	  HKIDS means Huawei Kernel Intrusion Detection System, which protect
	  kernel security by detecting kernel intrusions in real time.
	  Say yes here to support the HKIDS feature.
	  If unsure, say N.

config HKIDS_CHK_PRIV_ESCAPE
	bool "HKIDS support process privilege escalation detection"
	depends on HKIDS
	default n
	help
	  provide the function to detect process privilege been escalated.

config HKIDS_CHK_ABNORMAL_EXIT
	bool "HKIDS support abnormal process kill detection"
	depends on HKIDS
	default n
	help
	  provide the function to detect process been killed abnormally.

config HKIDS_CHK_MLTDOWN
	bool "HKIDS support meltdown exception detection"
	depends on RTOS_HKIDS
	default n
	help
	  provide the function to detect meltdown exception.

config HKIDS_CHK_RTKIT
	bool "HKIDS support rootkit exception detection"
	depends on HKIDS
	default n
	help
	  provide the function to detect rootkit exception.

config HKIDS_CHK_INJECTION
	bool "HKIDS support malicious code injection detection"
	depends on HKIDS
	default n
	help
	  provide the function to detect malicious code injection exception.

config HKIDS_CHK_HEAP_SPRAY
	bool "HKIDS support heap spray detection"
	depends on HKIDS
	default n
	help
	  provide the function to detect kernel heap spray exception.

config HKIDS_CHK_CFI_EXCEPTION
	bool "HKIDS support CFI exception detection"
	depends on HKIDS && RTOS_CFI
	default n
	help
	  provide the function to detect kernel control flow integrity exception.

config HKIDS_CHK_KO_SIG
	bool "HKIDS support KO signature detection"
	depends on HKIDS && MODULE_SIG
	default n
	help
	  provide the function to detect kernel module with
	  unauthorized digital signature.

config HKIDS_CHK_MAC_VIOLATION
	bool "HKIDS support MAC violation detection"
	depends on HKIDS && SECURITY_SELINUX
	default n
	help
	  provide the function to detect SELinux mandatory access control violation.

config RTOS_HKIDS
	bool "RTOS HKIDS support"
	depends on HKIDS && RTOS
	default n
	help
	  RTOS HKIDS provides kbox logging and response capability.
	  If unsure, say N.

config RTOS_HKIDS_AUDIT_REPORT
	bool "provide HKIDS report interface"
	depends on RTOS_HKIDS
	default n
	help
	  HKIDS provides report interface, for other modules to record security events
	  into audit log buffer.
	  If unsure, say N.

config RTOS_HKIDS_RESPONSE
	bool "provide HKIDS auto response"
	depends on RTOS_HKIDS
	default n
	help
	  Provides auto response functionality for some attack behaviors, like privilege
	  esclation, etc.
	  If unsure, say N.

config HKIDS_ENABLE_SWITCH
	bool "provide HKIDS enable switch"
	depends on HKIDS
	default n
	help
	  Provides enable switch for HKIDS.
	  If unsure, say N.

config EULEROS_HKIDS
	bool "EULEROS HKIDS support"
	depends on HKIDS && HKIDS_ENABLE_SWITCH
	default n
	help
	  Provides report interface registration management.
	  Support for EulerOS hkids feature.
	  If unsure, say N.

