Skip to content

Commit

Permalink
Documentation/module-signing.txt: Note need for version info if reusi…
Browse files Browse the repository at this point in the history
…ng a key

Signing a module should only make it trusted by the specific kernel it
was built for, not anything else.  If a module signing key is used for
multiple ABI-incompatible kernels, the modules need to include enough
version information to distinguish them.

Signed-off-by: Ben Hutchings <[email protected]>
Cc: [email protected]
Signed-off-by: Rusty Russell <[email protected]>
  • Loading branch information
bwhacks authored and rustyrussell committed Jul 27, 2016
1 parent bca014c commit b8612e5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Documentation/module-signing.txt
Original file line number Diff line number Diff line change
Expand Up @@ -271,3 +271,9 @@ Since the private key is used to sign modules, viruses and malware could use
the private key to sign modules and compromise the operating system. The
private key must be either destroyed or moved to a secure location and not kept
in the root node of the kernel source tree.

If you use the same private key to sign modules for multiple kernel
configurations, you must ensure that the module version information is
sufficient to prevent loading a module into a different kernel. Either
set CONFIG_MODVERSIONS=y or ensure that each configuration has a different
kernel release string by changing EXTRAVERSION or CONFIG_LOCALVERSION.

0 comments on commit b8612e5

Please sign in to comment.