Does SELinux save you against rm -rf ?
Always wondered if there is way in SELinux to disable the deadly rm -rf
at /
path.
Maybe the command rm
can be asked by selinux not to allow anyone to run it at /
location with the option -rf *
?
Could never find the time to experiment in a VM to find out. Have you?
Please let me know through the comments section!
Does SELinux save you against rm -rf ?
https://doku.dev/post/2018/Does-SELinux-save-you-against-rm-rf/