nixos/waydroid: Replace requirement for ASHMEM with MEMFD_CREATE

* fixes #250302
* ASHMEM was removed in Linux 5.18 and waydroid can use MEMFD instead.
  MEMFD is enabled by default in 4.18 and later kernels while we
  already require this version for namespace support.
This commit is contained in:
Mihai-Drosi Câju 2023-09-24 17:46:51 +03:00 committed by Mihai-Drosi Câju
parent b141712299
commit 800af4240b

View File

@ -32,7 +32,7 @@ in
system.requiredKernelConfig = [
(kCfg.isEnabled "ANDROID_BINDER_IPC")
(kCfg.isEnabled "ANDROID_BINDERFS")
(kCfg.isEnabled "ASHMEM") # FIXME Needs memfd support instead on Linux 5.18 and waydroid 1.2.1
(kCfg.isEnabled "MEMFD_CREATE")
];
/* NOTE: we always enable this flag even if CONFIG_PSI_DEFAULT_DISABLED is not on