LearnThatStack Ace your next interview
System Administration
Security Hardening (SELinux/AppArmor).
27 Qs 4 free
Change topic Change
Drill · questions

All questions

of 27
Beginner 5
01

What is SELinux and how does it enhance system security?

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

Security-Enhanced Linux (SELinux) is a mandatory access control (MAC) security mechanism implemented in the Linux kernel. Unlike traditional discretionary access control (DAC) where file owners can control access, SELinux enforces security policies defined by administrators.
Key security enhancements:

  • Mandatory Access Control: Enforces rules regardless of user permissions
  • Process Isolation: Restricts what processes can access based on security contexts
  • Principle of Least Privilege: Grants minimal necessary permissions
  • Protection against privilege escalation: Even root access is constrained by SELinux policies
    SELinux uses security contexts (labels) attached to files, processes, and system resources to make access decisions based on predefined policies.
Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

The model's verdict: “

The interactive diagram is below the answer - jump to diagram ↓

This answer is explained by a shared concept diagram - open

Tailored explanation · switch back to · ·
Point the redraw:
How well did you know this?
AI:

02

Explain the three SELinux operational modes.

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

SELinux operates in three distinct modes:

  1. Enforcing Mode: SELinux actively enforces security policies and denies unauthorized access attempts. Violations are logged and blocked.
  2. Permissive Mode: SELinux logs policy violations but doesn't enforce them. Useful for testing and policy development without breaking applications.
  3. Disabled Mode: SELinux is completely turned off. No policies are enforced or logged.
    Commands to check and change modes:
# Check current mode
getenforce
# Change mode temporarily
setenforce 0  # Permissive
setenforce 1  # Enforcing
# Change mode permanently (edit /etc/selinux/config)
SELINUX=enforcing|permissive|disabled
Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

The model's verdict: “

The interactive diagram is below the answer - jump to diagram ↓

This answer is explained by a shared concept diagram - open

Tailored explanation · switch back to · ·
Point the redraw:
How well did you know this?
AI:

03

How does AppArmor provide application security?

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

AppArmor provides application security through mandatory access control using security profiles that define what resources applications can access.
Key mechanisms:

  • Path-based access control: Controls access based on file paths
  • Capability restrictions: Limits system capabilities processes can use
  • Network access control: Restricts network operations
  • Resource limitations: Controls memory, file descriptors, etc.
    AppArmor profiles define:
