Do not disable AppArmor

Details

AppArmor is an effective and easy-to-use Linux application security system. It is available

on quite a few Linux distributions by default such as Debian and Ubuntu.AppArmor protects the Linux OS and applications from various threats by enforcing

security policy which is also known as AppArmor profile. You can create your own

AppArmor profile for containers or use the Docker’s default AppArmor profile. This would

enforce security policies on the containers as defined in the profile.

Solution

If AppArmor is applicable for your Linux OS, use it. You may have to follow below set of
steps-1. Verify if AppArmor is installed. If not, install it.
2. Create or import a AppArmor profile for Docker containers.
3. Put this profile in enforcing mode.
4. Start your Docker container using the customized AppArmor profile. For example,docker run –interactive –tty –security-opt=’apparmor-PROFILENAME’ centos /bin/bashAlternatively, you can keep the docker’s default apparmor profile
Impact-The container (process) would have set of restrictions as defined in AppArmor profile. If
your AppArmor profile is mis-configured, then the container may not entirely work as
expected.Default Value-By default, docker-default AppArmor profile is applied for running containers and this
profile can be found at /etc/apparmor.d/docker.

Supportive Information

The following resource is also helpful.

This security hardening control applies to the following category of controls within NIST 800-53: Access Control.This control applies to the following type of system Unix.

References

Source

Updated on July 16, 2022
Was this article helpful?

Related Articles