Created
January 6, 2025 14:22
-
-
Save j1cs/2f8cde3c75e326661541812318222339 to your computer and use it in GitHub Desktop.
gedora 40-41 gnome remote desktop selinux problem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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