Exercises
Here’s a brief quiz about some of the essential concepts that were covered in this chapter:
- Enumerate at least a couple of ACMs that are used in Linux.
Hint: DAC, ACL, MAC, RBAC, MLS, MCS
- Enumerate the fields of the SELinux security context.
Hint: user, role, type, level
- What is a domain in SELinux?
Hint: Type assigned to a process
- Can you think of a significant difference between SELinux and AppArmor in terms of enforcing security policies?
Hint: SELinux uses policies based on file labels, while AppArmor uses security policies based on paths.
- How do we toggle an AppArmor application profile between the
enforce
andcomplain
modes?Hint: Using
aa-enforce
andaa-complain
- How many chains can you think of in the Linux kernel networking stack?
Hint: Figure 9.41 could help you.
- What is the default firewall management solution in RHEL/Fedora? How about Ubuntu?
Hint:
firewalld
(Fedora) andufw
(Ubuntu)