You are not logged in.
Two years ago I mistakenly decided to attempt to install SELinux on my system in an attempt to harden security. Due to a general unfamiliarity with the Linux operating system at the time, this failed. I now wish to remove the modifications I made, but am experiencing some difficulty. I am hesitant to brute force my way through a problem as I previously did, so wanted to ensure that the following steps to remove SELinux (as it would have been installed using the archwiki guide) are correct.
The next steps are borne from the presumption that removing SELinux from my system is best achieved by "reverse engineering" the steps present in the wiki. I currently know of no easier way to do this. It is also important to state, that all things considered, I am still fairly new to navigating/understanding Linux.
+ Relabel all files back to system defaults after reboot via the selinux policy management tool
+ Reconfigure the kernel to deselect "selinux" from the "CONFIG_LSM" option and unselect the "CONFIG_SECURITY_SELINUX" option.
+ Disable pam_selinux.so from executing after login by modifying /etc/pam.d/system-login
+ Modify the "lsm=" kernel parameter to remove "selinux"
+ Uninstall selinux packages as detailed in https://wiki.archlinux.org/title/SELinux#Via_AUR
Apologies for requiring such hand-holding, but I would appreciate if someone could just confirm that this at least removes the functional presence of SELinux on my system. Thank you
Offline
Would an easier method be utilizing these steps?:
+ https://wiki.archlinux.org/title/Pacman … l_packages
+ https://wiki.archlinux.org/title/Pacman … ckup_files
This way, would I be able to more holistically remove SELinux modified files?
Offline