I am using a Galaxy s10+, rooted with magisk, no custom ROM, no custom kernel and no custom recovery. The rooting is heavily limited because of the SELinux enforce mode. Actually, no root command in termux works because of SELinux. I do not want to disable SELinux permanently for security reasons. What I want is something similar to the command "setenforce 0". This does not work on my phone however, and I think it could be KNOX related. It gives no errors but the output of "getenforce" is still enforced.
Is there a way to set SELinux to permissive mode only temporarily until next reboot on rooted Samsung galaxy s10+ with magisk, everything stock?
The linked duplicate is what i already tried, and it also says it does not work after 2015.
CONFIG_SECURITY_SELINUX_DEVELOP=y