On Fri, Jul 14, 2023 at 5:15 PM Patrick O'Callaghan
<pocallag...@gmail.com> wrote:
> [...]
> > > > Where do you show the selinux label anywhere in that?
> > > > "ls -lZ"
> > >
> > > $ ls -lZ /SWAP/swapfile
> > > -rw-------. 1 root root unconfined_u:object_r:default_t:s0
> > > 34359738368 Jul 12 12:46 /SWAP/swapfile
> >
> > I pressed send too quickly.  "ls -alZ /SWAP"
>
> # ls -lZ /SWAP
> total 33554436
> -rw-r--r--. 1 root root unconfined_u:object_r:unlabeled_t:s0         329 Jul 
> 13 22:32 README [just my notes - poc]
> -rw-------. 1 root root unconfined_u:object_r:default_t:s0   34359738368 Jul 
> 12 12:46 swapfile
>
> and just in case:
>
> [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.

> > 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
.

Jeff
_______________________________________________
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, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to