#2 Add missing SELinux policies to swap volume/file setup
Merged by ngompa. Opened by marcan.
fedora-asahi/ marcan/fedora-asahi-remix-scripts main  into  main

Download 2.patch

This fixes systemd-logind SELinux denials. We just use var_t for the
subvolume root (other stuff in /var/* does this too, so it should be
OK).

rebased onto 629140cdadbe016257bcfbe5b8ff0709aac1620e

You'll want an || true here too, if you're making the whole thing failable.

The idea was the semanage stuff will fail if the policies already exist, but the relabel should not. i.e. the goal is to make it idempotent (or not blow up if the user manually deletes the swap file and tries to use the script again without cleaning up the policies)

Ah okay, then LGTM.

Pull-Request has been merged by ngompa

Metadata