On Mon, Dec 14, 2020 at 2:57 PM Sreyan Chakravarty <sreyan32(a)gmail.com> wrote:
On Sun, Dec 13, 2020 at 3:23 AM Chris Murphy <lists(a)colorremedies.com> wrote:
> You are in adventure land. So you're going on an adventure. If you
> want it to just work, use a swap partition.
To be clear my problem is not with swap files per se.
It's a SELinux error. I was asking for help on how to configure
SELinux so it does not stop systemd-logind from accessing the
/var/swap directory.
It has nothing to do with swaps.
FYI, I have used swaps in BTRFS with successful hibernation, but it
fell apart when I restored snapshots.
So I am not sure why you say a separate helper service will be required.
Done.
Changing to the "etc_runtime_t" solved problems.
But I am not sure if the permissions are not too permissive or not.
I have opened a discussion for that in Github:
https://github.com/fedora-selinux/selinux-policy/issues/508
--
Regards,
Sreyan Chakravarty