Linux is open source. So one can know where the root password is saved by looking to the kernel source code. And one can (logically) code a virus which can corrupt that specific file, etc. But we are not facing such viruses in real world! How has linux solved this?