Commit Graph

14 Commits

Author SHA1 Message Date
Daniel P. Berrangé
12589a1af6 Port to pycryptography and pyasn1 and make keyring optional
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>
2025-12-10 11:17:54 +00:00
Daniel P. Berrangé
391d603fde Sync specfile changes from Fedora
Related: https://issues.redhat.com/browse/RHEL-121612
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2025-12-10 11:17:53 +00:00
Daniel P. Berrangé
a60a22210b Drop sgx-mpa dep from sgx-pccs
While pccs can be run node-local, a typical deployment would
have pccs on the LAN to cache certs across many hosts. As
such a dep on sgx-mpa is inappropriate, and tdx-qgs already
has a weak dep for this.

Related: https://issues.redhat.com/browse/RHEL-121612
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2025-12-10 11:15:57 +00:00
Daniel P. Berrangé
bab0c46cd5 Add scriptlets for PCCS
Related: https://issues.redhat.com/browse/RHEL-121612
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2025-12-10 11:15:55 +00:00
Daniel P. Berrangé
a0bdc65f62 Enable pccsadmin everywhere
Since pccs was reintroduced the pccsadmin tool is now relevant on
both RHEL and Fedora

Related: https://issues.redhat.com/browse/RHEL-121612
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2025-12-10 11:15:48 +00:00
Daniel P. Berrangé
bc5efa9502 Update to SGX 2.26 / DCAP 1.23, adding PCCS service
Resolves: https://issues.redhat.com/browse/RHEL-121612
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2025-11-18 18:29:56 +00:00
Daniel P. Berrangé
e53e83c1ed Trigger udev to set perms on /dev/sgx_provision
This ensures that if qgs is started, without a reboot after install,
it will have permissions to access /dev/sgx_provision

Resolves: https://issues.redhat.com/browse/RHEL-110112
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2025-10-14 17:55:40 +01:00
Daniel P. Berrangé
515f4d04fd Temporarily disable automatic tier1 gating
QE is not ready to do automatic gating testing of TDX functionality
at this time, and once ready, will require a difference test suite
name to be used.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2025-06-16 13:50:53 +01:00
Daniel P. Berrangé
32e6af3c36 Adapt qgs.service for SELinux policy and sock perms
Changes to qgs.service to make it more amenable to writing a strict
SELinux policy.

Also add patch to allow control over socket perms so QEMU can get
access to the socket.

Related: https://issues.redhat.com/browse/RHELPLAN-171792
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2025-06-09 13:55:12 +01:00
Daniel P. Berrangé
b26306ecae Honour CFLAGS/CXXFLAGS/LDFLAGS for host software
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2025-04-16 15:44:33 +01:00
Daniel P. Berrangé
5ccd6e4136 Fix paths to binaries in service files
RHEL-10 does not have the bin+sbin merge that Fedora recently did.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2025-04-01 10:28:39 +01:00
Daniel P. Berrangé
7a03dbeede Add basic gating config
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2025-03-19 17:12:15 +00:00
Daniel P. Berrangé
f370d400ee Initial import
Resolves: https://issues.redhat.com/browse/RHELPLAN-171792
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2025-03-19 16:55:37 +00:00
Release Configuration Management
a445c23b5e New branch setup 2025-03-19 05:25:27 -04:00