CONFIG_SECURITYFS=y
CONFIG_SECURITY_NETWORK=y
CONFIG_SECURITY_PATH=y
CONFIG_SECURITY_APPARMOR=y
CONFIG_DEFAULT_SECURITY="apparmor"
CONFIG_SECURITY_APPARMOR_BOOTPARAM_VALUE=1CONFIG_AUDIT=y
In the build tree, kernel is not picking the above config parameters and I was getting the following logs in the config_build_log which suggest that kernel doesn't like these config.
tmp/work-shared/hgx/kernel-source/.kernel-meta/cfg/merge_config_build.log
Value requested for CONFIG_SECURITY_PATH not in final .config
Requested value: CONFIG_SECURITY_PATH=y
CONFIG_SECURITY_PATH=y
Actual value:
Value requested for CONFIG_SECURITY_APPARMOR not in final .config
Requested value: CONFIG_SECURITY_APPARMOR=y
CONFIG_SECURITY_APPARMOR=y
Actual value:
Value requested for CONFIG_DEFAULT_SECURITY not in final .config
Requested value: CONFIG_DEFAULT_SECURITY="apparmor"
CONFIG_DEFAULT_SECURITY="apparmor"
Actual value:
Value requested for CONFIG_SECURITY_APPARMOR_BOOTPARAM_VALUE not in final .config
Requested value: CONFIG_SECURITY_APPARMOR_BOOTPARAM_VALUE=1
CONFIG_SECURITY_APPARMOR_BOOTPARAM_VALUE=1
Actual value: