(selinux) context is important!

Just found this in the .bashrc of a rhev hypervisor. Good to know…

# aliases used for the temporary
function mod_vi() {
/bin/vi $@
restorecon -v $@ >/dev/null 2>&1
}
alias vi="mod_vi"

Lascia un commento