pyOpenSSL 24.0.0 removed several APIs required by pccsadmin, so porting to pycryptography is required on Fedora. Since RHEL does not ship pyOpenSSL, the port is useful here too. Using pyasn1 instead of asn1 gives stronger validation during parsing and brings compatibility with RHEL that lacks python3-asn1 The keyring package needs to be optional on RHEL which lacks this module (currently). Also drop the inappropriate pccs port number change Related: https://issues.redhat.com/browse/RHEL-121612 Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
102 lines
4.3 KiB
Diff
102 lines
4.3 KiB
Diff
From 605d9bcc0003c869e785376bbc3dbecc670c934d Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= <berrange@redhat.com>
|
|
Date: Wed, 16 Apr 2025 11:48:52 +0100
|
|
Subject: [PATCH 116/126] Don't stomp on "VERBOSE" variable
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
The VERBOSE=1 variable is set to make various cmake builds run in
|
|
verbose mode. It must not be used for other purposes by the makefiles
|
|
otherwise the usage will clash.
|
|
|
|
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
|
|
---
|
|
driver/win/PLE/Makefile | 38 +++++++++++++++++++-------------------
|
|
1 file changed, 19 insertions(+), 19 deletions(-)
|
|
|
|
diff --git a/driver/win/PLE/Makefile b/driver/win/PLE/Makefile
|
|
index 3d474bb..0f593f5 100644
|
|
--- a/driver/win/PLE/Makefile
|
|
+++ b/driver/win/PLE/Makefile
|
|
@@ -75,9 +75,9 @@ ifneq ($(PUBKEY_FILE),)
|
|
CSS_PUBKEY_FILE = $(shell realpath $(PUBKEY_FILE))
|
|
endif
|
|
|
|
-VERBOSE := @
|
|
+CMD_VERBOSE := @
|
|
ifeq ($(V),1)
|
|
- VERBOSE :=
|
|
+ CMD_VERBOSE :=
|
|
endif
|
|
|
|
SGX_LE_SIGNING_KEY_PATH := sgx_signing_key.pem
|
|
@@ -89,47 +89,47 @@ PUBLIC_KEY_PATH := $(shell realpath $(SGX_LE_PUBLIC_KEY_PATH))
|
|
SIGNING_MATERIAL := $(shell realpath $(SGX_LE_SIGNING_MATERIAL))
|
|
|
|
$(SIGNING_KEY_PATH):
|
|
- $(VERBOSE) openssl genrsa -3 -out $(SIGNING_KEY_PATH) 3072
|
|
+ $(CMD_VERBOSE) openssl genrsa -3 -out $(SIGNING_KEY_PATH) 3072
|
|
|
|
$(PUBLIC_KEY_PATH): $(SIGNING_KEY_PATH)
|
|
- $(VERBOSE) openssl rsa -in $(SIGNING_KEY_PATH) -outform PEM -pubout -out $(PUBLIC_KEY_PATH)
|
|
+ $(CMD_VERBOSE) openssl rsa -in $(SIGNING_KEY_PATH) -outform PEM -pubout -out $(PUBLIC_KEY_PATH)
|
|
|
|
SGX_LE_C_OBJS := $(addprefix $(TARGET)/,main.o string.o cmac.o)
|
|
SGX_LE_S_OBJS := $(addprefix $(TARGET)/,encl_bootstrap.o)
|
|
|
|
$(TARGET):
|
|
- $(VERBOSE) mkdir $@
|
|
+ $(CMD_VERBOSE) mkdir $@
|
|
|
|
$(SGX_LE_C_OBJS): $(TARGET)/%.o: %.c | $(TARGET)
|
|
- $(VERBOSE) $(CC) -c $(CFLAGS) $(INCLUDES) $< -o $@
|
|
+ $(CMD_VERBOSE) $(CC) -c $(CFLAGS) $(INCLUDES) $< -o $@
|
|
|
|
$(SGX_LE_S_OBJS): $(TARGET)/%.o: %.S | $(TARGET)
|
|
- $(VERBOSE) $(CC) -c $(CFLAGS) $(INCLUDES) $< -o $@
|
|
+ $(CMD_VERBOSE) $(CC) -c $(CFLAGS) $(INCLUDES) $< -o $@
|
|
|
|
$(TARGET)/sgx_le.elf: sgx_le.lds $(SGX_LE_C_OBJS) $(SGX_LE_S_OBJS)
|
|
- $(VERBOSE) $(LD) $(LDFLAGS) -T $^ -o $@
|
|
+ $(CMD_VERBOSE) $(LD) $(LDFLAGS) -T $^ -o $@
|
|
|
|
$(TARGET)/sgx_le.bin: $(TARGET)/sgx_le.elf
|
|
- $(VERBOSE) objcopy --remove-section=.got.plt -O binary $< $@
|
|
+ $(CMD_VERBOSE) objcopy --remove-section=.got.plt -O binary $< $@
|
|
|
|
$(TARGET)/sgxsign: sgxsign.c | $(TARGET)
|
|
- $(VERBOSE) $(CC) -Wall $(INCLUDES) -o $@ $< -lcrypto
|
|
+ $(CMD_VERBOSE) $(CC) -Wall $(INCLUDES) -o $@ $< -lcrypto
|
|
|
|
$(TARGET)/bin2c: bin2c.c | $(TARGET)
|
|
- $(VERBOSE) $(CC) -Wall $(INCLUDES) -o $@ $<
|
|
+ $(CMD_VERBOSE) $(CC) -Wall $(INCLUDES) -o $@ $<
|
|
|
|
sign: $(SIGNING_KEY_PATH) $(TARGET)/sgx_le.bin $(TARGET)/sgxsign $(TARGET)/bin2c
|
|
- $(VERBOSE) $(TARGET)/sgxsign sign $(SIGNING_KEY_PATH) $(TARGET)/sgx_le.bin $(TARGET)/sgx_le.ss $(SIGN_EXTRA)
|
|
- $(VERBOSE) $(TARGET)/bin2c $(TARGET)/sgx_le.bin $(TARGET)/sgx_le_blob.h sgx_le_blob
|
|
- $(VERBOSE) $(TARGET)/bin2c $(TARGET)/sgx_le.ss $(TARGET)/sgx_le_ss.h sgx_le_ss
|
|
+ $(CMD_VERBOSE) $(TARGET)/sgxsign sign $(SIGNING_KEY_PATH) $(TARGET)/sgx_le.bin $(TARGET)/sgx_le.ss $(SIGN_EXTRA)
|
|
+ $(CMD_VERBOSE) $(TARGET)/bin2c $(TARGET)/sgx_le.bin $(TARGET)/sgx_le_blob.h sgx_le_blob
|
|
+ $(CMD_VERBOSE) $(TARGET)/bin2c $(TARGET)/sgx_le.ss $(TARGET)/sgx_le_ss.h sgx_le_ss
|
|
|
|
gendata: $(TARGET)/sgx_le.bin $(TARGET)/sgxsign
|
|
- $(VERBOSE) $(TARGET)/sgxsign gendata $(TARGET)/sgx_le.bin $(SIGNING_MATERIAL) $(SIGN_EXTRA)
|
|
+ $(CMD_VERBOSE) $(TARGET)/sgxsign gendata $(TARGET)/sgx_le.bin $(SIGNING_MATERIAL) $(SIGN_EXTRA)
|
|
|
|
usesig: $(TARGET)/sgx_le.bin $(TARGET)/sgxsign $(TARGET)/bin2c
|
|
- $(VERBOSE) $(TARGET)/sgxsign usesig $(CSS_PUBKEY_FILE) $(TARGET)/sgx_le.bin $(CSS_SIG_FILE) $(TARGET)/sgx_le.ss $(SIGN_EXTRA)
|
|
- $(VERBOSE) $(TARGET)/bin2c $(TARGET)/sgx_le.bin $(TARGET)/sgx_le_blob.h sgx_le_blob
|
|
- $(VERBOSE) $(TARGET)/bin2c $(TARGET)/sgx_le.ss $(TARGET)/sgx_le_ss.h sgx_le_ss
|
|
+ $(CMD_VERBOSE) $(TARGET)/sgxsign usesig $(CSS_PUBKEY_FILE) $(TARGET)/sgx_le.bin $(CSS_SIG_FILE) $(TARGET)/sgx_le.ss $(SIGN_EXTRA)
|
|
+ $(CMD_VERBOSE) $(TARGET)/bin2c $(TARGET)/sgx_le.bin $(TARGET)/sgx_le_blob.h sgx_le_blob
|
|
+ $(CMD_VERBOSE) $(TARGET)/bin2c $(TARGET)/sgx_le.ss $(TARGET)/sgx_le_ss.h sgx_le_ss
|
|
|
|
clean:
|
|
- $(VERBOSE) rm -vrf $(TARGET) $(SIGNING_MATERIAL)
|
|
+ $(CMD_VERBOSE) rm -vrf $(TARGET) $(SIGNING_MATERIAL)
|
|
--
|
|
2.51.1
|
|
|