Pcornel
Browse topics
Options
Recent
Favorites
Security · Technical reference

Linux Security

Direct answer

Linux Security combines discretionary permissions, privileged delegation, PAM/SSH authentication, mandatory access control, Netfilter-based host firewalling, audit, capability and syscall confinement, kernel protection and role-specific hardening.

When to use this

Use it when the operating-system security question has been narrowed to Linux Security. Capture exact host, role, edition/distribution, build/kernel, identity, policy source, effective mode, time and intended allowed/denied workload outcome.

First 30 seconds

1. Linux security: SSH hardening, sudo, PAM, MAC (SELinux/AppArmor), firewall, auditd, updates, kernel hardening.

2. Minimal install.

3. Central logging.

4. Least privilege.

5. Verify with CIS benchmarks.

Operational verification

Linux host → controls → audit → monitoring

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common traps

It does not show unobserved hosts, identities, processes, files, namespaces, policies, boot states or time periods. A correct Linux control shows its local access or confinement boundary, but it does not show complete hardening, absence of alternate privilege or endpoint cleanliness.

Suspicious evidence: distribution drift, stale kernel, config not loaded, permissive LSM, mixed firewall backends, broad sudo/capability, missing audit or hardening without workload verification.

Next check: Continue from the first failing or unverified step, then move to the responsible Windows, Linux, Endpoint Security, IAM, Network Security, Cryptography/PKI or application branch; preserve evidence, make the smallest controlled change, repeat the original operation and verify recovery plus adjacent-control regression.

Platform / version applicability
Platform and workload security
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformPlatform and workload security
Scope / prerequisiteUse it when the operating-system security question has been narrowed to Linux Security. Capture exact host, role, editi…
What next?3 suggested next steps
Child topics (this level)16
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Verification path Verify boundary

host/workload identity → boot/kernel trust → users/groups/credentials → DAC/sudo/PAM/LSM/firewall policy → process/syscall/network activity → audit/detection → recovery

Healthy evidence: intended and effective state agree, logs explain the decision, safe tests behave as intended and the workload remains healthy.

Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Drill down

Subtopics

Go one level deeper into this subject.

Subtopic Linux Permissions

Linux Permissions implement discretionary access control through owner/group identity, mode bits, directory traversal semantics, ACLs, umask and special setuid/setgid/sticky behavior across filesystems and mounts.

Subtopic sudo

sudo delegates selected commands or roles under policy with invoking/target identities, host and argument constraints, authentication, environment handling, logging and session lifetime rather than granting unrestricted root by default.

Subtopic PAM

Pluggable Authentication Modules provide configurable authentication, account, session and password-management stacks for PAM-aware services, with outcome determined by module order, control flags, service file and application integration.

Subtopic SSH Security

SSH Security protects remote shell, command, transfer and tunnel access through host-key verification, user authentication, authorization, algorithm policy, privilege separation, forwarding restrictions, logging and key lifecycle.

Subtopic SELinux

SELinux is a Linux Security Module implementing label-based mandatory access control with subject domains, object types, roles, booleans, transitions and policy decisions layered after ordinary discretionary permissions.

Subtopic AppArmor

AppArmor is a path-oriented Linux Security Module that confines named applications with enforce or complain profiles covering file, capability, network, mount and execution behavior alongside ordinary Linux controls.

Subtopic nftables

nftables is the modern Netfilter packet-classification framework using tables, chains, hooks, priorities, rules, sets/maps, state, NAT and atomic ruleset updates across address families.

Subtopic iptables

iptables is the legacy Netfilter userspace rule model for filter, NAT and related tables/chains; modern systems may implement its interface through an nftables compatibility backend, making backend and live-rule ownership critical.

Subtopic firewalld

firewalld is a dynamic firewall manager exposing zones, services, ports, rich rules, policies and direct/passthrough constructs while maintaining separate runtime and permanent configurations over a Netfilter backend.

Subtopic UFW

