Skip to content

Instantly share code, notes, and snippets.

@vancanhuit
Last active September 11, 2024 13:04
Show Gist options
  • Save vancanhuit/d51d2ec51ef07cdd4fc02512a078a4d6 to your computer and use it in GitHub Desktop.
Save vancanhuit/d51d2ec51ef07cdd4fc02512a078a4d6 to your computer and use it in GitHub Desktop.
Handling SELinux for incus-agent on Red Hat based VMs
# https://github.com/lxc/incus/commit/b2cd793ae4ce016ca7da128cc2d14544c041c801
# https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/9/html/using_selinux/changing-selinux-states-and-modes_using-selinux#enabling-selinux-on-systems-that-previously-had-it-disabled_changing-selinux-states-and-modes
semanage fcontext -a -t bin_t /var/run/incus_agent/incus-agent
restorecon -R /run/incus_agent
fixfiles -F onboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment