Discover How To Learn Tips And Tricks HOWTOs
SELinux vs AppArmor: What Are the Differences and Which One Should You Use?
SELinux (short for Security Enhanced Linux) is a Linux kernel security module that is used to increase security in Linux distributions by hardening access to files and processes. Another similar Linux kernel security module that is used for this purpose is AppArmor.
There is a lot of interest in these two modules because of their overlapping roles in access control for Linux operating systems. As such, this article covers the differences between SELinux and AppArmor. Users can then determine which of these modules is best for their needs through a comparison of features and ease of use.
Securing servers with SELinux does away with dependency on DAC style access based on actual system users and roles. Instead, it introduces a three-string context system for each process or system user. The three strings, namely username, role, and domain, allow for more flexibility and control over system access.