<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Aug 3, 2018 at 4:16 AM, Andre McCurdy <span dir="ltr">&lt;<a href="mailto:armccurdy@gmail.com" target="_blank">armccurdy@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Thu, Aug 2, 2018 at 9:54 AM, Ocampo Coronado, Omar<br>
&lt;<a href="mailto:omar.ocampo.coronado@intel.com">omar.ocampo.coronado@intel.<wbr>com</a>&gt; wrote:<br>
&gt; Neither &#39;nm&#39; or &#39;readelf&#39; provide a symbol that we can use to strip.<br>
&gt; I&#39;m having a hard time reading kernel-source/scripts/sign-<wbr>file.c and how exactly how the sign works and what bytes are being added, so we can avoid stripping them.<br>
&gt;<br>
&gt; Looking into dracut, they simple avoid strip signed modules:<br>
&gt;         From dracut.sh:1671 # strip kernel modules, but do not touch signed modules<br>
&gt;<br>
&gt; Perhaps we can do the same as dracut within meta/lib/oe/package.py.<br>
<br>
</span>Some more information here:<br>
<br>
  <a href="https://www.kernel.org/doc/html/v4.17/admin-guide/module-signing.html#signed-modules-and-stripping" rel="noreferrer" target="_blank">https://www.kernel.org/doc/<wbr>html/v4.17/admin-guide/module-<wbr>signing.html#signed-modules-<wbr>and-stripping</a><br>
<br></blockquote><div><br></div><div>Reading the above &quot;between the lines&quot;, could the module be stripped /then/ signed? <br></div></div><br></div></div>