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.

Turns out all I needed to do is restorecon -v /swap, which relabeled /swap to system_u:object_r:default_t:s0 and that made hibernation work. Thanks for the help pointing me to the documentation.

Alex
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
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@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure

Reply via email to