When I start waydroid from the menu nothing happens. If I try to start it with the terminal there is a bug that concerns an error in mounting the image. The strange thing that until a few days ago everything worked perfectly. From dmesg I think that the problem is related to selinux but I am not sure. Reproducible: Always Steps to Reproduce: 1.sudo dnf install waydroid 2.follow the steps on the official website of waydroid to initialize it 3.start waydroid from the menu or from the terminal Actual Results: waydroid can't mount the image Expected Results: waydroid starts succesfully From terminal: $ waydroid show-full-ui [19:42:40] Starting waydroid session [19:42:41] RuntimeError: Command failed: % mount -o context="system_u:object_r:waydroid_rootfs_t:s0",ro /var/lib/waydroid/images/system.img /var/lib/waydroid/rootfs From sudo dmesg: [ 1255.701195] loop0: detected capacity change from 0 to 3491328 [ 1255.708006] SELinux: security_context_str_to_sid (system_u:object_r:waydroid_rootfs_t:s0) failed with errno=-22 From sudo systemctl status waydroid-container.service: [19:42:41] NOTE: The failed command's output is above the ^^^ line in the log file: /var/lib/waydroid/waydroid.log
Created attachment 2052705 [details] /var/lib/waydroid/waydroid.log Waydroid log
Created attachment 2052706 [details] Screenshot of sudo dmesg and systemctl status
I cannot reproduce. > until a few days ago everything worked perfectly Presumably a selinux update broke the waydroid module. Indeed there is a selinux-policy update in testing: https://bodhi.fedoraproject.org/updates/FEDORA-2024-8707c24571 I don't remember off the top of my head how to debug a module... Does `sudo semodule list` include `waydroid`? Does `sudo semodule --build` work? Does waydroid work after the command? You can also try reinstalling the `waydroid-selinux` package.
When upgrading to Fedora 41 the test repositories are enabled by default so I tried with the stable version of selinux-policy(41.20), disabling the test repositories, and waydroid starts normall but with a lot of messages from selinux. With 41.21 it doesn't even starts. Sorry maybe I should have specified this detail. "sudo semodule -l" lists also waydroid $ sudo semodule -B Failed to resolve typeattributeset statement at /var/lib/selinux/targeted/tmp/modules/200/snappy/cil:223 Failed to resolve AST semodule: Failed! These are the output of the commands and are the same with both versions, maybe they can help. Thanks for the support.