# Example profile snippet
/usr/bin/firefox {
  /home/*/** r,           # Read access to user files
  /tmp/** rw,             # Read/write to temp
  capability net_bind_service,  # Network capability
  deny /etc/shadow r,     # Explicitly deny access
}

Applications run confined within their profiles, preventing unauthorized access even if compromised.

Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

The model's verdict: “

The interactive diagram is below the answer - jump to diagram ↓

This answer is explained by a shared concept diagram - open

Tailored explanation · switch back to · ·
Point the redraw:
How well did you know this?
AI:

04

Explain AppArmor profile modes.

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

AppArmor profiles can operate in two modes:

  1. Enforce Mode: The profile actively restricts the application's access according to the defined rules. Violations are blocked and logged.
  2. Complain Mode: The profile logs access violations but doesn't enforce restrictions. Useful for profile development and testing.
    Commands:
# Check profile status
aa-status
# Set profile to complain mode
aa-complain /path/to/program
# Set profile to enforce mode
aa-enforce /path/to/program
# Disable profile
aa-disable /path/to/program

Profile location: Profiles are stored in /etc/apparmor.d/ directory.

Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

The model's verdict: “

The interactive diagram is below the answer - jump to diagram ↓

This answer is explained by a shared concept diagram - open

Tailored explanation · switch back to · ·
Point the redraw:
How well did you know this?
AI:

05

How do you install and configure AppArmor profiles?

Part of Pro
Intermediate 10
06

What are SELinux security contexts and their components?

Part of Pro
07

What is the difference between SELinux and AppArmor?

Part of Pro
08

How do you configure SELinux booleans and what are they used for?

Part of Pro
09

How do you create and manage custom SELinux file contexts?

Part of Pro
10

How do you troubleshoot SELinux denials?

Part of Pro
11

How do you debug AppArmor profile issues?

Part of Pro
12

What tools are available for SELinux monitoring and analysis?

Part of Pro
13

What are AppArmor abstractions and how do you use them?

Part of Pro
14

What are the security implications of running SELinux in permissive mode?

Part of Pro
15

What are common AppArmor profile mistakes and how do you avoid them?

Part of Pro
Expert 12
16

How do you create a custom SELinux policy module?

Part of Pro
17

How do you create an AppArmor profile from scratch?

Part of Pro
18

What are SELinux policy types and when would you create a custom type?

Part of Pro
19

How do you handle SELinux performance issues?

Part of Pro
20

Explain SELinux Multi-Level Security (MLS) and when it's used.

Part of Pro
21

How do you implement SELinux in a containerized environment?

Part of Pro
22

How do you handle SELinux in a CI/CD pipeline?

Part of Pro
23

How do you plan and execute an SELinux implementation for an existing system?

Part of Pro
24

How do you handle SELinux context preservation during application updates?

Part of Pro
25

How do you implement SELinux for a custom web application?

Part of Pro
26

How do you handle SELinux in high-availability and clustered environments?

Part of Pro
27

What performance considerations should you keep in mind when deploying SELinux at scale?

Part of Pro

No matches

Try a different filter or search term.

Pro · $10/mo

23 of 27 Security Hardening (SELinux/AppArmor) answers are gated.

Full answers, code samples, AI explanations - simpler, deeper, or as an interactive diagram. Cancel anytime.

  • Full answers + code
  • AI explain - simpler, deeper, or visualized
  • 1,000 AI credits / month
  • Cancel anytime

Change topic

Pick a different technology or stack. Your current topic stays put until you choose a new one.

Technologies
No technologies match “”.
Cross-cutting topics
No topics match “”.
By role
Stacks & frameworks

MEAN

MongoDB, Express, Angular, Node.js

MERN

MongoDB, Express, React, Node.js

LAMP

Linux, Apache, MySQL, PHP

Django

Python Full-Stack Development

Ruby on Rails

Convention over Configuration

JAM

JavaScript, APIs, and Markup

Serverless on AWS

Serverless Architecture on AWS

Cross-cutting topics 43 topics

Interviewers also test these - they're common to every stack, whichever one you picked above.

Flutter Mobile

Flutter Cross-Platform Mobile Development

Cross-cutting topics 44 topics

Interviewers also test these - they're common to every stack, whichever one you picked above.

Spring Boot

Enterprise Java Development

.NET

Microsoft Ecosystem

Vue

Vue.js, Vite, TypeScript, Tailwind, Node.js

Go Backend

Golang, gRPC, PostgreSQL, Redis, RabbitMQ

FastAPI

Python, FastAPI, SQLAlchemy, PostgreSQL

React Native

React, TypeScript, Redux, Firebase

iOS Native

Swift, SwiftUI, UIKit, Firebase

Android Native

Java, Jetpack Compose, Firebase

Web3 / Ethereum

Solidity, Ethereum, Hardhat, Foundry

DevOps / Platform

Docker, Kubernetes, Terraform, CI/CD

Core SWE Interview Prep

Data structures, algorithms, OS, concurrency, networking, git
Big-O & Complexity Analysis Arrays, Strings & Hash Tables Linked Lists, Stacks & Queues Trees, BSTs & Heaps Graphs Sorting, Searching & Recursion Operating Systems Concurrency & Multithreading Networking for Developers Git & Version Control API Design 45 Distributed Systems Fundamentals 34

Cross-cutting topics 43 topics

Interviewers also test these - they're common to every stack, whichever one you picked above.


Cross-cutting topics 45 topics

Interviewers also test these - they're common to every stack, whichever one you picked above.