Function server_forge::security::setup_advanced_security
source · pub fn setup_advanced_security(config: &Config) -> Result<(), Box<dyn Error>>
Expand description
Sets up advanced security measures based on the Linux distribution.
For Ubuntu, this function sets up AppArmor. For CentOS or Fedora, this function sets up SELinux.
§Arguments
config
- A reference to theConfig
struct containing user-defined configuration options
§Errors
Returns an error if the setup fails or if the Linux distribution is not supported