Uncomplicated Firewall is an Ubuntu-oriented frontend that generates and manages host-firewall policy over Netfilter, simplifying common IPv4/IPv6 rules while still requiring verification of enablement, generated state and interactions with other managers.

Subtopic auditd

auditd receives Linux Audit subsystem records generated from kernel audit rules and security events, groups multi-record events by serial/time and persists or forwards them under configured queue, disk and failure policies.

Subtopic Fail2ban

Fail2ban parses configured log sources for repeated matching failures and invokes actions such as temporary firewall bans, reducing automated abuse from source addresses without replacing authentication hardening or application security.

Subtopic Linux Capabilities

Linux Capabilities split traditional root privilege into per-thread privilege bits with permitted, effective, inheritable, bounding and ambient sets, plus file capabilities and namespace context.

Subtopic Seccomp

Seccomp filters restrict the system calls a process may invoke using BPF-based rules and actions such as allow, errno, trap, log, notify or kill, reducing kernel attack surface without inspecting pointed-to data safely or replacing broader sandbox controls.

Subtopic Kernel Hardening

Linux Kernel Hardening reduces kernel exploitation and persistence through supported mitigations, memory protections, module and debug restrictions, lockdown/verified boot relationships, secure sysctl policy, attack-surface reduction and timely kernel/firmware updates.

Subtopic Linux Hardening

Linux Hardening applies role-specific secure configuration across boot/kernel, packages/services, identities, sudo/PAM/SSH, filesystems, LSMs, capabilities/seccomp, firewalling, auditing, patching, secrets and recovery with continuous drift control.

Key points
  • Linux security ≠ file permissions and sudo alone.
  • Root-owned configuration ≠ loaded, enforced or effective runtime state.
  • Configuration file present ≠ parsed, loaded and effective runtime state.
  • One allow/deny result ≠ complete DAC, privilege, LSM, firewall and application outcome.
Key checks
  • sshd -T | grep -E 'permitrootlogin|passwordauthentication' — SSH
  • getenforce / aa-status — MAC
  • nft list ruleset — firewall
ReferenceImportant terms & boundaries2 sections · depth on demand

What this shows and what it does not

A correct Linux control shows its local access or confinement boundary, but it does not show complete hardening, absence of alternate privilege or endpoint cleanliness.

In depth

Linux security covers the permission model, privilege management (sudo, capabilities), mandatory access control (SELinux, AppArmor), firewalls (nftables, firewalld, ufw), auditing (auditd), authentication (PAM, SSH) and kernel hardening.

Core practices:

AreaPractice
AccessKey-based SSH, no root login, named sudo users
UpdatesAutomatic security updates or regular patch cycles
ServicesMinimal installed and listening services
ConfinementSELinux/AppArmor enforcing
FirewallDefault deny inbound
Loggingauditd + journald forwarded centrally
BaselinesCIS Benchmarks via configuration management

The topics in this group explain each mechanism with configuration examples.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docPlatform and workload security current

Authoritative/upstream documentation reviewed for bounded claims in Linux Security. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://docs.kernel.org/security/ · confidence 94%
Technical changelog & impact

What changed and what may be affected

Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.

Related reference impactReview these references after material technical changes when their shared boundary is affected.
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
GNU Linux securityLinux operating system protectionLinux security architecture
Embedded reference data

Quick lookup tables

Linux Security proof map

Fast scope, effective-state, runtime-evidence and closure boundaries for Linux Security.

BoundaryEstablishDoes not establish
ScopeExact host, role, build/kernel, identity, workload and expected controlDoes not prove policy receipt or effective runtime state
Effective stateResultant/loaded policy, precedence, mode, labels/rules/keys and active services/kernel controlsConfiguration presence does not prove enforcement
Runtime evidenceCorrelated events/audit, process/token/credential, packet/syscall and workload resultOne event, clean status or allow/deny does not prove complete security
ClosureOriginal allowed/denied workload works, unsafe state is removed and recovery/regression passCommit, restart, block or compliance result alone is not closure
Confirmation

Confirm action

Continue?