admin:linux:selinux

Security Enhanced Linux (SELinux)

setenforce 0
dnf remove selinux-policy\*
rm -rf /etc/selinux/targeted /etc/selinux/config
dnf install selinux-policy-targeted selinux-policy-devel policycoreutils-gui
touch /.autorelabel
reboot
disable setenforce 0
change ssh port semanage port -a -t ssh_port_t -p tcp 22
man samba_selinux
  • Last modified: 2024-07-05 14:31