selinux what are the differences between setenforce 0 to permanent selinux

setenforce 0 will only temporarily disable SELinux. The next time you reboot the server, selinux will be back on.

When you edit /etc/selinux/config, that makes the change persistent across reboots.

Generally speaking, if at all possible, you should keep SELinux turned on. setenforce 0 allows you to troubleshoot issues with the goal of turning it back on (with setenforce 1).

But there are indeed some vendors out there who unfortunately insist on disabling it completely. I personally try to avoid such vendors.