r/voidlinux • • 1d ago

Void EACv2

Been using Void now for almost 2 years - very happy about the whole experience. Using KDE, Nvidia GPU and gaming alot for the whole period (Steam+Faugus). Updates with xbps monthly have been smooth without needing to fix anything manually.

But now Epic has released a new version of EAC that supports linux. I do miss playing PUBG (I know this isnt supported, yet) with friends and Fortnite (already working) with my kids since when I used Windows. I see some people have gotten it working on Gentoo even.

Any hope of getting EAC support to Void? I really dont want to customize too much myself as I enjoy the problem free update experience and day to day stability. Or would I be better off switching to CachyOS that fully supports it?

31 Upvotes

32 comments sorted by

View all comments

Show parent comment

2

u/Better-Efficiency149 6h ago

I tried already. It didn’t work. The kernel doesn’t recognize it when the two parameters are enabled like signed modules only and lockdown mode. In kernels options are not enabled to sign them with kernel’s own keys after installed, because the option is not enabled in default Void kernels. We could try if enabled. I wonder if there is a reason why it is not enabled in kernels while building which is just a one click for example. Thank you!

2

u/Duncaen 6h ago

I wonder if there is a reason why it is not enabled in kernels while building which is just a one click for example.

It's a different project with a different release schedule and we have like 6 kernels at a time that all would need to be rebuild with nvidia releases. Or we would have to switch to static signing keys instead of using throw away keys to build the module separately from the kernel somehow.

dkms has always been used because of the license and is kind of convenient in this regard.

1

u/Better-Efficiency149 5h ago

I understand that! But it is not only about the nvidia. User could have own modules and if he/she enables signed modules only in default kernel cams lines then lockdown mode , his/ hers modules won’t be loaded by kernel. The nvidia example is in my case and some other user might need own modules signed for example. There is no need to release different kernel versions for specially for nvidia, because the option needs to be enabled while building the kernel and it won’t cause anything. The lockdown mode is an important feature as we know. Thank you! Best regards,

2

u/Duncaen 5h ago

With how the IMA kernel option works it can't currently be enabled, which would be required to trust MOK keys. Enabling it would make the signing rules more strict and that can't be disabled or changed at runtime, every user would have to sign their DKMS modules and enroll their keys. While at the moment lockdown is opt in.

1

u/Better-Efficiency149 5h ago

Well, in this case we won’t benefit from the kernel of lockdown and integrity features. But I still believe that enabling the option in kernel while building it would be useful who cares about the security. and wants to sign the modules with kernel’s own key after installed. The CIA triad is trade off at the moment. Thank you! Best regards,

1

u/Duncaen 4h ago

But I still believe that enabling the option in kernel while building it would be useful who cares about the security.

If you tell me which option I could look into it, but as of now as far as I know its not possible without breaking setups.

1

u/Better-Efficiency149 4h ago

