Skip to content

Instantly share code, notes, and snippets.

@j1cs
Created January 6, 2025 14:22
Show Gist options
  • Save j1cs/2f8cde3c75e326661541812318222339 to your computer and use it in GitHub Desktop.
Save j1cs/2f8cde3c75e326661541812318222339 to your computer and use it in GitHub Desktop.
gedora 40-41 gnome remote desktop selinux problem
tee /tmp/grd.te << EOF > /dev/null
module grd 1.0;
require {
type system_dbusd_t;
type unconfined_service_t;
type xdm_t;
class tcp_socket { getattr getopt read setopt shutdown write };
}
allow system_dbusd_t unconfined_service_t:tcp_socket { read write };
allow xdm_t unconfined_service_t:tcp_socket { getattr getopt read setopt shutdown write };
EOF
checkmodule -M -m -o /tmp/grd.mod /tmp/grd.te
semodule_package -o /tmp/grd.pp -m /tmp/grd.mod
sudo semodule -i /tmp/grd.pp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment