On Sat, 2023-07-15 at 13:02 +0100, Patrick O'Callaghan wrote: > On Fri, 2023-07-14 at 18:45 -0400, Jeffrey Walton wrote: > > > [root@Bree ~]# ls -lZd /SWAP > > > drwxr-xr-x. 1 root root system_u:object_r:default_t:s0 28 Jul 13 > > > 22:32 /SWAP > > > > I would expect to see swapfile_t there. > > > > > > I'll try adding that. > > > > > Do you have the selinux error message? > > > > > > As I've mentioned, the only error is in the journal: > > > > > > Jul 14 22:10:37 Bree systemd-sleep[51364]: Failed to find > > > location > > > to hibernate to: Permission denied > > > Jul 14 22:10:37 Bree systemd[1]: systemd-hibernate.service: Main > > > process exited, code=exited, status=1/FAILURE > > > > Have a look at > > https://bugzilla.redhat.com/show_bug.cgi?id=181782 and > > https://discussion.fedoraproject.org/t/hibernation-only-triggers-lockscreen-with-swapfile-likely-selinux-problem/67319/3 > > . > > The first of those is from 2006 but I'll look more closely. I did: "chcon -t swapfile_t /SWAP/swapfile" and this time it seemed to work. I say "seemed to" because it did suspend, power down, and restore when I powered up. However the journal still has weird entries like: Jul 15 13:34:33 Bree (swapfile)[21768]: hibernate-resume.service: Failed to locate executable /usr/sbin/swapoff /SWAP/swapfile: No such file or directory so I'm not really sure what's going on. poc _______________________________________________ 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, report it: https://pagure.io/fedora-infrastructure/new_issue