Sure, in kernel configuration currently (#CONFIG_SECONDARY_TRUSTED_KEYRING is not set). After setting it (CONFIG_SECONDARY_TRUSTED_KEYRING=y) and also required to set just below (CONFIG_SYSTEM_TRUSTED_KEYS=/certs/db.pem). These two settings will allow user to sign the needed modules with the kernel”s key. Then we can add two parameters to the default kernel command line (lockdown=integrity module.sig_enforce=1). Thank you! Best regards,

1

u/Duncaen 4h ago

How does that work if the users don't have any keys that are in the db.pem? This looks like its just CONFIG_MODULE_SIG_KEY but for multiple keys.

config SYSTEM_TRUSTED_KEYS
    string "Additional X.509 keys for default system keyring"
    depends on SYSTEM_TRUSTED_KEYRING
	help
	  If set, this option should be the filename of a PEM-formatted file
	  containing trusted X.509 certificates to be included in the default
	  system keyring. Any certificate used for module signing is implicitly
	  also trusted.
    NOTE: If you previously provided keys for the system keyring in the
	  form of DER-encoded *.x509 files in the top-level build directory,
	  those are no longer used. You will need to set this option instead.
config SECONDARY_TRUSTED_KEYRING
bool "Provide a keyring to which extra trustable keys may be added"
depends on SYSTEM_TRUSTED_KEYRING
help
  If set, provide a keyring to which extra keys may be added, provided
  those keys are not blacklisted and are vouched for by a key built
  into the kernel, machine keyring (if configured), or already in the
  secondary trusted keyring.

1

u/Better-Efficiency149 4h ago

Well, user needs to sign the module desired first. If not sign and enabled these two parameters (lockdown=integrity module.sig_enforce=1)in in default kernel cmd line, then module won't be loaded Nvidia for example. That's the whole idea the kernel rejects any module if not signed. (Built in modules will be loaded normally) This is only required for user to sign modules , in my case Nvidia for example. Thank you! Best regards,

1

u/Duncaen 2h ago

Required a few more options:

# keyctl list %:.machine               
2 keys in keyring:
372245233: ---lswrv     0     0 asymmetric: Red Hat, Inc.: fedoraca: b280c7ae6b884e0f4d2a0d8724c25eaf6c65c326
1003150614: ---lswrv     0     0 asymmetric: DKMS Machine Owner CA: 4190029d8ecd37a404769ca4286c8f0cfa1b9fa9
# cat /sys/module/module/parameters/sig_enforce
Y
# cat /sys/kernel/security/lockdown
[none] integrity confidentiality
# cat /sys/module/nvidia/taint
O
    
# git diff srcpkgs/linux6.18/files/x86_64-dotconfig
diff --git a/srcpkgs/linux6.18/files/x86_64-dotconfig b/srcpkgs/linux6.18/files/x86_64-dotconfig
index 4b5b7ccb6ad..ab5c19c069b 100644
--- a/srcpkgs/linux6.18/files/x86_64-dotconfig
+++ b/srcpkgs/linux6.18/files/x86_64-dotconfig
@@ -11207,7 +11207,14 @@ CONFIG_LOCK_DOWN_KERNEL_FORCE_NONE=y
 CONFIG_SECURITY_LANDLOCK=y
 # CONFIG_SECURITY_IPE is not set
 CONFIG_INTEGRITY=y
-# CONFIG_INTEGRITY_SIGNATURE is not set
+CONFIG_INTEGRITY_SIGNATURE=y
+CONFIG_INTEGRITY_ASYMMETRIC_KEYS=y
+CONFIG_INTEGRITY_TRUSTED_KEYRING=y
+CONFIG_INTEGRITY_PLATFORM_KEYRING=y
+CONFIG_INTEGRITY_MACHINE_KEYRING=y
+CONFIG_INTEGRITY_CA_MACHINE_KEYRING=y
+# CONFIG_INTEGRITY_CA_MACHINE_KEYRING_MAX is not set
+CONFIG_LOAD_UEFI_KEYS=y
 CONFIG_INTEGRITY_AUDIT=y
 # CONFIG_IMA is not set
 # CONFIG_IMA_SECURE_AND_OR_TRUSTED_BOOT is not set
@@ -11510,8 +11517,13 @@ CONFIG_MODULE_SIG_KEY_TYPE_RSA=y
 CONFIG_SYSTEM_TRUSTED_KEYRING=y
 CONFIG_SYSTEM_TRUSTED_KEYS=""
 # CONFIG_SYSTEM_EXTRA_CERTIFICATE is not set
-# CONFIG_SECONDARY_TRUSTED_KEYRING is not set
-# CONFIG_SYSTEM_BLACKLIST_KEYRING is not set
+CONFIG_SECONDARY_TRUSTED_KEYRING=y
+# CONFIG_SECONDARY_TRUSTED_KEYRING_SIGNED_BY_BUILTIN is not set
+CONFIG_SYSTEM_BLACKLIST_KEYRING=y
+CONFIG_SYSTEM_BLACKLIST_HASH_LIST=""
+CONFIG_SYSTEM_REVOCATION_LIST=y
+CONFIG_SYSTEM_REVOCATION_KEYS=""
+CONFIG_SYSTEM_BLACKLIST_AUTH_UPDATE=y
 # end of Certificates for signature checking
 
 CONFIG_CRYPTO_KRB5=m
@@ -11669,6 +11681,7 @@ CONFIG_LRU_CACHE=m
 CONFIG_CLZ_TAB=y
 CONFIG_IRQ_POLL=y
 CONFIG_MPILIB=y
+CONFIG_SIGNATURE=y
 CONFIG_DIMLIB=y
 CONFIG_OID_REGISTRY=y
 CONFIG_UCS2_STRING=y
→ More replies