SV-275646r1147988_rule
V-275646
SRG-OS-000368-GPOS-00154
RIIM-OS-431015
CAT II
10
Enable and start "apparmor.service" by using the following command:
$ sudo systemctl enable apparmor.service --now
Note: AppArmor must have properly configured profiles for applications and home directories. All configurations will be based on the actual system setup and organization and normally are on a per role basis. See the AppArmor documentation for more information on configuring profiles.
Verify Ubuntu OS AppArmor is active by using the following commands:
$ systemctl is-enabled apparmor.service
enabled
$ systemctl is-active apparmor.service
active
If "apparmor.service" is not enabled and active, this is a finding.
Check if AppArmor profiles are loaded and enforced by using the following command:
$ sudo apparmor_status | grep -i profile
32 profiles are loaded.
32 profiles are in enforce mode.
0 profiles are in complain mode.
0 profiles are in kill mode.
0 profiles are in unconfined mode.
2 processes have profiles defined.
0 processes are unconfined but have a profile defined.
If no profiles are loaded and enforced, this is a finding.
V-275646
False
RIIM-OS-431015
Verify Ubuntu OS AppArmor is active by using the following commands:
$ systemctl is-enabled apparmor.service
enabled
$ systemctl is-active apparmor.service
active
If "apparmor.service" is not enabled and active, this is a finding.
Check if AppArmor profiles are loaded and enforced by using the following command:
$ sudo apparmor_status | grep -i profile
32 profiles are loaded.
32 profiles are in enforce mode.
0 profiles are in complain mode.
0 profiles are in kill mode.
0 profiles are in unconfined mode.
2 processes have profiles defined.
0 processes are unconfined but have a profile defined.
If no profiles are loaded and enforced, this is a finding.
M
5706