<div dir="ltr">Hi All,<br><br>I was trying to pull apparmor in openbmc, all the user space application got pulled however I was unable to build the kernel with apparmor support.<br><br>I made the following kernel configuration to include the apparmor( <a href="https://github.com/openbmc/linux/blob/dev-5.10/Documentation/admin-guide/LSM/apparmor.rst">https://github.com/openbmc/linux/blob/dev-5.10/Documentation/admin-guide/LSM/apparmor.rst</a>)<br><br>CONFIG_SECURITYFS=y<br>CONFIG_SECURITY_NETWORK=y<br>CONFIG_SECURITY_PATH=y<br>CONFIG_SECURITY_APPARMOR=y<br>CONFIG_DEFAULT_SECURITY="apparmor"<br>CONFIG_SECURITY_APPARMOR_BOOTPARAM_VALUE=1<br>CONFIG_AUDIT=y<br><br><br>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.<br><br>tmp/work-shared/hgx/kernel-source/.kernel-meta/cfg/merge_config_build.log<br><br>Value requested for CONFIG_SECURITY_PATH not in final .config<br>Requested value:  CONFIG_SECURITY_PATH=y<br>CONFIG_SECURITY_PATH=y<br>Actual value:<br><br>Value requested for CONFIG_SECURITY_APPARMOR not in final .config<br>Requested value:  CONFIG_SECURITY_APPARMOR=y<br>CONFIG_SECURITY_APPARMOR=y<br>Actual value:<br><br>Value requested for CONFIG_DEFAULT_SECURITY not in final .config<br>Requested value:  CONFIG_DEFAULT_SECURITY="apparmor"<br>CONFIG_DEFAULT_SECURITY="apparmor"<br>Actual value:<br><br>Value requested for CONFIG_SECURITY_APPARMOR_BOOTPARAM_VALUE not in final .config<br>Requested value:  CONFIG_SECURITY_APPARMOR_BOOTPARAM_VALUE=1<br>CONFIG_SECURITY_APPARMOR_BOOTPARAM_VALUE=1<br>Actual value:<br><br>Can somebody suggest me what I am missing here?<br><br>Ratan Gupta<br></div>