Re: SELinux is blocking hibernate

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2020-04-17 at 01:10 -0700, Samuel Sieb wrote:
> On 4/17/20 1:07 AM, Patrick O'Callaghan wrote:
> > On Thu, 2020-04-16 at 17:12 -0700, Samuel Sieb wrote:
> > > On 4/13/20 9:51 AM, Sreyan Chakravarty wrote:
> > > > I have just configured a 8GB swap file on my Fedora 31 laptop. But it
> > > > seems that SELinux is blocking access to the swap file.
> > > 
> > > Can you hibernate to a swap *file*?  I thought it had to be a partition.
> > >    How would you set up the resume line for that?
> > 
> > It has to be a partition. A file can be on any kind of filesystem, so
> > how would the resume function know what to do?
> > 
> >  From systemd-hibernate-resume(8):
> > 
> > systemd-hibernate-resume@.service initiates the resume from hibernation. It is instantiated with the device to resume from as the template argument.
> > 
> > systemd-hibernate-resume only supports the in-kernel hibernation implementation, known as swsusp[1]. Internally, it works by writing the major:minor of specified device node to /sys/power/resume.
> 
> That's why I'm confused about the original question.  He made a swap 
> file for hibernating and it's not working because of an selinux issue. 
> But even if that is resolved, it's still not going to work.

Exactly.

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



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux