Skip to content

Commit 4a020ab

Browse files
Michael L. Youngbmastbergen
authored andcommitted
Adding CIQ attributes to kernel mod signing cert
We should be attributing CIQ as the signer of the kernel modules being built and signed during the kernel build and packaging process. This patch adds a 'x509.genkey.rocky' file which will be used when creating the ephemeral cert that is used for signing the kernel modules at build time. Signed-off-by: Michael L. Young <myoung@ciq.com> AUTODEL-1213
1 parent 16ddf8c commit 4a020ab

2 files changed

Lines changed: 21 additions & 3 deletions

File tree

SOURCES/x509.genkey.rocky

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[ req ]
2+
default_bits = 4096
3+
distinguished_name = req_distinguished_name
4+
prompt = no
5+
string_mask = utf8only
6+
x509_extensions = myexts
7+
8+
[ req_distinguished_name ]
9+
O = CIQ
10+
CN = CIQ kernel modules signing key
11+
emailAddress = secureboot@ciq.com
12+
13+
[ myexts ]
14+
basicConstraints=critical,CA:FALSE
15+
keyUsage=digitalSignature
16+
subjectKeyIdentifier=hash
17+
authorityKeyIdentifier=keyid

SPECS/kernel.spec

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -835,6 +835,7 @@ Source8006: ciq_sb_kernel_driver_aarch64.der
835835
Source8007: ciq_sb_kernel_kpatch_aarch64.der
836836
Source8008: ciq_sb_uki.crt
837837
Source8009: ciq_sb_uki_aarch64.crt
838+
Source8010: x509.genkey.rocky
838839

839840
%if %{signkernel}
840841
# Name of the packaged file containing signing key
@@ -2145,9 +2146,9 @@ InitBuildVars() {
21452146
%{make} %{?_smp_mflags} mrproper
21462147
cp configs/$Config .config
21472148

2148-
# %if %{signkernel}%{signmodules}
2149-
# cp configs/x509.genkey certs/.
2150-
# %endif
2149+
%if %{signkernel}%{signmodules}
2150+
cp configs/x509.genkey certs/.
2151+
%endif
21512152

21522153
%if %{with_debuginfo} == 0
21532154
sed -i 's/^\(CONFIG_DEBUG_INFO.*\)=y/# \1 is not set/' .config

0 commit comments

Comments
 (0)