On 4/17/22 22:47, Alexander Zhang wrote:
It worked after I did `setenforce 0`, so SELinux is the problem. I have my swap file inside its own BTRFS subvolume mounted at /swap and the SELinux context for that directory is system_u:object_r:unlabeled_t:s0. It looks like I need to allow systemd-sleep to search that directory. I think the proper way to do that is to create a new type, label /swap with that type, and add a policy rule that allows systemd_sleep_t to search that type. I don't know enough about SELinux to do that though.
Easier still is to remove that partition from fstab and reformat it as a swap partition.
_______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure