From e53e83c1ed4438e4394eab952c28ccd2604df75b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= Date: Tue, 14 Oct 2025 17:55:40 +0100 Subject: [PATCH] Trigger udev to set perms on /dev/sgx_provision MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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é --- linux-sgx.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/linux-sgx.spec b/linux-sgx.spec index b5a0726..b8d8a07 100644 --- a/linux-sgx.spec +++ b/linux-sgx.spec @@ -1217,6 +1217,12 @@ ln -s libsgx_qe3_logic.so.1 %{buildroot}%{_libdir}/libsgx_qe3_logic.so %sysusers_create_compat %{SOURCE42} %endif +%post -n sgx-libs +if [ -S /run/udev/control ]; then + udevadm control --reload + udevadm trigger --property-match=DEVNAME=/dev/sgx_provision +fi + %if %{with_aesm} %if %{with_sysusers_scripts} %pre -n sgx-aesm