-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is a WIP/Proof-of-Concept change to introduce kernel module signing. The actual signing is performed by the in-tree script sign-file. The private key and the certificate must be provided in the same directory as the libs/ checkout, under a specially created directory signed-key/, i.e. + agent-libs + cmake + driver + proposals + signing-key <----- + test + userspace and must be called: + key.priv (private key in PEM format) + key.der (certificate in DER format) NOTE: this was done in order not to create any additional paths to mount as volume, (first to the outer container, and then to the specific container). ALSO NOTE: on newer kernels the sign-file would be a C program which also accepts a PEM textual file for the certificate but older kernels use a perl script which can only read a DER binary file, so for compatibility reason this _must_ be a binary file. The top-level python script must be called with the '-x/--sign' flag in order for module signing to be enabled. Since different kernels might use a different hashing algorithm (sha256, sha512, etc..), the one chosen by the target kernel is read from the kernel config file under CONFIG_MODULE_SIG_HASH. This value is then passed over to the downstream builder as SIGN_FILE_HASH_ALGO. When '-x/--sign' is not specified, this is left empty and the module is NOT signed.
- Loading branch information
Showing
7 changed files
with
50 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ RUN yum -y install \ | |
flex \ | ||
make \ | ||
cmake \ | ||
openssl \ | ||
elfutils-devel \ | ||
python-lxml && yum clean all | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters