<div dir="ltr">Ignore my previous email, I got the issue that CONFIG_SECURITY should have been enabled also(That is a dependency)<div><span style="font-size:12pt;font-family:Calibri,sans-serif;color:rgb(0,32,96)"><a href="https://github.com/openbmc/linux/blob/1519240139a91e3dbc97d8f79de29a22a3328257/security/apparmor/Kconfig#L4" style="color:rgb(5,99,193)">https://github.com/openbmc/linux/blob/1519240139a91e3dbc97d8f79de29a22a3328257/security/apparmor/Kconfig#L4</a></span></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jul 27, 2021 at 11:42 AM Ratan Gupta <<a href="mailto:ratankgupta31@gmail.com">ratankgupta31@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><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" target="_blank">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>
</blockquote></div>